(t *testing.T)
| 459 | } |
| 460 | |
| 461 | func TestCanCleanStoppedPRD(t *testing.T) { |
| 462 | p := &PRDPicker{ |
| 463 | basePath: "/project", |
| 464 | entries: []PRDEntry{ |
| 465 | { |
| 466 | Name: "auth", |
| 467 | Completed: 3, |
| 468 | Total: 8, |
| 469 | LoopState: loop.LoopStateStopped, |
| 470 | Branch: "chief/auth", |
| 471 | WorktreeDir: "/project/.chief/worktrees/auth", |
| 472 | }, |
| 473 | }, |
| 474 | selectedIndex: 0, |
| 475 | } |
| 476 | if !p.CanClean() { |
| 477 | t.Error("expected CanClean() to return true for stopped PRD with worktree") |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | func TestCleanConfirmationDialog(t *testing.T) { |
| 482 | p := &PRDPicker{ |