MCPcopy Create free account
hub / github.com/docker/cli / setupConfigDir

Function setupConfigDir

cli/config/config_test.go:19–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17)
18
19func setupConfigDir(t *testing.T) string {
20 t.Helper()
21 tmpdir := t.TempDir()
22 oldDir := Dir()
23 SetDir(tmpdir)
24 t.Cleanup(func() {
25 SetDir(oldDir)
26 })
27 return tmpdir
28}
29
30func TestEmptyConfigDir(t *testing.T) {
31 tmpHome := setupConfigDir(t)

Callers 2

TestEmptyConfigDirFunction · 0.85

Calls 2

DirFunction · 0.85
SetDirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…