(t *testing.T, path string)
| 2244 | } |
| 2245 | |
| 2246 | func ensureDirectoryExists(t *testing.T, path string) (pathToDirectory string) { |
| 2247 | err := os.MkdirAll(path, 0755) |
| 2248 | if err != nil { |
| 2249 | failWithFailure(t, "creating folder "+path, "error") |
| 2250 | } |
| 2251 | return path |
| 2252 | } |
| 2253 | |
| 2254 | func removeFile(t *testing.T, path string) { |
| 2255 | err := os.Remove(path) |
no test coverage detected