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
587 B
29 lines
587 B
package dao |
|
|
|
import ( |
|
"context" |
|
"encoding/json" |
|
"testing" |
|
|
|
"go-common/app/interface/main/space/model" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestDao_ArcSearchList(t *testing.T) { |
|
convey.Convey("test search arc list", t, func(ctx convey.C) { |
|
arg := &model.SearchArg{ |
|
Mid: 2, |
|
Tid: 0, |
|
Order: "", |
|
Keyword: "", |
|
Pn: 1, |
|
Ps: 20, |
|
} |
|
data, count, err := d.ArcSearchList(context.Background(), arg) |
|
convey.So(err, convey.ShouldBeNil) |
|
convey.Printf("%d", count) |
|
str, _ := json.Marshal(data) |
|
convey.Printf("%s", string(str)) |
|
}) |
|
}
|
|
|