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.
25 lines
505 B
25 lines
505 B
package service |
|
|
|
import ( |
|
"context" |
|
"encoding/json" |
|
"testing" |
|
|
|
"go-common/app/interface/main/space/model" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestService_DynamicList(t *testing.T) { |
|
convey.Convey("test dynamic list", t, WithService(func(s *Service) { |
|
arg := &model.DyListArg{ |
|
Vmid: 908085, |
|
Pn: 1, |
|
Qn: 16, |
|
} |
|
list, err := s.DynamicList(context.Background(), arg) |
|
convey.So(err, convey.ShouldBeNil) |
|
bs, _ := json.Marshal(list) |
|
convey.Println(string(bs)) |
|
})) |
|
}
|
|
|