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

Method cacheTotalize

pkg/buffercache/cache_test.go:197–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195}
196
197func (c *BufferCache) cacheTotalize() int {
198 coldCacheSize := 0
199 for _, b := range c.cold.buckets {
200 coldCacheSize += len(b.data)
201 }
202 return coldCacheSize + c.hot.cap
203}
204
205func TestBufferCache_size(t *testing.T) {
206 cfg := Config{

Callers 2

TestBufferCache_sizeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected