video_test.go 407 B

123456789101112131415161718192021
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_getVideoOperInfo(t *testing.T) {
  8. Init()
  9. convey.Convey("getVideoOperInfo", t, func() {
  10. list, err := s.getVideoOperInfo(context.TODO(), 8942606)
  11. for _, info := range list {
  12. t.Logf("info(%+v)", info)
  13. }
  14. convey.So(err, convey.ShouldBeNil)
  15. convey.So(len(list), convey.ShouldEqual, 66)
  16. })
  17. }