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

Function TestBuildAgentCache_disabled

pkg/teamloader/cache_test.go:13–29  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestBuildAgentCache_disabled(t *testing.T) {
14 t.Parallel()
15 cases := []struct {
16 name string
17 cfg *latest.CacheConfig
18 }{
19 {"nil config", nil},
20 {"explicitly disabled", &latest.CacheConfig{Enabled: false}},
21 }
22 for _, tc := range cases {
23 t.Run(tc.name, func(t *testing.T) {
24 c, err := buildAgentCache("agent", tc.cfg, t.TempDir())
25 require.NoError(t, err)
26 assert.Nil(t, c)
27 })
28 }
29}
30
31func TestBuildAgentCache_inMemory(t *testing.T) {
32 t.Parallel()

Callers

nothing calls this directly

Calls 2

buildAgentCacheFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected