app_test.go 536 B

123456789101112131415161718192021222324252627
  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_AppIndex(t *testing.T) {
  10. Convey("test app acc info", t, WithService(func(s *Service) {
  11. arg := &model.AppIndexArg{
  12. Vmid: 15555180,
  13. Mid: 0,
  14. Platform: "ios",
  15. Qn: 16,
  16. Device: _devicePad,
  17. }
  18. data, err := s.AppIndex(context.Background(), arg)
  19. So(err, ShouldBeNil)
  20. str, _ := json.Marshal(data)
  21. Println(string(str))
  22. }))
  23. }