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

Function resetConfigDir

cli/config/config.go:40–43  ·  view source on GitHub ↗

resetConfigDir is used in testing to reset the "configDir" package variable and its sync.Once to force re-lookup between tests.

()

Source from the content-addressed store, hash-verified

38// resetConfigDir is used in testing to reset the "configDir" package variable
39// and its sync.Once to force re-lookup between tests.
40func resetConfigDir() {
41 configDir = ""
42 initConfigDir = new(sync.Once)
43}
44
45// getHomeDir returns the home directory of the current user with the help of
46// environment variables depending on the target operating system.

Callers 1

TestSetDirFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSetDirFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…