Documentation
¶
Index ¶
- type MockNotifier
- type MockNotifier_Errorf_Call
- type MockNotifier_Expecter
- func (_e *MockNotifier_Expecter) Errorf(format interface{}, args ...interface{}) *MockNotifier_Errorf_Call
- func (_e *MockNotifier_Expecter) Infof(format interface{}, args ...interface{}) *MockNotifier_Infof_Call
- func (_e *MockNotifier_Expecter) SetLogger(log interface{}) *MockNotifier_SetLogger_Call
- func (_e *MockNotifier_Expecter) ShowError(err interface{}) *MockNotifier_ShowError_Call
- type MockNotifier_Infof_Call
- type MockNotifier_SetLogger_Call
- type MockNotifier_ShowError_Call
- type Notifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNotifier ¶
MockNotifier is an autogenerated mock type for the Notifier type
func NewMockNotifier ¶
func NewMockNotifier(t interface {
mock.TestingT
Cleanup(func())
},
) *MockNotifier
NewMockNotifier creates a new instance of MockNotifier. 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 (*MockNotifier) EXPECT ¶
func (_m *MockNotifier) EXPECT() *MockNotifier_Expecter
func (*MockNotifier) Errorf ¶
func (_mock *MockNotifier) Errorf(format string, args ...any)
Errorf provides a mock function for the type MockNotifier
func (*MockNotifier) Infof ¶
func (_mock *MockNotifier) Infof(format string, args ...any)
Infof provides a mock function for the type MockNotifier
func (*MockNotifier) SetLogger ¶
func (_mock *MockNotifier) SetLogger(log logrus.FieldLogger)
SetLogger provides a mock function for the type MockNotifier
func (*MockNotifier) ShowError ¶ added in v1.3.0
func (_mock *MockNotifier) ShowError(err error)
ShowError provides a mock function for the type MockNotifier
type MockNotifier_Errorf_Call ¶
MockNotifier_Errorf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errorf'
func (*MockNotifier_Errorf_Call) Return ¶
func (_c *MockNotifier_Errorf_Call) Return() *MockNotifier_Errorf_Call
func (*MockNotifier_Errorf_Call) Run ¶
func (_c *MockNotifier_Errorf_Call) Run(run func(format string, args ...any)) *MockNotifier_Errorf_Call
func (*MockNotifier_Errorf_Call) RunAndReturn ¶
func (_c *MockNotifier_Errorf_Call) RunAndReturn(run func(format string, args ...any)) *MockNotifier_Errorf_Call
type MockNotifier_Expecter ¶
type MockNotifier_Expecter struct {
// contains filtered or unexported fields
}
func (*MockNotifier_Expecter) Errorf ¶
func (_e *MockNotifier_Expecter) Errorf(format interface{}, args ...interface{}) *MockNotifier_Errorf_Call
Errorf is a helper method to define mock.On call
- format string
- args ...any
func (*MockNotifier_Expecter) Infof ¶
func (_e *MockNotifier_Expecter) Infof(format interface{}, args ...interface{}) *MockNotifier_Infof_Call
Infof is a helper method to define mock.On call
- format string
- args ...any
func (*MockNotifier_Expecter) SetLogger ¶
func (_e *MockNotifier_Expecter) SetLogger(log interface{}) *MockNotifier_SetLogger_Call
SetLogger is a helper method to define mock.On call
- log logrus.FieldLogger
func (*MockNotifier_Expecter) ShowError ¶ added in v1.3.0
func (_e *MockNotifier_Expecter) ShowError(err interface{}) *MockNotifier_ShowError_Call
ShowError is a helper method to define mock.On call
- err error
type MockNotifier_Infof_Call ¶
MockNotifier_Infof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Infof'
func (*MockNotifier_Infof_Call) Return ¶
func (_c *MockNotifier_Infof_Call) Return() *MockNotifier_Infof_Call
func (*MockNotifier_Infof_Call) Run ¶
func (_c *MockNotifier_Infof_Call) Run(run func(format string, args ...any)) *MockNotifier_Infof_Call
func (*MockNotifier_Infof_Call) RunAndReturn ¶
func (_c *MockNotifier_Infof_Call) RunAndReturn(run func(format string, args ...any)) *MockNotifier_Infof_Call
type MockNotifier_SetLogger_Call ¶
MockNotifier_SetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLogger'
func (*MockNotifier_SetLogger_Call) Return ¶
func (_c *MockNotifier_SetLogger_Call) Return() *MockNotifier_SetLogger_Call
func (*MockNotifier_SetLogger_Call) Run ¶
func (_c *MockNotifier_SetLogger_Call) Run(run func(log logrus.FieldLogger)) *MockNotifier_SetLogger_Call
func (*MockNotifier_SetLogger_Call) RunAndReturn ¶
func (_c *MockNotifier_SetLogger_Call) RunAndReturn(run func(log logrus.FieldLogger)) *MockNotifier_SetLogger_Call
type MockNotifier_ShowError_Call ¶ added in v1.3.0
MockNotifier_ShowError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowError'
func (*MockNotifier_ShowError_Call) Return ¶ added in v1.3.0
func (_c *MockNotifier_ShowError_Call) Return() *MockNotifier_ShowError_Call
func (*MockNotifier_ShowError_Call) Run ¶ added in v1.3.0
func (_c *MockNotifier_ShowError_Call) Run(run func(err error)) *MockNotifier_ShowError_Call
func (*MockNotifier_ShowError_Call) RunAndReturn ¶ added in v1.3.0
func (_c *MockNotifier_ShowError_Call) RunAndReturn(run func(err error)) *MockNotifier_ShowError_Call