createTestTaskFiles creates test task files in a temp directory
(t *testing.T)
| 11 | |
| 12 | // createTestTaskFiles creates test task files in a temp directory |
| 13 | func createTestTaskFiles(t *testing.T) string { |
| 14 | t.Helper() |
| 15 | |
| 16 | tmpDir := t.TempDir() |
| 17 | |
| 18 | tasks := map[string]string{ |
| 19 | "001-root-task.md": `--- |
| 20 | id: "001" |
| 21 | title: "Root Task" |
| 22 | status: completed |
| 23 | priority: high |
| 24 | effort: small |
| 25 | dependencies: [] |
| 26 | tags: ["test"] |
| 27 | created: 2026-02-08 |
| 28 | --- |
| 29 | |
| 30 | # Root Task |
| 31 | |
| 32 | A completed root task. |
| 33 | `, |
| 34 | "002-depends-on-001.md": `--- |
| 35 | id: "002" |
| 36 | title: "Depends on 001" |
| 37 | status: completed |
| 38 | priority: medium |
| 39 | effort: medium |
| 40 | dependencies: ["001"] |
| 41 | tags: ["test"] |
| 42 | created: 2026-02-08 |
| 43 | --- |
| 44 | |
| 45 | # Depends on 001 |
| 46 | |
| 47 | A completed task that depends on 001. |
| 48 | `, |
| 49 | "003-depends-on-002.md": `--- |
| 50 | id: "003" |
| 51 | title: "Depends on 002" |
| 52 | status: pending |
| 53 | priority: high |
| 54 | effort: small |
| 55 | dependencies: ["002"] |
| 56 | tags: ["test"] |
| 57 | created: 2026-02-08 |
| 58 | --- |
| 59 | |
| 60 | # Depends on 002 |
| 61 | |
| 62 | A pending task that depends on completed task 002. |
| 63 | `, |
| 64 | "004-depends-on-001-002.md": `--- |
| 65 | id: "004" |
| 66 | title: "Depends on 001 and 002" |
| 67 | status: pending |
| 68 | priority: low |
| 69 | effort: large |
| 70 | dependencies: ["001", "002"] |
no outgoing calls
no test coverage detected