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

Function TestCompletionScreen_RenderNoBranch

internal/tui/completion_test.go:74–86  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

72}
73
74func TestCompletionScreen_RenderNoBranch(t *testing.T) {
75 cs := NewCompletionScreen()
76 cs.Configure("auth", 8, 8, "", 0, false, 0, nil)
77 cs.SetSize(80, 40)
78
79 rendered := cs.Render()
80 if strings.Contains(rendered, "Branch:") {
81 t.Error("expected no 'Branch:' when no branch is set")
82 }
83 if strings.Contains(rendered, "commit") {
84 t.Error("expected no commit info when no branch is set")
85 }
86}
87
88func TestCompletionScreen_RenderNoAutoActions(t *testing.T) {
89 cs := NewCompletionScreen()

Callers

nothing calls this directly

Calls 4

ConfigureMethod · 0.95
SetSizeMethod · 0.95
RenderMethod · 0.95
NewCompletionScreenFunction · 0.85

Tested by

no test coverage detected