task_log_test.go 555 B

1234567891011121314151617181920212223242526
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoQueryTaskLog(t *testing.T) {
  8. convey.Convey("QueryTaskLog", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. queryStmt = ""
  12. sort = "ctime"
  13. offset = int(1)
  14. limit = int(10)
  15. )
  16. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  17. d.QueryTaskLog(c, queryStmt, sort, offset, limit)
  18. ctx.Convey("Then err should be nil.taskLogs,count should not be nil.", func(ctx convey.C) {
  19. })
  20. })
  21. })
  22. }