MCPcopy Create free account
hub / github.com/driangle/taskmd / writeTestFile

Function writeTestFile

apps/cli/internal/cli/edge_cases_test.go:310–316  ·  view source on GitHub ↗
(t *testing.T, dir, filename, content string)

Source from the content-addressed store, hash-verified

308}
309
310func writeTestFile(t *testing.T, dir, filename, content string) {
311 t.Helper()
312 path := filepath.Join(dir, filename)
313 if err := os.WriteFile(path, []byte(content), 0644); err != nil {
314 t.Fatalf("Failed to create test file %s: %v", filename, err)
315 }
316}

Callers 4

TestEdge_EmptyFileFunction · 0.85
createEdgeCaseTestFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected