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.
27 lines
644 B
27 lines
644 B
package dao |
|
|
|
import ( |
|
"context" |
|
"go-common/app/job/main/thumbup/model" |
|
"testing" |
|
|
|
"github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestDaoPubStatDatabus(t *testing.T) { |
|
convey.Convey("PubStatDatabus", t, func(convCtx convey.C) { |
|
var ( |
|
c = context.Background() |
|
business = "archive" |
|
mid = int64(2233) |
|
s = &model.Stats{} |
|
upMid = int64(333) |
|
) |
|
convCtx.Convey("When everything goes positive", func(convCtx convey.C) { |
|
err := d.PubStatDatabus(c, business, mid, s, upMid) |
|
convCtx.Convey("Then err should be nil.", func(convCtx convey.C) { |
|
convCtx.So(err, convey.ShouldBeNil) |
|
}) |
|
}) |
|
}) |
|
}
|
|
|