MCPcopy
hub / github.com/redis/go-redis / TestLogCollector

Struct TestLogCollector

maintnotifications/e2e/logcollector_test.go:71–77  ·  view source on GitHub ↗

TestLogCollector is a simple logger that captures logs for analysis It is thread safe and can be used to capture logs from multiple clients It uses type logs to provide additional functionality like filtering and analysis

Source from the content-addressed store, hash-verified

69// It uses type logs to provide additional functionality like filtering
70// and analysis
71type TestLogCollector struct {
72 l logs
73 doPrint bool
74 matchFuncs []*MatchFunc
75 matchFuncsMutex sync.Mutex
76 mu sync.Mutex
77}
78
79func (tlc *TestLogCollector) DontPrint() {
80 tlc.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected