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

Function createNextTestTaskFiles

apps/cli/internal/cli/next_test.go:32–148  ·  view source on GitHub ↗

createNextTestTaskFiles creates a set of 10 task files designed to exercise the next command's scoring, filtering, and actionability logic. Task graph: 001 (completed, high, small) - root, completed 002 (completed, medium, medium) - depends on 001, completed 003 (pending, critical,

(t *testing.T)

Source from the content-addressed store, hash-verified

30// 009 (pending, medium, large) - depends on 006 (pending) → blocked
31// 010 (pending, low, medium) - depends on 003 → blocked (003 pending)
32func createNextTestTaskFiles(t *testing.T) string {
33 t.Helper()
34
35 tmpDir := t.TempDir()
36
37 tasks := map[string]string{
38 "001.md": `---
39id: "001"
40title: "Setup infrastructure"
41status: completed
42priority: high
43effort: small
44dependencies: []
45tags: ["infra"]
46created: 2026-02-01
47---`,
48 "002.md": `---
49id: "002"
50title: "Design API schema"
51status: completed
52priority: medium
53effort: medium
54dependencies: ["001"]
55tags: ["api"]
56created: 2026-02-02
57---`,
58 "003.md": `---
59id: "003"
60title: "Build CLI parser"
61status: pending
62priority: critical
63effort: small
64dependencies: ["001"]
65tags: ["cli"]
66created: 2026-02-03
67---`,
68 "004.md": `---
69id: "004"
70title: "Implement API endpoints"
71status: pending
72priority: high
73effort: large
74dependencies: ["002"]
75tags: ["cli", "api"]
76created: 2026-02-04
77---`,
78 "005.md": `---
79id: "005"
80title: "Write README"
81status: pending
82priority: low
83effort: small
84dependencies: []
85tags: ["docs"]
86created: 2026-02-05
87---`,
88 "006.md": `---
89id: "006"

Callers 15

TestNext_BasicRankingFunction · 0.85
TestNext_LimitFlagFunction · 0.85
TestNext_FilterByTagFunction · 0.85
TestNext_MultipleFiltersFunction · 0.85
TestNext_JSONFormatFunction · 0.85
TestNext_YAMLFormatFunction · 0.85
TestNext_TableFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected