(t *testing.T)
| 14 | ) |
| 15 | |
| 16 | func createContextTestFiles(t *testing.T) string { |
| 17 | t.Helper() |
| 18 | tmpDir := t.TempDir() |
| 19 | |
| 20 | tasks := map[string]string{ |
| 21 | "001-touches.md": `--- |
| 22 | id: "001" |
| 23 | title: "Task with touches" |
| 24 | status: pending |
| 25 | touches: |
| 26 | - cli |
| 27 | created: 2026-02-14 |
| 28 | --- |
| 29 | |
| 30 | # Task with touches |
| 31 | `, |
| 32 | "002-context.md": `--- |
| 33 | id: "002" |
| 34 | title: "Task with context" |
| 35 | status: pending |
| 36 | context: |
| 37 | - "docs/readme.md" |
| 38 | created: 2026-02-14 |
| 39 | --- |
| 40 | |
| 41 | # Task with context |
| 42 | |
| 43 | Some body text here. |
| 44 | `, |
| 45 | "003-both.md": `--- |
| 46 | id: "003" |
| 47 | title: "Task with both" |
| 48 | status: pending |
| 49 | touches: |
| 50 | - cli |
| 51 | context: |
| 52 | - "docs/readme.md" |
| 53 | created: 2026-02-14 |
| 54 | --- |
| 55 | |
| 56 | # Task with both |
| 57 | `, |
| 58 | "004-deps.md": `--- |
| 59 | id: "004" |
| 60 | title: "Task with deps" |
| 61 | status: pending |
| 62 | dependencies: ["001"] |
| 63 | context: |
| 64 | - "docs/notes.md" |
| 65 | created: 2026-02-14 |
| 66 | --- |
| 67 | |
| 68 | # Task with deps |
| 69 | `, |
| 70 | "005-empty.md": `--- |
| 71 | id: "005" |
| 72 | title: "Task with nothing" |
| 73 | status: pending |
no test coverage detected