databus_test.go 504 B

123456789101112131415161718192021222324
  1. package dao
  2. import (
  3. "context"
  4. "go-common/app/service/main/thumbup/model"
  5. "testing"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestDaoPubStatDatabus(t *testing.T) {
  9. var (
  10. c = context.TODO()
  11. business = "archive"
  12. mid = int64(1)
  13. s = &model.Stats{}
  14. )
  15. convey.Convey("PubStatDatabus", t, func(ctx convey.C) {
  16. err := d.PubStatDatabus(c, business, mid, s, 1)
  17. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  18. ctx.So(err, convey.ShouldBeNil)
  19. })
  20. })
  21. }