MCPcopy Index your code
hub / github.com/docker/cli / withCliConfig

Function withCliConfig

cli/command/context/create_test.go:52–56  ·  view source on GitHub ↗
(configFile *configfile.ConfigFile)

Source from the content-addressed store, hash-verified

50}
51
52func withCliConfig(configFile *configfile.ConfigFile) func(*test.FakeCli) {
53 return func(m *test.FakeCli) {
54 m.SetConfigFile(configFile)
55 }
56}
57
58func TestCreate(t *testing.T) {
59 cli := makeFakeCli(t)

Callers 3

TestRemoveCurrentForceFunction · 0.85
TestUseFunction · 0.85
TestUseHostOverrideFunction · 0.85

Calls 1

SetConfigFileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…