SetHomeDir sets CF_HOME and CF_PLUGIN_HOME to a temp directory and outputs the created directory through GinkgoWriter.
()
| 29 | // SetHomeDir sets CF_HOME and CF_PLUGIN_HOME to a temp directory and outputs |
| 30 | // the created directory through GinkgoWriter. |
| 31 | func SetHomeDir() string { |
| 32 | var err error |
| 33 | homeDir, err := os.MkdirTemp("", "cli-integration-test") |
| 34 | Expect(err).NotTo(HaveOccurred()) |
| 35 | |
| 36 | setHomeDirsTo(homeDir, homeDir) |
| 37 | return homeDir |
| 38 | } |
| 39 | |
| 40 | // WithRandomHomeDir sets CF_HOME and CF_PLUGIN_HOME to a temp directory and outputs |
| 41 | // the created directory through GinkgoWriter. Then it executes the provided function |
no test coverage detected