Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
44
func
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
Stop
Method · 0.95
NewTimer
Function · 0.85
Errorf
Method · 0.80
Tested by
no test coverage detected