modifyFile overwrites a file with modified content
(t *testing.T, filePath string)
| 77 | |
| 78 | // modifyFile overwrites a file with modified content |
| 79 | func modifyFile(t *testing.T, filePath string) { |
| 80 | err := os.WriteFile(filePath, []byte("modified content\n"), 0644) |
| 81 | require.NoError(t, err, "failed to modify file %s", filePath) |
| 82 | } |
| 83 | |
| 84 | // normalizeFilePaths normalizes file paths for golden file comparison |
| 85 | // by replacing the temp directory with $REPO placeholder |
no outgoing calls