Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
package dao
import (
"context"
"go-common/app/job/main/member/model"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDaoAddExpLog(t *testing.T) {
convey.Convey("AddExpLog", t, func(convCtx convey.C) {
var (
ctx = context.Background()
ul = &model.UserLog{}
)
convCtx.Convey("When everything goes positive", func(convCtx convey.C) {
d.AddExpLog(ctx, ul)
convCtx.Convey("No return values", func(convCtx convey.C) {
})
})
})
}
func TestDaoAddMoralLog(t *testing.T) {
convey.Convey("AddMoralLog", t, func(convCtx convey.C) {
var (
ctx = context.Background()
ul = &model.UserLog{}
)
convCtx.Convey("When everything goes positive", func(convCtx convey.C) {
d.AddMoralLog(ctx, ul)
convCtx.Convey("No return values", func(convCtx convey.C) {
})
})
})
}
func TestDaoaddLog(t *testing.T) {
convey.Convey("addLog", t, func(convCtx convey.C) {
var (
ctx = context.Background()
business = int(0)
action = ""
ul = &model.UserLog{}
)
convCtx.Convey("When everything goes positive", func(convCtx convey.C) {
d.addLog(ctx, business, action, ul)
convCtx.Convey("No return values", func(convCtx convey.C) {
})
})
})
}