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

Function TestCompletionScreen_PushError

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

Source from the content-addressed store, hash-verified

182}
183
184func TestCompletionScreen_PushError(t *testing.T) {
185 cs := NewCompletionScreen()
186 cs.Configure("auth", 8, 8, "chief/auth", 5, true, 0, nil)
187 cs.SetPushError("authentication failed")
188 cs.SetSize(80, 40)
189
190 rendered := cs.Render()
191 if !strings.Contains(rendered, "Push failed") {
192 t.Error("expected 'Push failed' when push errored")
193 }
194 if !strings.Contains(rendered, "authentication failed") {
195 t.Error("expected error message in render output")
196 }
197}
198
199func TestCompletionScreen_PRInProgress(t *testing.T) {
200 cs := NewCompletionScreen()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected