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

Function TestCanCleanDisabledWithoutWorktree

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

Source from the content-addressed store, hash-verified

440}
441
442func TestCanCleanDisabledWithoutWorktree(t *testing.T) {
443 p := &PRDPicker{
444 basePath: "/project",
445 entries: []PRDEntry{
446 {
447 Name: "auth",
448 Completed: 8,
449 Total: 8,
450 LoopState: loop.LoopStateComplete,
451 Branch: "chief/auth",
452 },
453 },
454 selectedIndex: 0,
455 }
456 if p.CanClean() {
457 t.Error("expected CanClean() to return false for PRD without worktree")
458 }
459}
460
461func TestCanCleanStoppedPRD(t *testing.T) {
462 p := &PRDPicker{

Callers

nothing calls this directly

Calls 1

CanCleanMethod · 0.95

Tested by

no test coverage detected