1234567891011121314151617181920212223242526272829303132333435363738 |
- package dao
- import (
- "context"
- "testing"
- "go-common/app/service/main/member/model"
- "github.com/smartystreets/goconvey/convey"
- )
- func TestDaoAddMoralLogReport(t *testing.T) {
- var (
- c = context.Background()
- ul = &model.UserLog{
- Mid: 4780461,
- }
- )
- convey.Convey("AddMoralLogReport", t, func(ctx convey.C) {
- d.AddMoralLogReport(c, ul)
- t.Logf("log:%+v", ul)
- })
- }
- func TestDaoaddLogReport(t *testing.T) {
- var (
- c = context.Background()
- business = int(0)
- action = ""
- ul = &model.UserLog{
- Mid: 4780461,
- }
- )
- convey.Convey("addLogReport", t, func(ctx convey.C) {
- d.addLogReport(c, business, action, ul)
- t.Logf("log:%+v", ul)
- })
- }
|