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

Function TestCompletionScreen_Tick

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

Source from the content-addressed store, hash-verified

271}
272
273func TestCompletionScreen_Tick(t *testing.T) {
274 cs := NewCompletionScreen()
275 cs.Configure("auth", 8, 8, "chief/auth", 5, true, 0, nil)
276 cs.SetPushInProgress()
277
278 initial := cs.spinnerFrame
279 cs.Tick()
280 if cs.spinnerFrame != initial+1 {
281 t.Error("expected spinner frame to advance on Tick()")
282 }
283}
284
285func TestCompletionScreen_PushErrorNonBlocking(t *testing.T) {
286 cs := NewCompletionScreen()

Callers

nothing calls this directly

Calls 4

ConfigureMethod · 0.95
SetPushInProgressMethod · 0.95
TickMethod · 0.95
NewCompletionScreenFunction · 0.85

Tested by

no test coverage detected