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

Function openRoot

pkg/config/config_test.go:191–199  ·  view source on GitHub ↗
(t *testing.T, dir string)

Source from the content-addressed store, hash-verified

189}
190
191func openRoot(t *testing.T, dir string) *os.Root {
192 t.Helper()
193
194 root, err := os.OpenRoot(dir)
195 require.NoError(t, err)
196 t.Cleanup(func() { root.Close() })
197
198 return root
199}
200
201type noEnvProvider struct{}
202

Callers 1

Calls 2

CleanupMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected