up_mc_test.go 468 B

123456789101112131415161718192021
  1. package manager
  2. import (
  3. "testing"
  4. "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestManagerupSpecialCacheKey(t *testing.T) {
  7. convey.Convey("upSpecialCacheKey", t, func(convCtx convey.C) {
  8. var (
  9. mid = int64(0)
  10. )
  11. convCtx.Convey("When everything goes positive", func(convCtx convey.C) {
  12. p1 := upSpecialCacheKey(mid)
  13. convCtx.Convey("Then p1 should not be nil.", func(convCtx convey.C) {
  14. convCtx.So(p1, convey.ShouldNotBeNil)
  15. })
  16. })
  17. })
  18. }