dynamic_test.go 505 B

12345678910111213141516171819202122232425
  1. package service
  2. import (
  3. "context"
  4. "encoding/json"
  5. "testing"
  6. "go-common/app/interface/main/space/model"
  7. "github.com/smartystreets/goconvey/convey"
  8. )
  9. func TestService_DynamicList(t *testing.T) {
  10. convey.Convey("test dynamic list", t, WithService(func(s *Service) {
  11. arg := &model.DyListArg{
  12. Vmid: 908085,
  13. Pn: 1,
  14. Qn: 16,
  15. }
  16. list, err := s.DynamicList(context.Background(), arg)
  17. convey.So(err, convey.ShouldBeNil)
  18. bs, _ := json.Marshal(list)
  19. convey.Println(string(bs))
  20. }))
  21. }