go-common/app/interface/main/creative/dao/archive/netsafe_test.go
2019-04-22 18:49:16 +08:00

36 lines
703 B
Go

package archive
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestArchiveAddNetSafeMd5(t *testing.T) {
var (
c = context.TODO()
nid = int64(0)
md5 = ""
)
convey.Convey("AddNetSafeMd5", t, func(ctx convey.C) {
err := d.AddNetSafeMd5(c, nid, md5)
ctx.Convey("Then err should be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldNotBeNil)
})
})
}
func TestArchiveNotifyNetSafe(t *testing.T) {
var (
c = context.TODO()
nid = int64(0)
)
convey.Convey("NotifyNetSafe", t, func(ctx convey.C) {
err := d.NotifyNetSafe(c, nid)
ctx.Convey("Then err should be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldNotBeNil)
})
})
}