ugc_test.go 453 B

1234567891011121314151617181920212223242526
  1. package web
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/job/main/web-goblin/model/web"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestService_UgcIncrement(t *testing.T) {
  9. Convey("test UgcIncrement", t, WithService(func(s *Service) {
  10. var (
  11. err error
  12. ctx = context.Background()
  13. v = &web.ArcMsg{
  14. Action: "add",
  15. Table: "archive",
  16. New: nil,
  17. }
  18. )
  19. err = s.UgcIncrement(ctx, v)
  20. So(err, ShouldBeNil)
  21. }))
  22. }