loggersmocks

package
v0.0.0-...-760d8ea Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConsole

type MockConsole struct {
	mock.Mock
}

MockConsole is an autogenerated mock type for the Console type

func NewMockConsole

func NewMockConsole(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConsole

NewMockConsole creates a new instance of MockConsole. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockConsole) EXPECT

func (_m *MockConsole) EXPECT() *MockConsole_Expecter

func (*MockConsole) Log

func (_m *MockConsole) Log(level loggers.LogLevel, msg string)

Log provides a mock function with given fields: level, msg

type MockConsole_Expecter

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

func (*MockConsole_Expecter) Log

func (_e *MockConsole_Expecter) Log(level interface{}, msg interface{}) *MockConsole_Log_Call

Log is a helper method to define mock.On call

  • level loggers.LogLevel
  • msg string

type MockConsole_Log_Call

type MockConsole_Log_Call struct {
	*mock.Call
}

MockConsole_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'

func (*MockConsole_Log_Call) Return

func (*MockConsole_Log_Call) Run

func (_c *MockConsole_Log_Call) Run(run func(level loggers.LogLevel, msg string)) *MockConsole_Log_Call

func (*MockConsole_Log_Call) RunAndReturn

func (_c *MockConsole_Log_Call) RunAndReturn(run func(loggers.LogLevel, string)) *MockConsole_Log_Call

type MockGRPC

type MockGRPC struct {
	mock.Mock
}

MockGRPC is an autogenerated mock type for the GRPC type

func NewMockGRPC

func NewMockGRPC(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGRPC

NewMockGRPC creates a new instance of MockGRPC. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockGRPC) EXPECT

func (_m *MockGRPC) EXPECT() *MockGRPC_Expecter

func (*MockGRPC) Report

func (_m *MockGRPC) Report(service string, err error)

Report provides a mock function with given fields: service, err

type MockGRPCCallback

type MockGRPCCallback[In interface{}, Out interface{}] struct {
	mock.Mock
}

MockGRPCCallback is an autogenerated mock type for the GRPCCallback type

func NewMockGRPCCallback

func NewMockGRPCCallback[In interface{}, Out interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGRPCCallback[In, Out]

NewMockGRPCCallback creates a new instance of MockGRPCCallback. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockGRPCCallback[In, Out]) EXPECT

func (_m *MockGRPCCallback[In, Out]) EXPECT() *MockGRPCCallback_Expecter[In, Out]

func (*MockGRPCCallback[In, Out]) Execute

func (_m *MockGRPCCallback[In, Out]) Execute(ctx context.Context, in In) (Out, error)

Execute provides a mock function with given fields: ctx, in

type MockGRPCCallback_Execute_Call

type MockGRPCCallback_Execute_Call[In interface{}, Out interface{}] struct {
	*mock.Call
}

MockGRPCCallback_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*MockGRPCCallback_Execute_Call[In, Out]) Return

func (_c *MockGRPCCallback_Execute_Call[In, Out]) Return(_a0 Out, _a1 error) *MockGRPCCallback_Execute_Call[In, Out]

func (*MockGRPCCallback_Execute_Call[In, Out]) Run

func (_c *MockGRPCCallback_Execute_Call[In, Out]) Run(run func(ctx context.Context, in In)) *MockGRPCCallback_Execute_Call[In, Out]

func (*MockGRPCCallback_Execute_Call[In, Out]) RunAndReturn

func (_c *MockGRPCCallback_Execute_Call[In, Out]) RunAndReturn(run func(context.Context, In) (Out, error)) *MockGRPCCallback_Execute_Call[In, Out]

type MockGRPCCallback_Expecter

type MockGRPCCallback_Expecter[In interface{}, Out interface{}] struct {
	// contains filtered or unexported fields
}

func (*MockGRPCCallback_Expecter[In, Out]) Execute

func (_e *MockGRPCCallback_Expecter[In, Out]) Execute(ctx interface{}, in interface{}) *MockGRPCCallback_Execute_Call[In, Out]

Execute is a helper method to define mock.On call

  • ctx context.Context
  • in In

type MockGRPC_Expecter

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

func (*MockGRPC_Expecter) Report

func (_e *MockGRPC_Expecter) Report(service interface{}, err interface{}) *MockGRPC_Report_Call

Report is a helper method to define mock.On call

  • service string
  • err error

type MockGRPC_Report_Call

type MockGRPC_Report_Call struct {
	*mock.Call
}

MockGRPC_Report_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Report'

func (*MockGRPC_Report_Call) Return

func (*MockGRPC_Report_Call) Run

func (_c *MockGRPC_Report_Call) Run(run func(service string, err error)) *MockGRPC_Report_Call

func (*MockGRPC_Report_Call) RunAndReturn

func (_c *MockGRPC_Report_Call) RunAndReturn(run func(string, error)) *MockGRPC_Report_Call

type MockGin

type MockGin struct {
	mock.Mock
}

MockGin is an autogenerated mock type for the Gin type

func NewMockGin

func NewMockGin(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGin

NewMockGin creates a new instance of MockGin. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockGin) EXPECT

func (_m *MockGin) EXPECT() *MockGin_Expecter

func (*MockGin) Middleware

func (_m *MockGin) Middleware() gin.HandlerFunc

Middleware provides a mock function with given fields:

type MockGin_Expecter

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

func (*MockGin_Expecter) Middleware

func (_e *MockGin_Expecter) Middleware() *MockGin_Middleware_Call

Middleware is a helper method to define mock.On call

type MockGin_Middleware_Call

type MockGin_Middleware_Call struct {
	*mock.Call
}

MockGin_Middleware_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Middleware'

func (*MockGin_Middleware_Call) Return

func (*MockGin_Middleware_Call) Run

func (_c *MockGin_Middleware_Call) Run(run func()) *MockGin_Middleware_Call

func (*MockGin_Middleware_Call) RunAndReturn

func (_c *MockGin_Middleware_Call) RunAndReturn(run func() gin.HandlerFunc) *MockGin_Middleware_Call

type MockJSON

type MockJSON struct {
	mock.Mock
}

MockJSON is an autogenerated mock type for the JSON type

func NewMockJSON

func NewMockJSON(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockJSON

NewMockJSON creates a new instance of MockJSON. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockJSON) EXPECT

func (_m *MockJSON) EXPECT() *MockJSON_Expecter

func (*MockJSON) Log

func (_m *MockJSON) Log(level loggers.LogLevel, data interface{})

Log provides a mock function with given fields: level, data

type MockJSON_Expecter

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

func (*MockJSON_Expecter) Log

func (_e *MockJSON_Expecter) Log(level interface{}, data interface{}) *MockJSON_Log_Call

Log is a helper method to define mock.On call

  • level loggers.LogLevel
  • data interface{}

type MockJSON_Log_Call

type MockJSON_Log_Call struct {
	*mock.Call
}

MockJSON_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'

func (*MockJSON_Log_Call) Return

func (_c *MockJSON_Log_Call) Return() *MockJSON_Log_Call

func (*MockJSON_Log_Call) Run

func (_c *MockJSON_Log_Call) Run(run func(level loggers.LogLevel, data interface{})) *MockJSON_Log_Call

func (*MockJSON_Log_Call) RunAndReturn

func (_c *MockJSON_Log_Call) RunAndReturn(run func(loggers.LogLevel, interface{})) *MockJSON_Log_Call

type MockZerologMessage

type MockZerologMessage struct {
	mock.Mock
}

MockZerologMessage is an autogenerated mock type for the ZerologMessage type

func NewMockZerologMessage

func NewMockZerologMessage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockZerologMessage

NewMockZerologMessage creates a new instance of MockZerologMessage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockZerologMessage) EXPECT

func (*MockZerologMessage) ZeroLog

func (_m *MockZerologMessage) ZeroLog(e *zerolog.Event)

ZeroLog provides a mock function with given fields: e

type MockZerologMessage_Expecter

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

func (*MockZerologMessage_Expecter) ZeroLog

ZeroLog is a helper method to define mock.On call

  • e *zerolog.Event

type MockZerologMessage_ZeroLog_Call

type MockZerologMessage_ZeroLog_Call struct {
	*mock.Call
}

MockZerologMessage_ZeroLog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ZeroLog'

func (*MockZerologMessage_ZeroLog_Call) Return

func (*MockZerologMessage_ZeroLog_Call) Run

func (*MockZerologMessage_ZeroLog_Call) RunAndReturn

Jump to

Keyboard shortcuts

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