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.
26 lines
453 B
26 lines
453 B
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) |
|
})) |
|
}
|
|
|