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

Function TestSaveFileToDirs

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

Source from the content-addressed store, hash-verified

85}
86
87func TestSaveFileToDirs(t *testing.T) {
88 tmpHome := filepath.Join(t.TempDir(), ".docker")
89 config, err := Load(tmpHome)
90 assert.NilError(t, err)
91
92 // Now save it and make sure it shows up in new form
93 saveConfigAndValidateNewFormat(t, config, tmpHome)
94}
95
96func TestEmptyFile(t *testing.T) {
97 tmpHome := t.TempDir()

Callers

nothing calls this directly

Calls 2

LoadFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…