task_log_test.go 655 B

1234567891011121314151617181920212223242526272829
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestServiceQueryTaskLog(t *testing.T) {
  8. convey.Convey("QueryTaskLog", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. mid = int64(0)
  12. taskID = int64(0)
  13. platform = int(0)
  14. taskState = int(0)
  15. sortBy = ""
  16. pageNo = int(0)
  17. pageSize = int(0)
  18. )
  19. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  20. s.QueryTaskLog(c, mid, taskID, platform, taskState, sortBy, pageNo, pageSize)
  21. ctx.Convey("Then err should be nil.logs,count should not be nil.", func(ctx convey.C) {
  22. })
  23. })
  24. })
  25. }