(t *testing.T, cache *BufferCache, key string)
| 103 | } |
| 104 | |
| 105 | func assertKeyInColdCache(t *testing.T, cache *BufferCache, key string) { |
| 106 | t.Helper() |
| 107 | |
| 108 | loc, ok := cache.m.m[key] |
| 109 | if !ok { |
| 110 | t.Fatalf(`key "%s" not found in location map`, key) |
| 111 | } |
| 112 | if !loc.isCold() { |
| 113 | t.Errorf("not in cold cache: got loc=%v", loc) |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | func assertColdLocation(t *testing.T, loc location, bidx, cidx int) { |
| 118 | t.Helper() |
no test coverage detected