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.
35 lines
694 B
35 lines
694 B
package dao |
|
|
|
import ( |
|
"context" |
|
"testing" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestDaoCompareInfo(t *testing.T) { |
|
var ( |
|
c = context.Background() |
|
rid = int64(1) |
|
) |
|
convey.Convey("CompareInfo", t, func(ctx convey.C) { |
|
err := d.CompareInfo(c, rid) |
|
ctx.Convey("Then err should be nil.", func(ctx convey.C) { |
|
ctx.So(err, convey.ShouldBeNil) |
|
}) |
|
}) |
|
} |
|
|
|
func TestDaoSendMail(t *testing.T) { |
|
var ( |
|
c = context.Background() |
|
rid = int64(1) |
|
status = int64(1) |
|
) |
|
convey.Convey("SendMail", t, func(ctx convey.C) { |
|
err := d.SendMail(c, rid, status) |
|
ctx.Convey("Then err should be nil.", func(ctx convey.C) { |
|
ctx.So(err, convey.ShouldBeNil) |
|
}) |
|
}) |
|
}
|
|
|