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

Function assertKeyNotInCache

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

Source from the content-addressed store, hash-verified

67}
68
69func 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
78func assertKeyInHotCache(t *testing.T, cache *BufferCache, key string) {
79 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected