go-common/app/interface/main/dm2/dao/workflow_test.go

49 lines
1.1 KiB
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"context"
"go-common/app/interface/main/dm2/model"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDaoWorkFlowTagList(t *testing.T) {
convey.Convey("WorkFlowTagList", t, func(ctx convey.C) {
var (
c = context.Background()
bid = int64(0)
rid = int64(0)
)
ctx.Convey("When everything gose positive", func(ctx convey.C) {
testDao.WorkFlowTagList(c, bid, rid)
})
})
}
func TestDaoWorkFlowAppealAdd(t *testing.T) {
convey.Convey("WorkFlowAppealAdd", t, func(ctx convey.C) {
var (
c = context.Background()
req = &model.WorkFlowAppealAddReq{}
)
ctx.Convey("When everything gose positive", func(ctx convey.C) {
testDao.WorkFlowAppealAdd(c, req)
})
})
}
func TestDaoWorkFlowAppealDelete(t *testing.T) {
convey.Convey("WorkFlowAppealDelete", t, func(ctx convey.C) {
var (
c = context.Background()
bid = int64(0)
oid = int64(0)
subtitleID = int64(0)
)
ctx.Convey("When everything gose positive", func(ctx convey.C) {
testDao.WorkFlowAppealDelete(c, bid, oid, subtitleID)
})
})
}