audit_test.go 464 B

1234567891011121314151617181920212223
  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.Background()
  10. mid = int64(1)
  11. ip = ""
  12. )
  13. convey.Convey("PassportDetail", t, func(cv convey.C) {
  14. res, err := d.PassportDetail(c, mid, ip)
  15. cv.Convey("Then err should be nil.res should not be nil.", func(cv convey.C) {
  16. cv.So(err, convey.ShouldBeNil)
  17. cv.So(res, convey.ShouldNotBeNil)
  18. })
  19. })
  20. }