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,46 @@
package dao
import (
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDaoInsert(t *testing.T) {
convey.Convey("Insert", t, func(ctx convey.C) {
var (
id = uint64(0)
content = ""
forceUpdate bool
)
ctx.Convey("When everything goes positive", func(ctx convey.C) {
d.Insert(id, content, forceUpdate)
ctx.Convey("No return values", func(ctx convey.C) {
})
})
})
}
func TestDaoFlush(t *testing.T) {
convey.Convey("Flush", t, func(ctx convey.C) {
ctx.Convey("When everything goes positive", func(ctx convey.C) {
d.Flush()
ctx.Convey("No return values", func(ctx convey.C) {
})
})
})
}
func TestDaoRemove(t *testing.T) {
convey.Convey("Remove", t, func(ctx convey.C) {
var (
id = uint64(0)
forceUpdate bool
)
ctx.Convey("When everything goes positive", func(ctx convey.C) {
d.Remove(id, forceUpdate)
ctx.Convey("No return values", func(ctx convey.C) {
})
})
})
}