go-common/app/job/main/account-summary/dao/passport_test.go
2019-04-22 18:49:16 +08:00

37 lines
861 B
Go

package dao
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDaoPassportProfile(t *testing.T) {
var (
// ctx = context.Background()
mid = int64(0)
)
convey.Convey("PassportProfile", t, func(ctx convey.C) {
p1, err := d.PassportProfile(context.TODO(), mid)
ctx.Convey("Then err should be nil.p1 should not be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
ctx.So(p1, convey.ShouldNotBeNil)
})
})
}
func TestDaoAsoAccountRegOrigin(t *testing.T) {
var (
// ctx = context.Background()
mid = int64(0)
)
convey.Convey("AsoAccountRegOrigin", t, func(ctx convey.C) {
p1, err := d.AsoAccountRegOrigin(context.TODO(), mid)
ctx.Convey("Then err should be nil.p1 should not be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
ctx.So(p1, convey.ShouldNotBeNil)
})
})
}