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

Function TestCanCleanDisabledForRunningPRD

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

Source from the content-addressed store, hash-verified

420}
421
422func TestCanCleanDisabledForRunningPRD(t *testing.T) {
423 p := &PRDPicker{
424 basePath: "/project",
425 entries: []PRDEntry{
426 {
427 Name: "auth",
428 Completed: 3,
429 Total: 8,
430 LoopState: loop.LoopStateRunning,
431 Branch: "chief/auth",
432 WorktreeDir: "/project/.chief/worktrees/auth",
433 },
434 },
435 selectedIndex: 0,
436 }
437 if p.CanClean() {
438 t.Error("expected CanClean() to return false for running PRD")
439 }
440}
441
442func TestCanCleanDisabledWithoutWorktree(t *testing.T) {
443 p := &PRDPicker{

Callers

nothing calls this directly

Calls 1

CanCleanMethod · 0.95

Tested by

no test coverage detected