go-common/app/admin/main/videoup/service/track_test.go

29 lines
504 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestService_trackArchive(t *testing.T) {
var (
c = context.TODO()
)
Convey("TrackArchive", t, WithService(func(s *Service) {
_, err := svr.TrackArchive(c, 1)
So(err, ShouldBeNil)
}))
}
func TestService_TrackVideo(t *testing.T) {
var (
c = context.TODO()
)
Convey("TrackVideo", t, WithService(func(s *Service) {
_, err := svr.TrackVideo(c, "11111", 111)
So(err, ShouldBeNil)
}))
}