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

Function createDartFile

vcs/git/git_test_helpers.go:44–46  ·  view source on GitHub ↗

createDartFile creates a dart file with sample content

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

Source from the content-addressed store, hash-verified

42
43// createDartFile creates a dart file with sample content
44func createDartFile(t *testing.T, dir, name string) string {
45 return createFile(t, dir, name, "import 'dart:io';\n\nclass Test {}")
46}
47
48// gitAdd adds a file to git staging area
49func gitAdd(t *testing.T, repoDir, file string) {

Calls 1

createFileFunction · 0.85