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.
36 lines
861 B
36 lines
861 B
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) |
|
}) |
|
}) |
|
}
|
|
|