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

Function isolateConfigDir

pkg/tour/state_test.go:13–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func isolateConfigDir(t *testing.T) {
14 t.Helper()
15 paths.SetConfigDir(filepath.Join(t.TempDir(), "config"))
16 t.Cleanup(func() { paths.SetConfigDir("") })
17}
18
19func TestReadStatus_DefaultsToUnanswered(t *testing.T) {
20 isolateConfigDir(t)

Callers 6

TestMarkDoneFunction · 0.85
TestMarkNeverFunction · 0.85

Calls 2

SetConfigDirFunction · 0.92
CleanupMethod · 0.65

Tested by

no test coverage detected