go-common/app/admin/main/dm/dao/oplog/query_test.go

21 lines
341 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package oplog
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestDao_QueryOpLogs(t *testing.T) {
var (
c = context.TODO()
dmid int64 = 1222
)
Convey("QueryOpLogs", t, func() {
rets, err := dao.QueryOpLogs(c, dmid)
So(err, ShouldBeNil)
So(len(rets), ShouldBeGreaterThan, 0)
})
}