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

Function TestMemcacheStop

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

Source from the content-addressed store, hash-verified

145}
146
147func TestMemcacheStop(t *testing.T) {
148 t.Run("unbatched", func(_ *testing.T) {
149 client := newMockMemcacheFailing()
150 memcache := cache.NewMemcached(cache.MemcachedConfig{}, client,
151 "test", 0, nil, log.NewNopLogger())
152
153 testMemcachedStopping(memcache)
154 })
155}
156
157func testMemcachedStopping(memcache *cache.Memcached) {
158 numKeys := 1000

Callers

nothing calls this directly

Calls 4

NewMemcachedFunction · 0.92
newMockMemcacheFailingFunction · 0.85
testMemcachedStoppingFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected