Documentation ¶
Index ¶
- type ErrorHandlerMock
- type ErrorHandlerMock_Execute_Call
- func (_c *ErrorHandlerMock_Execute_Call) Return(_a0 bool, _a1 error) *ErrorHandlerMock_Execute_Call
- func (_c *ErrorHandlerMock_Execute_Call) Run(run func(ctx heimdall.Context, err error)) *ErrorHandlerMock_Execute_Call
- func (_c *ErrorHandlerMock_Execute_Call) RunAndReturn(run func(heimdall.Context, error) (bool, error)) *ErrorHandlerMock_Execute_Call
- type ErrorHandlerMock_Expecter
- type ErrorHandlerMock_WithConfig_Call
- func (_c *ErrorHandlerMock_WithConfig_Call) Return(_a0 errorhandlers.ErrorHandler, _a1 error) *ErrorHandlerMock_WithConfig_Call
- func (_c *ErrorHandlerMock_WithConfig_Call) Run(run func(config map[string]interface{})) *ErrorHandlerMock_WithConfig_Call
- func (_c *ErrorHandlerMock_WithConfig_Call) RunAndReturn(run func(map[string]interface{}) (errorhandlers.ErrorHandler, error)) *ErrorHandlerMock_WithConfig_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandlerMock ¶
ErrorHandlerMock is an autogenerated mock type for the ErrorHandler type
func NewErrorHandlerMock ¶
func NewErrorHandlerMock(t mockConstructorTestingTNewErrorHandlerMock) *ErrorHandlerMock
NewErrorHandlerMock creates a new instance of ErrorHandlerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ErrorHandlerMock) EXPECT ¶
func (_m *ErrorHandlerMock) EXPECT() *ErrorHandlerMock_Expecter
func (*ErrorHandlerMock) WithConfig ¶
func (_m *ErrorHandlerMock) WithConfig(config map[string]interface{}) (errorhandlers.ErrorHandler, error)
WithConfig provides a mock function with given fields: config
type ErrorHandlerMock_Execute_Call ¶
ErrorHandlerMock_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*ErrorHandlerMock_Execute_Call) Return ¶
func (_c *ErrorHandlerMock_Execute_Call) Return(_a0 bool, _a1 error) *ErrorHandlerMock_Execute_Call
func (*ErrorHandlerMock_Execute_Call) Run ¶
func (_c *ErrorHandlerMock_Execute_Call) Run(run func(ctx heimdall.Context, err error)) *ErrorHandlerMock_Execute_Call
func (*ErrorHandlerMock_Execute_Call) RunAndReturn ¶
func (_c *ErrorHandlerMock_Execute_Call) RunAndReturn(run func(heimdall.Context, error) (bool, error)) *ErrorHandlerMock_Execute_Call
type ErrorHandlerMock_Expecter ¶
type ErrorHandlerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ErrorHandlerMock_Expecter) Execute ¶
func (_e *ErrorHandlerMock_Expecter) Execute(ctx interface{}, err interface{}) *ErrorHandlerMock_Execute_Call
Execute is a helper method to define mock.On call
- ctx heimdall.Context
- err error
func (*ErrorHandlerMock_Expecter) WithConfig ¶
func (_e *ErrorHandlerMock_Expecter) WithConfig(config interface{}) *ErrorHandlerMock_WithConfig_Call
WithConfig is a helper method to define mock.On call
- config map[string]interface{}
type ErrorHandlerMock_WithConfig_Call ¶
ErrorHandlerMock_WithConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithConfig'
func (*ErrorHandlerMock_WithConfig_Call) Return ¶
func (_c *ErrorHandlerMock_WithConfig_Call) Return(_a0 errorhandlers.ErrorHandler, _a1 error) *ErrorHandlerMock_WithConfig_Call
func (*ErrorHandlerMock_WithConfig_Call) Run ¶
func (_c *ErrorHandlerMock_WithConfig_Call) Run(run func(config map[string]interface{})) *ErrorHandlerMock_WithConfig_Call
func (*ErrorHandlerMock_WithConfig_Call) RunAndReturn ¶
func (_c *ErrorHandlerMock_WithConfig_Call) RunAndReturn(run func(map[string]interface{}) (errorhandlers.ErrorHandler, error)) *ErrorHandlerMock_WithConfig_Call