You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
684 B

package service
import (
"context"
. "github.com/smartystreets/goconvey/convey"
"go-common/app/admin/main/videoup/model/monitor"
"testing"
)
func TestService_MonitorResult(t *testing.T) {
var (
c = context.TODO()
)
Convey("MonitorResult", t, WithService(func(s *Service) {
p := &monitor.RuleResultParams{
Type: 1,
Business: 1,
}
data, err := svr.MonitorResult(c, p)
So(err, ShouldBeNil)
So(data, ShouldNotBeNil)
}))
}
func TestService_MonitorCheckVideoStatus(t *testing.T) {
var (
c = context.TODO()
)
Convey("MonitorCheckVideoStatus", t, WithService(func(s *Service) {
err := svr.MonitorCheckVideoStatus(c, 1, 1)
So(err, ShouldBeNil)
}))
}