MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestCanCleanStoppedPRD

Function TestCanCleanStoppedPRD

internal/tui/picker_test.go:461–479  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

459}
460
461func 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
481func TestCleanConfirmationDialog(t *testing.T) {
482 p := &PRDPicker{

Callers

nothing calls this directly

Calls 1

CanCleanMethod · 0.95

Tested by

no test coverage detected