(t *testing.T, oldPath string, newPath string)
| 2259 | } |
| 2260 | |
| 2261 | func moveFile(t *testing.T, oldPath string, newPath string) { |
| 2262 | err := os.Rename(oldPath, newPath) |
| 2263 | if err != nil { |
| 2264 | failWithFailure(t, "no error", fmt.Sprintf("error %v occured moving %s to %s", err, oldPath, newPath)) |
| 2265 | } |
| 2266 | } |
| 2267 | |
| 2268 | func readFile(t *testing.T, path string) string { |
| 2269 | content, err := os.ReadFile(path) |