|
|
@ -15,3 +15,16 @@ func Test_DoTask(t *testing.T) { |
|
|
|
t.Log(list) |
|
|
|
t.Log(err) |
|
|
|
} |
|
|
|
|
|
|
|
func Test_DoCycleTask(t *testing.T) { |
|
|
|
dbname := "shop" |
|
|
|
siteid := "1198881" |
|
|
|
userid := "19" |
|
|
|
task_id := "22" |
|
|
|
task_category := "normal" |
|
|
|
|
|
|
|
list, err := DoCycleTask(dbname,siteid,userid,task_id,task_category) |
|
|
|
|
|
|
|
t.Log(list) |
|
|
|
t.Log(err) |
|
|
|
} |