MCPcopy Create free account
hub / github.com/charmbracelet/bubbles / TestRunningReturnsFalseWhenTimedOut

Function TestRunningReturnsFalseWhenTimedOut

timer/timer_test.go:331–337  ·  view source on GitHub ↗

TestRunningReturnsFalseWhenTimedOut verifies that Running() returns false when the timer has timed out.

(t *testing.T)

Source from the content-addressed store, hash-verified

329// TestRunningReturnsFalseWhenTimedOut verifies that Running() returns false
330// when the timer has timed out.
331func TestRunningReturnsFalseWhenTimedOut(t *testing.T) {
332 m := New(0)
333
334 if m.Running() {
335 t.Error("expected Running() to return false when timed out")
336 }
337}
338
339// TestDuplicateTickStreamDoesNotPermanentlyDoubleSpeed reproduces
340// https://github.com/charmbracelet/bubbles/issues/1007: the tag-based

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
RunningMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected