go-common/app/admin/main/mcn/service/audit_log_test.go

31 lines
683 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestServiceAddAuditLog(t *testing.T) {
convey.Convey("AddAuditLog", t, func(ctx convey.C) {
var (
c = context.Background()
bizID = int(0)
tp = int8(0)
action = ""
uid = int64(0)
uname = ""
oids = []int64{}
index = []interface{}{}
content map[string]interface{}
)
ctx.Convey("When everything goes positive", func(ctx convey.C) {
err := s.AddAuditLog(c, bizID, tp, action, uid, uname, oids, index, content)
ctx.Convey("Then err should be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
})
})
})
}