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,56 @@
package redis
import (
"context"
"testing"
_ "github.com/go-sql-driver/mysql"
. "github.com/smartystreets/goconvey/convey"
)
func Test_AddArcClick(t *testing.T) {
var (
err error
c = context.TODO()
)
Convey("AddArcClick", t, WithDao(func(d *Dao) {
err = d.AddArcClick(c, 1, 1)
So(err, ShouldBeNil)
}))
}
//ArcClick
func Test_ArcClick(t *testing.T) {
var (
err error
c = context.TODO()
)
Convey("ArcClick", t, WithDao(func(d *Dao) {
_, err = d.ArcClick(c, 1)
So(err, ShouldBeNil)
}))
}
//DelFilename
func Test_DelFilename(t *testing.T) {
var (
err error
c = context.TODO()
)
Convey("DelFilename", t, WithDao(func(d *Dao) {
err = d.DelFilename(c, "1")
So(err, ShouldBeNil)
}))
}
//SetMonitorCache
func Test_SetMonitorCache(t *testing.T) {
var (
err error
c = context.TODO()
)
Convey("SetMonitorCache", t, WithDao(func(d *Dao) {
_, err = d.SetMonitorCache(c, 1)
So(err, ShouldBeNil)
}))
}