go-common/app/job/main/web-goblin/service/web/ugc_test.go
2019-04-22 18:49:16 +08:00

27 lines
453 B
Go

package web
import (
"context"
"testing"
"go-common/app/job/main/web-goblin/model/web"
. "github.com/smartystreets/goconvey/convey"
)
func TestService_UgcIncrement(t *testing.T) {
Convey("test UgcIncrement", t, WithService(func(s *Service) {
var (
err error
ctx = context.Background()
v = &web.ArcMsg{
Action: "add",
Table: "archive",
New: nil,
}
)
err = s.UgcIncrement(ctx, v)
So(err, ShouldBeNil)
}))
}