MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / TestLogger

Struct TestLogger

pkg/api/testutils/mocks.go:255–260  ·  view source on GitHub ↗

TestLogger is a simple test logger that captures log messages.

Source from the content-addressed store, hash-verified

253
254// TestLogger is a simple test logger that captures log messages.
255type TestLogger struct {
256 mu sync.Mutex
257 DebugMessages []string
258 InfoMessages []string
259 ErrorMessages []string
260}
261
262func (l *TestLogger) Debug(format string, args ...interface{}) {
263 l.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected