go-common/app/interface/main/activity/dao/like/protocol_test.go

27 lines
549 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
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)
})
})
})
}