You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
803 B
40 lines
803 B
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) |
|
}) |
|
}
|
|
|