MCPcopy Create free account
hub / github.com/cortexproject/cortex / testCache

Function testCache

pkg/chunk/cache/cache_test.go:85–96  ·  view source on GitHub ↗
(t *testing.T, cache cache.Cache)

Source from the content-addressed store, hash-verified

83}
84
85func testCache(t *testing.T, cache cache.Cache) {
86 keys, chunks := fillCache(t, cache)
87 t.Run("Single", func(t *testing.T) {
88 testCacheSingle(t, cache, keys, chunks)
89 })
90 t.Run("Multiple", func(t *testing.T) {
91 testCacheMultiple(t, cache, keys, chunks)
92 })
93 t.Run("Miss", func(t *testing.T) {
94 testCacheMiss(t, cache)
95 })
96}
97
98func TestMemcache(t *testing.T) {
99 t.Run("Unbatched", func(t *testing.T) {

Callers 4

TestTieredSimpleFunction · 0.85
TestMemcacheFunction · 0.85
TestFifoCacheFunction · 0.85
TestSnappyCacheFunction · 0.85

Calls 5

fillCacheFunction · 0.85
testCacheSingleFunction · 0.85
testCacheMultipleFunction · 0.85
testCacheMissFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected