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