MCPcopy
hub / github.com/netdata/netdata / TestRateLimitNilLoggerDoesNotPanic

Function TestRateLimitNilLoggerDoesNotPanic

src/go/logger/ratelimit_test.go:172–181  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

170}
171
172func TestRateLimitNilLoggerDoesNotPanic(t *testing.T) {
173 setTestLevel(t, slog.LevelDebug)
174
175 var l *Logger
176 assert.NotPanics(t, func() {
177 l.Once("k").Infof("x=%d", 1)
178 l.Limit("k", 2, time.Second).Warning("y")
179 l.ResetAllOnce()
180 })
181}

Callers

nothing calls this directly

Calls 6

OnceMethod · 0.95
LimitMethod · 0.95
ResetAllOnceMethod · 0.95
setTestLevelFunction · 0.85
InfofMethod · 0.65
WarningMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…