databus_test.go 520 B

123456789101112131415161718192021222324
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/service/main/push/model"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func Test_PubReport(t *testing.T) {
  9. Convey("Test_PubReport", t, WithDao(func(d *Dao) {
  10. err := d.PubReport(context.Background(), &model.Report{})
  11. So(err, ShouldBeNil)
  12. }))
  13. }
  14. func Test_PubCallback(t *testing.T) {
  15. Convey("Test_PubCallback", t, WithDao(func(d *Dao) {
  16. err := d.PubCallback(context.Background(), []*model.Callback{&model.Callback{}})
  17. So(err, ShouldBeNil)
  18. }))
  19. }