You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
464 B

package dao
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDaoPassportDetail(t *testing.T) {
var (
c = context.Background()
mid = int64(1)
ip = ""
)
convey.Convey("PassportDetail", t, func(cv convey.C) {
res, err := d.PassportDetail(c, mid, ip)
cv.Convey("Then err should be nil.res should not be nil.", func(cv convey.C) {
cv.So(err, convey.ShouldBeNil)
cv.So(res, convey.ShouldNotBeNil)
})
})
}