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

41 lines
841 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDaodanmakuURI(t *testing.T) {
convey.Convey("danmakuURI", t, func(ctx convey.C) {
var (
oid = int64(0)
)
ctx.Convey("When everything gose positive", func(ctx convey.C) {
p1 := testDao.danmakuURI(oid)
ctx.Convey("Then p1 should not be nil.", func(ctx convey.C) {
ctx.So(p1, convey.ShouldNotBeNil)
})
})
})
}
func TestDaoRecFlag(t *testing.T) {
convey.Convey("RecFlag", t, func(ctx convey.C) {
var (
c = context.Background()
mid = int64(0)
aid = int64(0)
oid = int64(0)
limit = int64(0)
ps = int64(0)
pe = int64(0)
plat = int32(0)
)
ctx.Convey("When everything gose positive", func(ctx convey.C) {
testDao.RecFlag(c, mid, aid, oid, limit, ps, pe, plat)
})
})
}