Documentation ¶
Index ¶
- type ErrorHandlerMock
- func (_m *ErrorHandlerMock) CanExecute(ctx heimdall.Context, causeErr error) bool
- func (_m *ErrorHandlerMock) EXPECT() *ErrorHandlerMock_Expecter
- func (_m *ErrorHandlerMock) Execute(ctx heimdall.Context, causeErr error) error
- func (_m *ErrorHandlerMock) ID() string
- func (_m *ErrorHandlerMock) WithConfig(config map[string]interface{}) (errorhandlers.ErrorHandler, error)
- type ErrorHandlerMock_CanExecute_Call
- func (_c *ErrorHandlerMock_CanExecute_Call) Return(_a0 bool) *ErrorHandlerMock_CanExecute_Call
- func (_c *ErrorHandlerMock_CanExecute_Call) Run(run func(ctx heimdall.Context, causeErr error)) *ErrorHandlerMock_CanExecute_Call
- func (_c *ErrorHandlerMock_CanExecute_Call) RunAndReturn(run func(heimdall.Context, error) bool) *ErrorHandlerMock_CanExecute_Call
- type ErrorHandlerMock_Execute_Call
- func (_c *ErrorHandlerMock_Execute_Call) Return(_a0 error) *ErrorHandlerMock_Execute_Call
- func (_c *ErrorHandlerMock_Execute_Call) Run(run func(ctx heimdall.Context, causeErr error)) *ErrorHandlerMock_Execute_Call
- func (_c *ErrorHandlerMock_Execute_Call) RunAndReturn(run func(heimdall.Context, error) error) *ErrorHandlerMock_Execute_Call
- type ErrorHandlerMock_Expecter
- func (_e *ErrorHandlerMock_Expecter) CanExecute(ctx interface{}, causeErr interface{}) *ErrorHandlerMock_CanExecute_Call
- func (_e *ErrorHandlerMock_Expecter) Execute(ctx interface{}, causeErr interface{}) *ErrorHandlerMock_Execute_Call
- func (_e *ErrorHandlerMock_Expecter) ID() *ErrorHandlerMock_ID_Call
- func (_e *ErrorHandlerMock_Expecter) WithConfig(config interface{}) *ErrorHandlerMock_WithConfig_Call
- type ErrorHandlerMock_ID_Call
- 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) CanExecute ¶
func (_m *ErrorHandlerMock) CanExecute(ctx heimdall.Context, causeErr error) bool
CanExecute provides a mock function with given fields: ctx, causeErr
func (*ErrorHandlerMock) EXPECT ¶
func (_m *ErrorHandlerMock) EXPECT() *ErrorHandlerMock_Expecter
func (*ErrorHandlerMock) Execute ¶
func (_m *ErrorHandlerMock) Execute(ctx heimdall.Context, causeErr error) error
Execute provides a mock function with given fields: ctx, causeErr
func (*ErrorHandlerMock) ID ¶
func (_m *ErrorHandlerMock) ID() string
ID provides a mock function with given fields:
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_CanExecute_Call ¶
ErrorHandlerMock_CanExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanExecute'
func (*ErrorHandlerMock_CanExecute_Call) Return ¶
func (_c *ErrorHandlerMock_CanExecute_Call) Return(_a0 bool) *ErrorHandlerMock_CanExecute_Call
func (*ErrorHandlerMock_CanExecute_Call) Run ¶
func (_c *ErrorHandlerMock_CanExecute_Call) Run(run func(ctx heimdall.Context, causeErr error)) *ErrorHandlerMock_CanExecute_Call
func (*ErrorHandlerMock_CanExecute_Call) RunAndReturn ¶
func (_c *ErrorHandlerMock_CanExecute_Call) RunAndReturn(run func(heimdall.Context, error) bool) *ErrorHandlerMock_CanExecute_Call
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 error) *ErrorHandlerMock_Execute_Call
func (*ErrorHandlerMock_Execute_Call) Run ¶
func (_c *ErrorHandlerMock_Execute_Call) Run(run func(ctx heimdall.Context, causeErr error)) *ErrorHandlerMock_Execute_Call
func (*ErrorHandlerMock_Execute_Call) RunAndReturn ¶
func (_c *ErrorHandlerMock_Execute_Call) RunAndReturn(run func(heimdall.Context, error) error) *ErrorHandlerMock_Execute_Call
type ErrorHandlerMock_Expecter ¶
type ErrorHandlerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ErrorHandlerMock_Expecter) CanExecute ¶
func (_e *ErrorHandlerMock_Expecter) CanExecute(ctx interface{}, causeErr interface{}) *ErrorHandlerMock_CanExecute_Call
CanExecute is a helper method to define mock.On call
- ctx heimdall.Context
- causeErr error
func (*ErrorHandlerMock_Expecter) Execute ¶
func (_e *ErrorHandlerMock_Expecter) Execute(ctx interface{}, causeErr interface{}) *ErrorHandlerMock_Execute_Call
Execute is a helper method to define mock.On call
- ctx heimdall.Context
- causeErr error
func (*ErrorHandlerMock_Expecter) ID ¶
func (_e *ErrorHandlerMock_Expecter) ID() *ErrorHandlerMock_ID_Call
ID is a helper method to define mock.On call
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_ID_Call ¶
ErrorHandlerMock_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*ErrorHandlerMock_ID_Call) Return ¶
func (_c *ErrorHandlerMock_ID_Call) Return(_a0 string) *ErrorHandlerMock_ID_Call
func (*ErrorHandlerMock_ID_Call) Run ¶
func (_c *ErrorHandlerMock_ID_Call) Run(run func()) *ErrorHandlerMock_ID_Call
func (*ErrorHandlerMock_ID_Call) RunAndReturn ¶
func (_c *ErrorHandlerMock_ID_Call) RunAndReturn(run func() string) *ErrorHandlerMock_ID_Call
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