22 lines
468 B
Go
Raw Normal View History

2019-04-22 02:59:20 +00:00
package manager
import (
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestManagerupSpecialCacheKey(t *testing.T) {
convey.Convey("upSpecialCacheKey", t, func(convCtx convey.C) {
var (
mid = int64(0)
)
convCtx.Convey("When everything goes positive", func(convCtx convey.C) {
p1 := upSpecialCacheKey(mid)
convCtx.Convey("Then p1 should not be nil.", func(convCtx convey.C) {
convCtx.So(p1, convey.ShouldNotBeNil)
})
})
})
}