(t *testing.T, cache *BufferCache, key string)
| 67 | } |
| 68 | |
| 69 | func assertKeyNotInCache(t *testing.T, cache *BufferCache, key string) { |
| 70 | t.Helper() |
| 71 | |
| 72 | loc, ok := cache.m.m[key] |
| 73 | if ok { |
| 74 | t.Errorf(`key "%s" found in cache at location=%v, should not be in cache`, key, loc) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | func assertKeyInHotCache(t *testing.T, cache *BufferCache, key string) { |
| 79 | t.Helper() |
no outgoing calls
no test coverage detected