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

Function createEdgeCaseTestFiles

apps/cli/internal/cli/edge_cases_test.go:286–308  ·  view source on GitHub ↗

--- helpers ---

(t *testing.T)

Source from the content-addressed store, hash-verified

284// --- helpers ---
285
286func createEdgeCaseTestFiles(t *testing.T) string {
287 t.Helper()
288
289 tmpDir := t.TempDir()
290
291 content := `---
292id: "001"
293title: "Edge case task"
294status: pending
295priority: high
296effort: small
297dependencies: []
298tags: ["test"]
299created: 2026-02-08
300---
301
302# Edge case task
303
304A basic task for edge case testing.
305`
306 writeTestFile(t, tmpDir, "001-task.md", content)
307 return tmpDir
308}
309
310func writeTestFile(t *testing.T, dir, filename, content string) {
311 t.Helper()

Calls 1

writeTestFileFunction · 0.85

Tested by

no test coverage detected