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