MCPcopy
hub / github.com/grafana/dskit / TestBufferedConcurrency

Function TestBufferedConcurrency

log/buffered_test.go:86–93  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

84}
85
86func TestBufferedConcurrency(t *testing.T) {
87 t.Parallel()
88 bufLog := NewBufferedLogger(io.Discard, 32,
89 WithFlushPeriod(flushPeriod),
90 WithPrellocatedBuffer(bufferSize),
91 )
92 testConcurrency(t, log.NewLogfmtLogger(bufLog), 10000)
93}
94
95func TestOnFlushCallback(t *testing.T) {
96 var (

Callers

nothing calls this directly

Calls 4

NewBufferedLoggerFunction · 0.85
WithFlushPeriodFunction · 0.85
WithPrellocatedBufferFunction · 0.85
testConcurrencyFunction · 0.85

Tested by

no test coverage detected