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

Function TestCompletionScreen_PushInProgress

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

Source from the content-addressed store, hash-verified

148}
149
150func TestCompletionScreen_PushInProgress(t *testing.T) {
151 cs := NewCompletionScreen()
152 cs.Configure("auth", 8, 8, "chief/auth", 5, true, 0, nil)
153 cs.SetPushInProgress()
154 cs.SetSize(80, 40)
155
156 rendered := cs.Render()
157 if !strings.Contains(rendered, "Pushing branch to remote") {
158 t.Error("expected 'Pushing branch to remote' when push is in progress")
159 }
160 if cs.pushState != AutoActionInProgress {
161 t.Errorf("expected push state to be AutoActionInProgress, got %d", cs.pushState)
162 }
163 if !cs.IsAutoActionRunning() {
164 t.Error("expected IsAutoActionRunning() to be true when push is in progress")
165 }
166}
167
168func TestCompletionScreen_PushSuccess(t *testing.T) {
169 cs := NewCompletionScreen()

Callers

nothing calls this directly

Calls 6

ConfigureMethod · 0.95
SetPushInProgressMethod · 0.95
SetSizeMethod · 0.95
RenderMethod · 0.95
IsAutoActionRunningMethod · 0.95
NewCompletionScreenFunction · 0.85

Tested by

no test coverage detected