You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
655 B
29 lines
655 B
package service |
|
|
|
import ( |
|
"context" |
|
"testing" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestServiceQueryTaskLog(t *testing.T) { |
|
convey.Convey("QueryTaskLog", t, func(ctx convey.C) { |
|
var ( |
|
c = context.Background() |
|
mid = int64(0) |
|
taskID = int64(0) |
|
platform = int(0) |
|
taskState = int(0) |
|
sortBy = "" |
|
pageNo = int(0) |
|
pageSize = int(0) |
|
) |
|
ctx.Convey("When everything goes positive", func(ctx convey.C) { |
|
s.QueryTaskLog(c, mid, taskID, platform, taskState, sortBy, pageNo, pageSize) |
|
ctx.Convey("Then err should be nil.logs,count should not be nil.", func(ctx convey.C) { |
|
|
|
}) |
|
}) |
|
}) |
|
}
|
|
|