go-common/app/interface/main/activity/dao/like/protocol_test.go
2019-04-22 18:49:16 +08:00

27 lines
549 B
Go

package like
import (
"context"
"testing"
"fmt"
"github.com/smartystreets/goconvey/convey"
)
func TestRawActSubjectProtocol(t *testing.T) {
convey.Convey("RawLikeMissionBuff", t, func(ctx convey.C) {
var (
c = context.Background()
sid = int64(10350)
)
ctx.Convey("When everything goes positive", func(ctx convey.C) {
res, err := d.RawActSubjectProtocol(c, sid)
ctx.Convey("Then err should be nil.ID should not be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
fmt.Printf("%v", res)
})
})
})
}