MCPcopy Create free account
hub / github.com/LegacyCodeHQ/clarity-cli / modifyFile

Function modifyFile

vcs/git/git_test_helpers.go:79–82  ·  view source on GitHub ↗

modifyFile overwrites a file with modified content

(t *testing.T, filePath string)

Source from the content-addressed store, hash-verified

77
78// modifyFile overwrites a file with modified content
79func 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

Calls

no outgoing calls