(t *testing.T)
| 716 | } |
| 717 | |
| 718 | func TestFooterHidesCleanHintForRunningPRD(t *testing.T) { |
| 719 | p := &PRDPicker{ |
| 720 | basePath: "/project", |
| 721 | entries: []PRDEntry{ |
| 722 | { |
| 723 | Name: "auth", |
| 724 | Completed: 3, |
| 725 | Total: 8, |
| 726 | LoopState: loop.LoopStateRunning, |
| 727 | Iteration: 2, |
| 728 | Branch: "chief/auth", |
| 729 | WorktreeDir: "/project/.chief/worktrees/auth", |
| 730 | }, |
| 731 | }, |
| 732 | selectedIndex: 0, |
| 733 | } |
| 734 | |
| 735 | shortcuts := p.buildFooterShortcuts() |
| 736 | if containsSubstring(shortcuts, "c: clean") { |
| 737 | t.Errorf("expected no 'c: clean' in footer for running PRD, got: %s", shortcuts) |
| 738 | } |
| 739 | } |
| 740 | |
| 741 | func TestFooterHidesCleanHintForPRDWithoutWorktree(t *testing.T) { |
| 742 | p := &PRDPicker{ |
nothing calls this directly
no test coverage detected