MCPcopy Create free account
hub / github.com/diillson/chatcli / TestTimer_StopWhenNotRunning

Function TestTimer_StopWhenNotRunning

cli/metrics/timer_test.go:44–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestTimer_StopWhenNotRunning(t *testing.T) {
45 tm := NewTimer()
46 if got := tm.Stop(); got != 0 {
47 t.Errorf("Stop on a non-running timer should return 0, got %v", got)
48 }
49}

Callers

nothing calls this directly

Calls 3

StopMethod · 0.95
NewTimerFunction · 0.85
ErrorfMethod · 0.80

Tested by

no test coverage detected