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

Function createTracksTestTaskFiles

apps/cli/internal/cli/tracks_test.go:25–107  ·  view source on GitHub ↗

createTracksTestTaskFiles creates task files with touches fields for testing. Task graph: 001 (completed) - root, completed 002 (pending, high, scope-a) - depends on 001 (completed) -> actionable 003 (pending, critical, scope-a,b) - depends on 001 (completed) -> a

(t *testing.T)

Source from the content-addressed store, hash-verified

23// 006 (pending, medium) - depends on 007 (pending) -> blocked
24// 007 (pending, low, scope-b) - no deps -> actionable
25func createTracksTestTaskFiles(t *testing.T) string {
26 t.Helper()
27 tmpDir := t.TempDir()
28
29 tasks := map[string]string{
30 "001.md": `---
31id: "001"
32title: "Setup infrastructure"
33status: completed
34priority: high
35dependencies: []
36tags: ["infra"]
37created: 2026-02-01
38---`,
39 "002.md": `---
40id: "002"
41title: "Build graph colors"
42status: pending
43priority: high
44dependencies: ["001"]
45tags: ["cli"]
46touches: ["scope-a"]
47created: 2026-02-02
48---`,
49 "003.md": `---
50id: "003"
51title: "Refactor output"
52status: pending
53priority: critical
54dependencies: ["001"]
55tags: ["cli"]
56touches: ["scope-a", "scope-b"]
57created: 2026-02-03
58---`,
59 "004.md": `---
60id: "004"
61title: "Scanner improvements"
62status: pending
63priority: medium
64dependencies: []
65tags: ["core"]
66touches: ["scope-c"]
67created: 2026-02-04
68---`,
69 "005.md": `---
70id: "005"
71title: "Write README"
72status: pending
73priority: low
74dependencies: []
75tags: ["docs"]
76created: 2026-02-05
77---`,
78 "006.md": `---
79id: "006"
80title: "Add auth"
81status: pending
82priority: medium

Calls

no outgoing calls

Tested by

no test coverage detected