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.
 
 
 

23 lines
449 B

package service
import (
"context"
"testing"
"go-common/app/interface/main/esports/model"
. "github.com/smartystreets/goconvey/convey"
)
func TestService_Search(t *testing.T) {
Convey("test service Search", t, WithService(func(s *Service) {
arg := &model.ParamSearch{
Keyword: "dota",
Pn: 1,
Ps: 30,
}
res, err := s.Search(context.Background(), 0, arg, "")
So(err, ShouldBeNil)
So(res, ShouldNotBeEmpty)
}))
}