go-common/app/job/main/tv/service/ugc/import_test.go

28 lines
601 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package ugc
import (
"encoding/json"
"fmt"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestService_InitUpper(t *testing.T) {
Convey("TestService_InitUpper", t, WithService(func(s *Service) {
err := s.InitUpper(10920044)
So(err, ShouldBeNil)
}))
}
func TestService_UpArchives(t *testing.T) {
Convey("TestService_UpArchives", t, WithService(func(s *Service) {
pMatch, pAids, err := s.UpArchives(10920044, 1, 100)
So(err, ShouldBeNil)
data, _ := json.Marshal(pMatch)
data2, _ := json.Marshal(pAids)
fmt.Println(string(data))
fmt.Println(string(data2))
}))
}