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

Function TestFooterHidesMergeHintForRunningPRD

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

Source from the content-addressed store, hash-verified

376}
377
378func TestFooterHidesMergeHintForRunningPRD(t *testing.T) {
379 p := &PRDPicker{
380 basePath: "/project",
381 entries: []PRDEntry{
382 {
383 Name: "auth",
384 Completed: 3,
385 Total: 8,
386 LoopState: loop.LoopStateRunning,
387 Iteration: 2,
388 Branch: "chief/auth",
389 },
390 },
391 selectedIndex: 0,
392 }
393
394 shortcuts := p.buildFooterShortcuts()
395 if containsSubstring(shortcuts, "m: merge") {
396 t.Errorf("expected no 'm: merge' in footer for running PRD, got: %s", shortcuts)
397 }
398}
399
400// --- Clean Action Tests ---
401

Callers

nothing calls this directly

Calls 2

buildFooterShortcutsMethod · 0.95
containsSubstringFunction · 0.85

Tested by

no test coverage detected