Helper to create task files with duplicate IDs for integration tests.
(t *testing.T)
| 174 | |
| 175 | // Helper to create task files with duplicate IDs for integration tests. |
| 176 | func createDuplicateTestFiles(t *testing.T) string { |
| 177 | t.Helper() |
| 178 | tmpDir := t.TempDir() |
| 179 | |
| 180 | groupA := filepath.Join(tmpDir, "groupA") |
| 181 | groupB := filepath.Join(tmpDir, "groupB") |
| 182 | if err := os.MkdirAll(groupA, 0755); err != nil { |
| 183 | t.Fatal(err) |
| 184 | } |
| 185 | if err := os.MkdirAll(groupB, 0755); err != nil { |
| 186 | t.Fatal(err) |
| 187 | } |
| 188 | |
| 189 | taskA := `--- |
| 190 | id: "042" |
| 191 | title: "Task A" |
| 192 | status: pending |
| 193 | priority: high |
| 194 | effort: small |
| 195 | dependencies: [] |
| 196 | tags: [] |
| 197 | created: 2026-02-08 |
| 198 | --- |
| 199 | |
| 200 | # Task A |
| 201 | ` |
| 202 | taskB := `--- |
| 203 | id: "042" |
| 204 | title: "Task B" |
| 205 | status: pending |
| 206 | priority: medium |
| 207 | effort: medium |
| 208 | dependencies: [] |
| 209 | tags: [] |
| 210 | created: 2026-02-08 |
| 211 | --- |
| 212 | |
| 213 | # Task B |
| 214 | ` |
| 215 | uniqueTask := `--- |
| 216 | id: "001" |
| 217 | title: "Unique Task" |
| 218 | status: pending |
| 219 | priority: low |
| 220 | effort: small |
| 221 | dependencies: [] |
| 222 | tags: [] |
| 223 | created: 2026-02-08 |
| 224 | --- |
| 225 | |
| 226 | # Unique Task |
| 227 | ` |
| 228 | |
| 229 | for name, content := range map[string]string{ |
| 230 | filepath.Join(groupA, "042-task-a.md"): taskA, |
| 231 | filepath.Join(groupB, "042-task-b.md"): taskB, |
| 232 | filepath.Join(tmpDir, "001-unique.md"): uniqueTask, |
| 233 | } { |
no outgoing calls
no test coverage detected