Documentation ¶
Overview ¶
Package mock_mrlog is a generated GoMock package.
Index ¶
- type MockLogger
- func (m *MockLogger) Debug() mrlog.LoggerEvent
- func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
- func (m *MockLogger) Error() mrlog.LoggerEvent
- func (m *MockLogger) Fatal() mrlog.LoggerEvent
- func (m *MockLogger) Info() mrlog.LoggerEvent
- func (m *MockLogger) Level() mrlog.Level
- func (m *MockLogger) Panic() mrlog.LoggerEvent
- func (m *MockLogger) Printf(format string, args ...any)
- func (m *MockLogger) Trace() mrlog.LoggerEvent
- func (m *MockLogger) Warn() mrlog.LoggerEvent
- func (m *MockLogger) With() mrlog.LoggerContext
- func (m *MockLogger) WithContext(ctx context.Context) context.Context
- type MockLoggerContext
- func (m *MockLoggerContext) Any(key string, value any) mrlog.LoggerContext
- func (m *MockLoggerContext) Bytes(key string, value []byte) mrlog.LoggerContext
- func (m *MockLoggerContext) EXPECT() *MockLoggerContextMockRecorder
- func (m *MockLoggerContext) Int(key string, value int) mrlog.LoggerContext
- func (m *MockLoggerContext) Logger() mrlog.Logger
- func (m *MockLoggerContext) Str(key, value string) mrlog.LoggerContext
- type MockLoggerContextMockRecorder
- func (mr *MockLoggerContextMockRecorder) Any(key, value interface{}) *gomock.Call
- func (mr *MockLoggerContextMockRecorder) Bytes(key, value interface{}) *gomock.Call
- func (mr *MockLoggerContextMockRecorder) Int(key, value interface{}) *gomock.Call
- func (mr *MockLoggerContextMockRecorder) Logger() *gomock.Call
- func (mr *MockLoggerContextMockRecorder) Str(key, value interface{}) *gomock.Call
- type MockLoggerEvent
- func (m *MockLoggerEvent) Any(key string, value any) mrlog.LoggerEvent
- func (m *MockLoggerEvent) Bytes(key string, value []byte) mrlog.LoggerEvent
- func (m *MockLoggerEvent) EXPECT() *MockLoggerEventMockRecorder
- func (m *MockLoggerEvent) Err(err error) mrlog.LoggerEvent
- func (m *MockLoggerEvent) Int(key string, value int) mrlog.LoggerEvent
- func (m *MockLoggerEvent) Msg(message string)
- func (m *MockLoggerEvent) MsgFunc(createMsg func() string)
- func (m *MockLoggerEvent) Msgf(format string, args ...any)
- func (m *MockLoggerEvent) Send()
- func (m *MockLoggerEvent) Str(key, value string) mrlog.LoggerEvent
- type MockLoggerEventMockRecorder
- func (mr *MockLoggerEventMockRecorder) Any(key, value interface{}) *gomock.Call
- func (mr *MockLoggerEventMockRecorder) Bytes(key, value interface{}) *gomock.Call
- func (mr *MockLoggerEventMockRecorder) Err(err interface{}) *gomock.Call
- func (mr *MockLoggerEventMockRecorder) Int(key, value interface{}) *gomock.Call
- func (mr *MockLoggerEventMockRecorder) Msg(message interface{}) *gomock.Call
- func (mr *MockLoggerEventMockRecorder) MsgFunc(createMsg interface{}) *gomock.Call
- func (mr *MockLoggerEventMockRecorder) Msgf(format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerEventMockRecorder) Send() *gomock.Call
- func (mr *MockLoggerEventMockRecorder) Str(key, value interface{}) *gomock.Call
- type MockLoggerMockRecorder
- func (mr *MockLoggerMockRecorder) Debug() *gomock.Call
- func (mr *MockLoggerMockRecorder) Error() *gomock.Call
- func (mr *MockLoggerMockRecorder) Fatal() *gomock.Call
- func (mr *MockLoggerMockRecorder) Info() *gomock.Call
- func (mr *MockLoggerMockRecorder) Level() *gomock.Call
- func (mr *MockLoggerMockRecorder) Panic() *gomock.Call
- func (mr *MockLoggerMockRecorder) Printf(format interface{}, args ...interface{}) *gomock.Call
- func (mr *MockLoggerMockRecorder) Trace() *gomock.Call
- func (mr *MockLoggerMockRecorder) Warn() *gomock.Call
- func (mr *MockLoggerMockRecorder) With() *gomock.Call
- func (mr *MockLoggerMockRecorder) WithContext(ctx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Printf ¶
func (m *MockLogger) Printf(format string, args ...any)
Printf mocks base method.
func (*MockLogger) WithContext ¶
func (m *MockLogger) WithContext(ctx context.Context) context.Context
WithContext mocks base method.
type MockLoggerContext ¶
type MockLoggerContext struct {
// contains filtered or unexported fields
}
MockLoggerContext is a mock of LoggerContext interface.
func NewMockLoggerContext ¶
func NewMockLoggerContext(ctrl *gomock.Controller) *MockLoggerContext
NewMockLoggerContext creates a new mock instance.
func (*MockLoggerContext) Any ¶
func (m *MockLoggerContext) Any(key string, value any) mrlog.LoggerContext
Any mocks base method.
func (*MockLoggerContext) Bytes ¶
func (m *MockLoggerContext) Bytes(key string, value []byte) mrlog.LoggerContext
Bytes mocks base method.
func (*MockLoggerContext) EXPECT ¶
func (m *MockLoggerContext) EXPECT() *MockLoggerContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLoggerContext) Int ¶
func (m *MockLoggerContext) Int(key string, value int) mrlog.LoggerContext
Int mocks base method.
func (*MockLoggerContext) Logger ¶
func (m *MockLoggerContext) Logger() mrlog.Logger
Logger mocks base method.
func (*MockLoggerContext) Str ¶
func (m *MockLoggerContext) Str(key, value string) mrlog.LoggerContext
Str mocks base method.
type MockLoggerContextMockRecorder ¶
type MockLoggerContextMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerContextMockRecorder is the mock recorder for MockLoggerContext.
func (*MockLoggerContextMockRecorder) Any ¶
func (mr *MockLoggerContextMockRecorder) Any(key, value interface{}) *gomock.Call
Any indicates an expected call of Any.
func (*MockLoggerContextMockRecorder) Bytes ¶
func (mr *MockLoggerContextMockRecorder) Bytes(key, value interface{}) *gomock.Call
Bytes indicates an expected call of Bytes.
func (*MockLoggerContextMockRecorder) Int ¶
func (mr *MockLoggerContextMockRecorder) Int(key, value interface{}) *gomock.Call
Int indicates an expected call of Int.
func (*MockLoggerContextMockRecorder) Logger ¶
func (mr *MockLoggerContextMockRecorder) Logger() *gomock.Call
Logger indicates an expected call of Logger.
func (*MockLoggerContextMockRecorder) Str ¶
func (mr *MockLoggerContextMockRecorder) Str(key, value interface{}) *gomock.Call
Str indicates an expected call of Str.
type MockLoggerEvent ¶
type MockLoggerEvent struct {
// contains filtered or unexported fields
}
MockLoggerEvent is a mock of LoggerEvent interface.
func NewMockLoggerEvent ¶
func NewMockLoggerEvent(ctrl *gomock.Controller) *MockLoggerEvent
NewMockLoggerEvent creates a new mock instance.
func (*MockLoggerEvent) Any ¶
func (m *MockLoggerEvent) Any(key string, value any) mrlog.LoggerEvent
Any mocks base method.
func (*MockLoggerEvent) Bytes ¶
func (m *MockLoggerEvent) Bytes(key string, value []byte) mrlog.LoggerEvent
Bytes mocks base method.
func (*MockLoggerEvent) EXPECT ¶
func (m *MockLoggerEvent) EXPECT() *MockLoggerEventMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLoggerEvent) Err ¶
func (m *MockLoggerEvent) Err(err error) mrlog.LoggerEvent
Err mocks base method.
func (*MockLoggerEvent) Int ¶
func (m *MockLoggerEvent) Int(key string, value int) mrlog.LoggerEvent
Int mocks base method.
func (*MockLoggerEvent) MsgFunc ¶
func (m *MockLoggerEvent) MsgFunc(createMsg func() string)
MsgFunc mocks base method.
func (*MockLoggerEvent) Msgf ¶
func (m *MockLoggerEvent) Msgf(format string, args ...any)
Msgf mocks base method.
func (*MockLoggerEvent) Str ¶
func (m *MockLoggerEvent) Str(key, value string) mrlog.LoggerEvent
Str mocks base method.
type MockLoggerEventMockRecorder ¶
type MockLoggerEventMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerEventMockRecorder is the mock recorder for MockLoggerEvent.
func (*MockLoggerEventMockRecorder) Any ¶
func (mr *MockLoggerEventMockRecorder) Any(key, value interface{}) *gomock.Call
Any indicates an expected call of Any.
func (*MockLoggerEventMockRecorder) Bytes ¶
func (mr *MockLoggerEventMockRecorder) Bytes(key, value interface{}) *gomock.Call
Bytes indicates an expected call of Bytes.
func (*MockLoggerEventMockRecorder) Err ¶
func (mr *MockLoggerEventMockRecorder) Err(err interface{}) *gomock.Call
Err indicates an expected call of Err.
func (*MockLoggerEventMockRecorder) Int ¶
func (mr *MockLoggerEventMockRecorder) Int(key, value interface{}) *gomock.Call
Int indicates an expected call of Int.
func (*MockLoggerEventMockRecorder) Msg ¶
func (mr *MockLoggerEventMockRecorder) Msg(message interface{}) *gomock.Call
Msg indicates an expected call of Msg.
func (*MockLoggerEventMockRecorder) MsgFunc ¶
func (mr *MockLoggerEventMockRecorder) MsgFunc(createMsg interface{}) *gomock.Call
MsgFunc indicates an expected call of MsgFunc.
func (*MockLoggerEventMockRecorder) Msgf ¶
func (mr *MockLoggerEventMockRecorder) Msgf(format interface{}, args ...interface{}) *gomock.Call
Msgf indicates an expected call of Msgf.
func (*MockLoggerEventMockRecorder) Send ¶
func (mr *MockLoggerEventMockRecorder) Send() *gomock.Call
Send indicates an expected call of Send.
func (*MockLoggerEventMockRecorder) Str ¶
func (mr *MockLoggerEventMockRecorder) Str(key, value interface{}) *gomock.Call
Str indicates an expected call of Str.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Debug ¶
func (mr *MockLoggerMockRecorder) Debug() *gomock.Call
Debug indicates an expected call of Debug.
func (*MockLoggerMockRecorder) Error ¶
func (mr *MockLoggerMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.
func (*MockLoggerMockRecorder) Fatal ¶
func (mr *MockLoggerMockRecorder) Fatal() *gomock.Call
Fatal indicates an expected call of Fatal.
func (*MockLoggerMockRecorder) Info ¶
func (mr *MockLoggerMockRecorder) Info() *gomock.Call
Info indicates an expected call of Info.
func (*MockLoggerMockRecorder) Level ¶
func (mr *MockLoggerMockRecorder) Level() *gomock.Call
Level indicates an expected call of Level.
func (*MockLoggerMockRecorder) Panic ¶
func (mr *MockLoggerMockRecorder) Panic() *gomock.Call
Panic indicates an expected call of Panic.
func (*MockLoggerMockRecorder) Printf ¶
func (mr *MockLoggerMockRecorder) Printf(format interface{}, args ...interface{}) *gomock.Call
Printf indicates an expected call of Printf.
func (*MockLoggerMockRecorder) Trace ¶
func (mr *MockLoggerMockRecorder) Trace() *gomock.Call
Trace indicates an expected call of Trace.
func (*MockLoggerMockRecorder) Warn ¶
func (mr *MockLoggerMockRecorder) Warn() *gomock.Call
Warn indicates an expected call of Warn.
func (*MockLoggerMockRecorder) With ¶
func (mr *MockLoggerMockRecorder) With() *gomock.Call
With indicates an expected call of With.
func (*MockLoggerMockRecorder) WithContext ¶
func (mr *MockLoggerMockRecorder) WithContext(ctx interface{}) *gomock.Call
WithContext indicates an expected call of WithContext.