(initialDir, tempDir string)
| 91 | } |
| 92 | |
| 93 | func CleanupTempDir(initialDir, tempDir string) { |
| 94 | err := os.RemoveAll(tempDir) |
| 95 | ExpectNoError(err) |
| 96 | |
| 97 | err = os.Chdir(initialDir) |
| 98 | ExpectNoError(err) |
| 99 | } |
| 100 | |
| 101 | func CopyToTempDir(relativePath string) (string, error) { |
| 102 | dir, err := os.MkdirTemp("", "temp-*") |
no test coverage detected