feedback_test.go 524 B

12345678910111213141516171819202122232425
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/interface/main/web/model"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestDaoFeedback(t *testing.T) {
  9. convey.Convey("Feedback", t, func(ctx convey.C) {
  10. var (
  11. c = context.Background()
  12. feedParams = &model.Feedback{}
  13. )
  14. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  15. err := d.Feedback(c, feedParams)
  16. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  17. ctx.So(err, convey.ShouldBeNil)
  18. })
  19. })
  20. })
  21. }