query_test.go 341 B

1234567891011121314151617181920
  1. package oplog
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDao_QueryOpLogs(t *testing.T) {
  8. var (
  9. c = context.TODO()
  10. dmid int64 = 1222
  11. )
  12. Convey("QueryOpLogs", t, func() {
  13. rets, err := dao.QueryOpLogs(c, dmid)
  14. So(err, ShouldBeNil)
  15. So(len(rets), ShouldBeGreaterThan, 0)
  16. })
  17. }