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

Function TestFooterHidesCleanHintForRunningPRD

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

Source from the content-addressed store, hash-verified

716}
717
718func 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
741func TestFooterHidesCleanHintForPRDWithoutWorktree(t *testing.T) {
742 p := &PRDPicker{

Callers

nothing calls this directly

Calls 2

buildFooterShortcutsMethod · 0.95
containsSubstringFunction · 0.85

Tested by

no test coverage detected