reply_test.go 393 B

12345678910111213141516171819202122
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoRegReply(t *testing.T) {
  8. var (
  9. c = context.Background()
  10. pid = int64(1)
  11. mid = int64(2)
  12. )
  13. convey.Convey("RegReply", t, func(ctx convey.C) {
  14. err := d.RegReply(c, pid, mid)
  15. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  16. ctx.So(err, convey.ShouldBeNil)
  17. })
  18. })
  19. }