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.
24 lines
480 B
24 lines
480 B
package watermark |
|
|
|
import ( |
|
"context" |
|
"testing" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestWatermarkGenWm(t *testing.T) { |
|
var ( |
|
c = context.TODO() |
|
mid = int64(0) |
|
wmText = "text" |
|
ip = "" |
|
) |
|
convey.Convey("GenWm", t, func(ctx convey.C) { |
|
gm, err := d.GenWm(c, mid, wmText, ip) |
|
ctx.Convey("Then err should be nil.gm should not be nil.", func(ctx convey.C) { |
|
ctx.So(err, convey.ShouldBeNil) |
|
ctx.So(gm, convey.ShouldNotBeNil) |
|
}) |
|
}) |
|
}
|
|
|