Documentation
¶
Overview ¶
Package mocks provides shared mock implementations for testing database components. This package centralizes common mocks used across all database package tests.
Index ¶
- type LogEvent
- func (e *LogEvent) Bytes(_ string, _ []byte) logger.LogEvent
- func (e *LogEvent) Dur(_ string, _ time.Duration) logger.LogEvent
- func (e *LogEvent) Err(_ error) logger.LogEvent
- func (e *LogEvent) Int(_ string, _ int) logger.LogEvent
- func (e *LogEvent) Int64(_ string, _ int64) logger.LogEvent
- func (e *LogEvent) Interface(_ string, _ any) logger.LogEvent
- func (e *LogEvent) Msg(_ string)
- func (e *LogEvent) Msgf(_ string, _ ...any)
- func (e *LogEvent) Str(_, _ string) logger.LogEvent
- func (e *LogEvent) Uint64(_ string, _ uint64) logger.LogEvent
- type Logger
- func (l *Logger) Debug() logger.LogEvent
- func (l *Logger) Error() logger.LogEvent
- func (l *Logger) Fatal() logger.LogEvent
- func (l *Logger) Info() logger.LogEvent
- func (l *Logger) Warn() logger.LogEvent
- func (l *Logger) WithContext(_ any) logger.Logger
- func (l *Logger) WithFields(_ map[string]any) logger.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogEvent ¶
type LogEvent struct{}
LogEvent implements logger.LogEvent interface for testing. All methods are no-op implementations that satisfy the interface without producing any output.
func (*LogEvent) Interface ¶
Interface adds an interface{} field to the log event (no-op for testing)
type Logger ¶
type Logger struct{}
Logger implements logger.Logger interface for testing. It provides a no-op implementation that satisfies the interface without producing any actual logging output.
func (*Logger) WithContext ¶
WithContext returns the same logger instance (no-op for testing)
Click to show internal directories.
Click to hide internal directories.