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,40 @@
package dao
import (
"context"
"testing"
"time"
. "github.com/smartystreets/goconvey/convey"
)
func TestSetnxMaskJob(t *testing.T) {
Convey("", t, func() {
ok, err := testDao.SetnxMaskJob(context.Background(), time.Now().String())
So(err, ShouldBeNil)
t.Logf("ok:%v", ok)
})
}
func TestGetMaskJob(t *testing.T) {
Convey("", t, func() {
value, err := testDao.GetMaskJob(context.Background())
So(err, ShouldBeNil)
t.Logf("ok:%v", value)
})
}
func TestGetSetMaskJob(t *testing.T) {
Convey("", t, func() {
value, err := testDao.GetSetMaskJob(context.Background(), time.Now().String())
So(err, ShouldBeNil)
t.Logf("ok:%v", value)
})
}
func TestDelMaskJob(t *testing.T) {
Convey("", t, func() {
err := testDao.DelMaskJob(context.Background())
So(err, ShouldBeNil)
})
}