()
| 21 | } |
| 22 | |
| 23 | func 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 | |
| 31 | func teardown(homeDir string) { |
| 32 | if homeDir != "" { |
no outgoing calls
no test coverage detected