MCPcopy Create free account
hub / github.com/AdRoll/baker / assertKeyInColdCache

Function assertKeyInColdCache

pkg/buffercache/helper_test.go:105–115  ·  view source on GitHub ↗
(t *testing.T, cache *BufferCache, key string)

Source from the content-addressed store, hash-verified

103}
104
105func 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
117func assertColdLocation(t *testing.T, loc location, bidx, cidx int) {
118 t.Helper()

Calls 1

isColdMethod · 0.80

Tested by

no test coverage detected