Create & Init Project...
This commit is contained in:
29
app/admin/main/laser/service/task_log_test.go
Normal file
29
app/admin/main/laser/service/task_log_test.go
Normal file
@ -0,0 +1,29 @@
|
||||
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) {
|
||||
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user