logging

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logging is a generated GoMock package.

Index

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) Debug

func (m *MockLogger) Debug(msg string, fields ...any)

Debug mocks base method.

func (*MockLogger) EXPECT

func (m *MockLogger) EXPECT() *MockLoggerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLogger) Error

func (m *MockLogger) Error(msg string, fields ...any)

Error mocks base method.

func (*MockLogger) Fatal

func (m *MockLogger) Fatal(msg string, fields ...any)

Fatal mocks base method.

func (*MockLogger) Info

func (m *MockLogger) Info(msg string, fields ...any)

Info mocks base method.

func (*MockLogger) Warn

func (m *MockLogger) Warn(msg string, fields ...any)

Warn mocks base method.

func (*MockLogger) With

func (m *MockLogger) With(fields ...any) logging.Logger

With mocks base method.

type MockLoggerDebugCall

type MockLoggerDebugCall struct {
	*gomock.Call
}

MockLoggerDebugCall wrap *gomock.Call

func (*MockLoggerDebugCall) Do

func (c *MockLoggerDebugCall) Do(f func(string, ...any)) *MockLoggerDebugCall

Do rewrite *gomock.Call.Do

func (*MockLoggerDebugCall) DoAndReturn

func (c *MockLoggerDebugCall) DoAndReturn(f func(string, ...any)) *MockLoggerDebugCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLoggerDebugCall) Return

Return rewrite *gomock.Call.Return

type MockLoggerErrorCall

type MockLoggerErrorCall struct {
	*gomock.Call
}

MockLoggerErrorCall wrap *gomock.Call

func (*MockLoggerErrorCall) Do

func (c *MockLoggerErrorCall) Do(f func(string, ...any)) *MockLoggerErrorCall

Do rewrite *gomock.Call.Do

func (*MockLoggerErrorCall) DoAndReturn

func (c *MockLoggerErrorCall) DoAndReturn(f func(string, ...any)) *MockLoggerErrorCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLoggerErrorCall) Return

Return rewrite *gomock.Call.Return

type MockLoggerFatalCall

type MockLoggerFatalCall struct {
	*gomock.Call
}

MockLoggerFatalCall wrap *gomock.Call

func (*MockLoggerFatalCall) Do

func (c *MockLoggerFatalCall) Do(f func(string, ...any)) *MockLoggerFatalCall

Do rewrite *gomock.Call.Do

func (*MockLoggerFatalCall) DoAndReturn

func (c *MockLoggerFatalCall) DoAndReturn(f func(string, ...any)) *MockLoggerFatalCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLoggerFatalCall) Return

Return rewrite *gomock.Call.Return

type MockLoggerInfoCall

type MockLoggerInfoCall struct {
	*gomock.Call
}

MockLoggerInfoCall wrap *gomock.Call

func (*MockLoggerInfoCall) Do

func (c *MockLoggerInfoCall) Do(f func(string, ...any)) *MockLoggerInfoCall

Do rewrite *gomock.Call.Do

func (*MockLoggerInfoCall) DoAndReturn

func (c *MockLoggerInfoCall) DoAndReturn(f func(string, ...any)) *MockLoggerInfoCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLoggerInfoCall) Return

Return rewrite *gomock.Call.Return

type MockLoggerMockRecorder

type MockLoggerMockRecorder struct {
	// contains filtered or unexported fields
}

MockLoggerMockRecorder is the mock recorder for MockLogger.

func (*MockLoggerMockRecorder) Debug

func (mr *MockLoggerMockRecorder) Debug(msg any, fields ...any) *MockLoggerDebugCall

Debug indicates an expected call of Debug.

func (*MockLoggerMockRecorder) Error

func (mr *MockLoggerMockRecorder) Error(msg any, fields ...any) *MockLoggerErrorCall

Error indicates an expected call of Error.

func (*MockLoggerMockRecorder) Fatal

func (mr *MockLoggerMockRecorder) Fatal(msg any, fields ...any) *MockLoggerFatalCall

Fatal indicates an expected call of Fatal.

func (*MockLoggerMockRecorder) Info

func (mr *MockLoggerMockRecorder) Info(msg any, fields ...any) *MockLoggerInfoCall

Info indicates an expected call of Info.

func (*MockLoggerMockRecorder) Warn

func (mr *MockLoggerMockRecorder) Warn(msg any, fields ...any) *MockLoggerWarnCall

Warn indicates an expected call of Warn.

func (*MockLoggerMockRecorder) With

func (mr *MockLoggerMockRecorder) With(fields ...any) *MockLoggerWithCall

With indicates an expected call of With.

type MockLoggerWarnCall

type MockLoggerWarnCall struct {
	*gomock.Call
}

MockLoggerWarnCall wrap *gomock.Call

func (*MockLoggerWarnCall) Do

func (c *MockLoggerWarnCall) Do(f func(string, ...any)) *MockLoggerWarnCall

Do rewrite *gomock.Call.Do

func (*MockLoggerWarnCall) DoAndReturn

func (c *MockLoggerWarnCall) DoAndReturn(f func(string, ...any)) *MockLoggerWarnCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLoggerWarnCall) Return

Return rewrite *gomock.Call.Return

type MockLoggerWithCall

type MockLoggerWithCall struct {
	*gomock.Call
}

MockLoggerWithCall wrap *gomock.Call

func (*MockLoggerWithCall) Do

Do rewrite *gomock.Call.Do

func (*MockLoggerWithCall) DoAndReturn

func (c *MockLoggerWithCall) DoAndReturn(f func(...any) logging.Logger) *MockLoggerWithCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockLoggerWithCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL