MCPcopy
hub / github.com/grafana/tempo / TestMemcacheFailure

Function TestMemcacheFailure

pkg/cache/memcached_test.go:90–98  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88}
89
90func TestMemcacheFailure(t *testing.T) {
91 t.Run("unbatched", func(t *testing.T) {
92 client := newMockMemcacheFailing()
93 memcache := cache.NewMemcached(cache.MemcachedConfig{}, client,
94 "test", 0, nil, log.NewNopLogger())
95
96 testMemcacheFailing(t, memcache)
97 })
98}
99
100func testMemcacheFailing(t *testing.T, memcache *cache.Memcached) {
101 numKeys := 1000

Callers

nothing calls this directly

Calls 4

NewMemcachedFunction · 0.92
newMockMemcacheFailingFunction · 0.85
testMemcacheFailingFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected