audit_result_test.go 593 B

1234567891011121314151617181920212223242526
  1. package service
  2. import (
  3. "net/url"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestService_EpResult(t *testing.T) {
  8. Convey("EPResult Test", t, WithService(func(s *Service) {
  9. var req = url.Values{}
  10. pager, err := s.EpResult(req, 1, 1)
  11. So(err, ShouldBeNil)
  12. So(len(pager.Items), ShouldBeGreaterThan, 0)
  13. }))
  14. }
  15. func TestService_SeasonResult(t *testing.T) {
  16. Convey("SeasonResult Test", t, WithService(func(s *Service) {
  17. var req = url.Values{}
  18. pager, err := s.SeasonResult(req, 1, 1)
  19. So(err, ShouldBeNil)
  20. So(len(pager.Items), ShouldBeGreaterThan, 0)
  21. }))
  22. }