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