passport_test.go 465 B

12345678910111213141516171819202122
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoPassportDetail(t *testing.T) {
  8. var (
  9. c = context.TODO()
  10. mid = int64(110016931)
  11. )
  12. convey.Convey("Get passport detail", t, func(ctx convey.C) {
  13. res, err := d.PassportDetail(c, mid)
  14. ctx.Convey("Then err should be nil and res should not be nil.", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldBeNil)
  16. ctx.So(res, convey.ShouldNotBeNil)
  17. })
  18. })
  19. }