createReportTestFiles creates test task files covering all statuses, priorities, efforts, and a 3-level dependency chain for critical path testing.
(t *testing.T)
| 12 | // createReportTestFiles creates test task files covering all statuses, priorities, |
| 13 | // efforts, and a 3-level dependency chain for critical path testing. |
| 14 | func createReportTestFiles(t *testing.T) string { |
| 15 | t.Helper() |
| 16 | |
| 17 | tmpDir := t.TempDir() |
| 18 | |
| 19 | tasks := map[string]string{ |
| 20 | "001-setup.md": `--- |
| 21 | id: "001" |
| 22 | title: "Setup project" |
| 23 | status: completed |
| 24 | priority: high |
| 25 | effort: small |
| 26 | type: chore |
| 27 | dependencies: [] |
| 28 | tags: ["infra"] |
| 29 | created: 2026-02-08 |
| 30 | --- |
| 31 | |
| 32 | # Setup project |
| 33 | `, |
| 34 | "002-auth.md": `--- |
| 35 | id: "002" |
| 36 | title: "Implement authentication" |
| 37 | status: in-progress |
| 38 | priority: critical |
| 39 | effort: large |
| 40 | type: feature |
| 41 | dependencies: ["001"] |
| 42 | tags: ["backend", "security"] |
| 43 | created: 2026-02-08 |
| 44 | --- |
| 45 | |
| 46 | # Implement authentication |
| 47 | `, |
| 48 | "003-ui.md": `--- |
| 49 | id: "003" |
| 50 | title: "Build UI components" |
| 51 | status: pending |
| 52 | priority: medium |
| 53 | effort: medium |
| 54 | type: feature |
| 55 | dependencies: [] |
| 56 | tags: ["frontend"] |
| 57 | created: 2026-02-08 |
| 58 | --- |
| 59 | |
| 60 | # Build UI components |
| 61 | `, |
| 62 | "004-api.md": `--- |
| 63 | id: "004" |
| 64 | title: "Design API endpoints" |
| 65 | status: pending |
| 66 | priority: high |
| 67 | effort: medium |
| 68 | type: feature |
| 69 | dependencies: ["002"] |
| 70 | tags: ["backend"] |
| 71 | created: 2026-02-08 |
no outgoing calls
no test coverage detected