import_test.go 601 B

123456789101112131415161718192021222324252627
  1. package ugc
  2. import (
  3. "encoding/json"
  4. "fmt"
  5. "testing"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestService_InitUpper(t *testing.T) {
  9. Convey("TestService_InitUpper", t, WithService(func(s *Service) {
  10. err := s.InitUpper(10920044)
  11. So(err, ShouldBeNil)
  12. }))
  13. }
  14. func TestService_UpArchives(t *testing.T) {
  15. Convey("TestService_UpArchives", t, WithService(func(s *Service) {
  16. pMatch, pAids, err := s.UpArchives(10920044, 1, 100)
  17. So(err, ShouldBeNil)
  18. data, _ := json.Marshal(pMatch)
  19. data2, _ := json.Marshal(pAids)
  20. fmt.Println(string(data))
  21. fmt.Println(string(data2))
  22. }))
  23. }