MCPcopy Index your code
hub / github.com/docker/docker-agent / TestMemoryCache_caseInsensitive

Function TestMemoryCache_caseInsensitive

pkg/cache/cache_test.go:39–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func TestMemoryCache_caseInsensitive(t *testing.T) {
40 t.Parallel()
41 c, err := New(Config{Enabled: true, CaseSensitive: false})
42 require.NoError(t, err)
43
44 c.Store("Hello", "world")
45
46 got, ok := c.Lookup("HELLO")
47 assert.True(t, ok)
48 assert.Equal(t, "world", got)
49}
50
51func TestMemoryCache_trimSpaces(t *testing.T) {
52 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
StoreMethod · 0.45
LookupMethod · 0.45

Tested by

no test coverage detected