monitor_test.go 684 B

123456789101112131415161718192021222324252627282930313233
  1. package service
  2. import (
  3. "context"
  4. . "github.com/smartystreets/goconvey/convey"
  5. "go-common/app/admin/main/videoup/model/monitor"
  6. "testing"
  7. )
  8. func TestService_MonitorResult(t *testing.T) {
  9. var (
  10. c = context.TODO()
  11. )
  12. Convey("MonitorResult", t, WithService(func(s *Service) {
  13. p := &monitor.RuleResultParams{
  14. Type: 1,
  15. Business: 1,
  16. }
  17. data, err := svr.MonitorResult(c, p)
  18. So(err, ShouldBeNil)
  19. So(data, ShouldNotBeNil)
  20. }))
  21. }
  22. func TestService_MonitorCheckVideoStatus(t *testing.T) {
  23. var (
  24. c = context.TODO()
  25. )
  26. Convey("MonitorCheckVideoStatus", t, WithService(func(s *Service) {
  27. err := svr.MonitorCheckVideoStatus(c, 1, 1)
  28. So(err, ShouldBeNil)
  29. }))
  30. }