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

Function createFile

vcs/git/git_test_helpers.go:36–41  ·  view source on GitHub ↗

createFile creates a file with content

(t *testing.T, dir, name, content string)

Source from the content-addressed store, hash-verified

34
35// createFile creates a file with content
36func createFile(t *testing.T, dir, name, content string) string {
37 filePath := filepath.Join(dir, name)
38 err := os.WriteFile(filePath, []byte(content), 0644)
39 require.NoError(t, err, "failed to create file %s", name)
40 return filePath
41}
42
43// createDartFile creates a dart file with sample content
44func createDartFile(t *testing.T, dir, name string) string {

Calls

no outgoing calls