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