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

Function createReportTestFiles

apps/cli/internal/cli/report_test.go:14–114  ·  view source on GitHub ↗

createReportTestFiles creates test task files covering all statuses, priorities, efforts, and a 3-level dependency chain for critical path testing.

(t *testing.T)

Source from the content-addressed store, hash-verified

12// createReportTestFiles creates test task files covering all statuses, priorities,
13// efforts, and a 3-level dependency chain for critical path testing.
14func createReportTestFiles(t *testing.T) string {
15 t.Helper()
16
17 tmpDir := t.TempDir()
18
19 tasks := map[string]string{
20 "001-setup.md": `---
21id: "001"
22title: "Setup project"
23status: completed
24priority: high
25effort: small
26type: chore
27dependencies: []
28tags: ["infra"]
29created: 2026-02-08
30---
31
32# Setup project
33`,
34 "002-auth.md": `---
35id: "002"
36title: "Implement authentication"
37status: in-progress
38priority: critical
39effort: large
40type: feature
41dependencies: ["001"]
42tags: ["backend", "security"]
43created: 2026-02-08
44---
45
46# Implement authentication
47`,
48 "003-ui.md": `---
49id: "003"
50title: "Build UI components"
51status: pending
52priority: medium
53effort: medium
54type: feature
55dependencies: []
56tags: ["frontend"]
57created: 2026-02-08
58---
59
60# Build UI components
61`,
62 "004-api.md": `---
63id: "004"
64title: "Design API endpoints"
65status: pending
66priority: high
67effort: medium
68type: feature
69dependencies: ["002"]
70tags: ["backend"]
71created: 2026-02-08

Calls

no outgoing calls

Tested by

no test coverage detected