(t *testing.T)
| 14 | ) |
| 15 | |
| 16 | func createSetTestFiles(t *testing.T) string { |
| 17 | t.Helper() |
| 18 | |
| 19 | tmpDir := t.TempDir() |
| 20 | |
| 21 | tasks := map[string]string{ |
| 22 | "001-setup.md": `--- |
| 23 | id: "001" |
| 24 | title: "Setup project" |
| 25 | status: pending |
| 26 | priority: high |
| 27 | effort: small |
| 28 | dependencies: [] |
| 29 | tags: ["infra"] |
| 30 | created: 2026-02-08 |
| 31 | --- |
| 32 | |
| 33 | # Setup project |
| 34 | |
| 35 | Initial project setup with build tooling. |
| 36 | `, |
| 37 | "002-auth.md": `--- |
| 38 | id: "002" |
| 39 | title: "Implement authentication" |
| 40 | status: in-progress |
| 41 | priority: critical |
| 42 | effort: large |
| 43 | dependencies: ["001"] |
| 44 | tags: ["backend", "security"] |
| 45 | created: 2026-02-08 |
| 46 | --- |
| 47 | |
| 48 | # Implement authentication |
| 49 | |
| 50 | Add JWT-based auth with refresh tokens. |
| 51 | `, |
| 52 | "003-ui.md": `--- |
| 53 | id: "003" |
| 54 | title: "Build UI components" |
| 55 | status: blocked |
| 56 | priority: medium |
| 57 | effort: medium |
| 58 | dependencies: ["002"] |
| 59 | tags: ["frontend"] |
| 60 | created: 2026-02-08 |
| 61 | --- |
| 62 | |
| 63 | # Build UI components |
| 64 | |
| 65 | Create reusable component library. |
| 66 | `, |
| 67 | } |
| 68 | |
| 69 | for filename, content := range tasks { |
| 70 | path := filepath.Join(tmpDir, filename) |
| 71 | if err := os.WriteFile(path, []byte(content), 0644); err != nil { |
| 72 | t.Fatalf("Failed to create test file %s: %v", filename, err) |
| 73 | } |
no outgoing calls
no test coverage detected