--- File path matching tests ---
(t *testing.T)
| 474 | // --- File path matching tests --- |
| 475 | |
| 476 | func createGetTestFilesWithSubdirs(t *testing.T) string { |
| 477 | t.Helper() |
| 478 | |
| 479 | tmpDir := t.TempDir() |
| 480 | |
| 481 | dirs := []string{"cli", "backend"} |
| 482 | for _, d := range dirs { |
| 483 | if err := os.MkdirAll(filepath.Join(tmpDir, d), 0755); err != nil { |
| 484 | t.Fatalf("Failed to create directory %s: %v", d, err) |
| 485 | } |
| 486 | } |
| 487 | |
| 488 | files := map[string]string{ |
| 489 | "cli/042-task.md": `--- |
| 490 | id: "cli-042" |
| 491 | title: "CLI task" |
| 492 | status: pending |
| 493 | priority: medium |
| 494 | dependencies: [] |
| 495 | tags: [] |
| 496 | created: 2026-02-08 |
| 497 | --- |
| 498 | |
| 499 | # CLI task |
| 500 | `, |
| 501 | "backend/055-api.md": `--- |
| 502 | id: "backend-055" |
| 503 | title: "API task" |
| 504 | status: pending |
| 505 | priority: high |
| 506 | dependencies: [] |
| 507 | tags: [] |
| 508 | created: 2026-02-08 |
| 509 | --- |
| 510 | |
| 511 | # API task |
| 512 | `, |
| 513 | "cli/055-api.md": `--- |
| 514 | id: "cli-055" |
| 515 | title: "CLI API task" |
| 516 | status: pending |
| 517 | priority: low |
| 518 | dependencies: [] |
| 519 | tags: [] |
| 520 | created: 2026-02-08 |
| 521 | --- |
| 522 | |
| 523 | # CLI API task |
| 524 | `, |
| 525 | } |
| 526 | |
| 527 | for relPath, content := range files { |
| 528 | path := filepath.Join(tmpDir, relPath) |
| 529 | if err := os.WriteFile(path, []byte(content), 0644); err != nil { |
| 530 | t.Fatalf("Failed to create test file %s: %v", relPath, err) |
| 531 | } |
| 532 | } |
| 533 |
no outgoing calls
no test coverage detected