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

Function TestCompletionScreen_PRInProgress

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

Source from the content-addressed store, hash-verified

197}
198
199func TestCompletionScreen_PRInProgress(t *testing.T) {
200 cs := NewCompletionScreen()
201 cs.Configure("auth", 8, 8, "chief/auth", 5, true, 0, nil)
202 cs.SetPushSuccess()
203 cs.SetPRInProgress()
204 cs.SetSize(80, 40)
205
206 rendered := cs.Render()
207 if !strings.Contains(rendered, "Creating pull request") {
208 t.Error("expected 'Creating pull request' when PR is in progress")
209 }
210 if !cs.IsAutoActionRunning() {
211 t.Error("expected IsAutoActionRunning() to be true when PR is in progress")
212 }
213}
214
215func TestCompletionScreen_PRSuccess(t *testing.T) {
216 cs := NewCompletionScreen()

Callers

nothing calls this directly

Calls 7

ConfigureMethod · 0.95
SetPushSuccessMethod · 0.95
SetPRInProgressMethod · 0.95
SetSizeMethod · 0.95
RenderMethod · 0.95
IsAutoActionRunningMethod · 0.95
NewCompletionScreenFunction · 0.85

Tested by

no test coverage detected