Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ stats
Method
stats
coderd/workspaceapps/stats_test.go:28–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
26
}
27
28
func
(r *fakeReporter) stats() []workspaceapps.StatsReport {
29
r.mu.Lock()
30
defer
r.mu.Unlock()
31
return
r.s
32
}
33
34
func
(r *fakeReporter) errors() int {
35
r.mu.Lock()
Callers
3
TestStatsCollector
Function · 0.95
TestStatsCollector_backlog
Function · 0.95
TestStatsCollector_Close
Function · 0.95
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
no test coverage detected