track_test.go 504 B

12345678910111213141516171819202122232425262728
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestService_trackArchive(t *testing.T) {
  8. var (
  9. c = context.TODO()
  10. )
  11. Convey("TrackArchive", t, WithService(func(s *Service) {
  12. _, err := svr.TrackArchive(c, 1)
  13. So(err, ShouldBeNil)
  14. }))
  15. }
  16. func TestService_TrackVideo(t *testing.T) {
  17. var (
  18. c = context.TODO()
  19. )
  20. Convey("TrackVideo", t, WithService(func(s *Service) {
  21. _, err := svr.TrackVideo(c, "11111", 111)
  22. So(err, ShouldBeNil)
  23. }))
  24. }