MCPcopy
hub / github.com/cloudfoundry/cli / setup

Function setup

util/configv3/config_suite_test.go:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func setup() string {
24 homeDir, err := os.MkdirTemp("", "cli-config-tests")
25 Expect(err).NotTo(HaveOccurred())
26 err = os.Setenv("CF_HOME", homeDir)
27 Expect(err).NotTo(HaveOccurred())
28 return homeDir
29}
30
31func teardown(homeDir string) {
32 if homeDir != "" {

Calls

no outgoing calls

Tested by

no test coverage detected