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.
19 lines
475 B
19 lines
475 B
package service |
|
|
|
import ( |
|
"context" |
|
"testing" |
|
|
|
"go-common/app/admin/main/member/model" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestService_Reviews(t *testing.T) { |
|
convey.Convey("Reviews", t, func() { |
|
o, logs, err := s.Reviews(context.Background(), &model.ArgReviewList{Property: []int8{1}, IsDesc: true, STime: 10000, Pn: 1, Ps: 10}) |
|
convey.So(err, convey.ShouldBeNil) |
|
convey.So(o, convey.ShouldNotBeNil) |
|
convey.So(logs, convey.ShouldNotBeNil) |
|
}) |
|
}
|
|
|