Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/netdata/netdata
/ count
Method
count
src/go/logger/testutils_test.go:47–51 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
45
}
46
47
func
(h *captureHandler) count() int {
48
h.mu.Lock()
49
defer
h.mu.Unlock()
50
return
len(h.records)
51
}
52
53
func
(h *captureHandler) last() capturedRecord {
54
h.mu.Lock()
Callers
12
_dnsname_match
Function · 0.80
TestWhenElseLogsOnlyChosenBranch
Function · 0.80
TestWhenElseSkipsFormattingOnSuppressedBranch
Function · 0.80
TestWhenWithoutElseDoesNotLogWhenConditionFalse
Function · 0.80
TestLimitUsesFixedWindow
Function · 0.80
TestLimitDZeroIsInfiniteWindow
Function · 0.80
TestLimitClampsInvalidInputs
Function · 0.80
TestOnceIsWrapperAndSkipsFormattingWhenSuppressed
Function · 0.80
TestResetAllOnceDoesNotResetLimitState
Function · 0.80
TestModeNamespacesAndFirstWriterWinsParams
Function · 0.80
TestWithSharesRateLimiterState
Function · 0.80
TestOnceConcurrentLogsOnlyOnce
Function · 0.80
Calls
2
Lock
Method · 0.80
Unlock
Method · 0.80
Tested by
no test coverage detected