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

Function TestMemcached

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

Source from the content-addressed store, hash-verified

16)
17
18func TestMemcached(t *testing.T) {
19 t.Run("unbatched", func(t *testing.T) {
20 client := newMockMemcache()
21 memcache := cache.NewMemcached(cache.MemcachedConfig{}, client,
22 "test", 0, nil, log.NewNopLogger())
23
24 testMemcache(t, memcache)
25 })
26}
27
28func testMemcache(t *testing.T, memcache *cache.Memcached) {
29 numKeys := 1000

Callers

nothing calls this directly

Calls 4

NewMemcachedFunction · 0.92
newMockMemcacheFunction · 0.85
testMemcacheFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected