realname_test.go 407 B

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