Documentation ¶
Index ¶
- type ErrorHandlerMock
- 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
- type ErrorHandlerMock_ID_Call
- type ExecutionConditionMock
- type ExecutionConditionMock_CanExecuteOnError_Call
- func (_c *ExecutionConditionMock_CanExecuteOnError_Call) Return(_a0 bool, _a1 error) *ExecutionConditionMock_CanExecuteOnError_Call
- func (_c *ExecutionConditionMock_CanExecuteOnError_Call) Run(run func(ctx heimdall.Context, err error)) *ExecutionConditionMock_CanExecuteOnError_Call
- func (_c *ExecutionConditionMock_CanExecuteOnError_Call) RunAndReturn(run func(heimdall.Context, error) (bool, error)) *ExecutionConditionMock_CanExecuteOnError_Call
- type ExecutionConditionMock_CanExecuteOnSubject_Call
- func (_c *ExecutionConditionMock_CanExecuteOnSubject_Call) Return(_a0 bool, _a1 error) *ExecutionConditionMock_CanExecuteOnSubject_Call
- func (_c *ExecutionConditionMock_CanExecuteOnSubject_Call) Run(run func(ctx heimdall.Context, sub *subject.Subject)) *ExecutionConditionMock_CanExecuteOnSubject_Call
- func (_c *ExecutionConditionMock_CanExecuteOnSubject_Call) RunAndReturn(run func(heimdall.Context, *subject.Subject) (bool, error)) *ExecutionConditionMock_CanExecuteOnSubject_Call
- type ExecutionConditionMock_Expecter
- type PatternMatcherMock
- type PatternMatcherMock_Expecter
- type PatternMatcherMock_Match_Call
- type SubjectCreatorMock
- type SubjectCreatorMock_Execute_Call
- func (_c *SubjectCreatorMock_Execute_Call) Return(_a0 *subject.Subject, _a1 error) *SubjectCreatorMock_Execute_Call
- func (_c *SubjectCreatorMock_Execute_Call) Run(run func(_a0 heimdall.Context)) *SubjectCreatorMock_Execute_Call
- func (_c *SubjectCreatorMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (*subject.Subject, error)) *SubjectCreatorMock_Execute_Call
- type SubjectCreatorMock_Expecter
- type SubjectCreatorMock_IsFallbackOnErrorAllowed_Call
- func (_c *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) Return(_a0 bool) *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call
- func (_c *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) Run(run func()) *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call
- func (_c *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) RunAndReturn(run func() bool) *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call
- type SubjectHandlerMock
- type SubjectHandlerMock_ContinueOnError_Call
- func (_c *SubjectHandlerMock_ContinueOnError_Call) Return(_a0 bool) *SubjectHandlerMock_ContinueOnError_Call
- func (_c *SubjectHandlerMock_ContinueOnError_Call) Run(run func()) *SubjectHandlerMock_ContinueOnError_Call
- func (_c *SubjectHandlerMock_ContinueOnError_Call) RunAndReturn(run func() bool) *SubjectHandlerMock_ContinueOnError_Call
- type SubjectHandlerMock_Execute_Call
- func (_c *SubjectHandlerMock_Execute_Call) Return(_a0 error) *SubjectHandlerMock_Execute_Call
- func (_c *SubjectHandlerMock_Execute_Call) Run(run func(_a0 heimdall.Context, _a1 *subject.Subject)) *SubjectHandlerMock_Execute_Call
- func (_c *SubjectHandlerMock_Execute_Call) RunAndReturn(run func(heimdall.Context, *subject.Subject) error) *SubjectHandlerMock_Execute_Call
- type SubjectHandlerMock_Expecter
- type SubjectHandlerMock_ID_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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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:
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) 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
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 ExecutionConditionMock ¶
ExecutionConditionMock is an autogenerated mock type for the executionCondition type
func NewExecutionConditionMock ¶
func NewExecutionConditionMock(t interface { mock.TestingT Cleanup(func()) }) *ExecutionConditionMock
NewExecutionConditionMock creates a new instance of ExecutionConditionMock. 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 (*ExecutionConditionMock) CanExecuteOnError ¶
CanExecuteOnError provides a mock function with given fields: ctx, err
func (*ExecutionConditionMock) CanExecuteOnSubject ¶
func (_m *ExecutionConditionMock) CanExecuteOnSubject(ctx heimdall.Context, sub *subject.Subject) (bool, error)
CanExecuteOnSubject provides a mock function with given fields: ctx, sub
func (*ExecutionConditionMock) EXPECT ¶
func (_m *ExecutionConditionMock) EXPECT() *ExecutionConditionMock_Expecter
type ExecutionConditionMock_CanExecuteOnError_Call ¶
ExecutionConditionMock_CanExecuteOnError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanExecuteOnError'
func (*ExecutionConditionMock_CanExecuteOnError_Call) Return ¶
func (_c *ExecutionConditionMock_CanExecuteOnError_Call) Return(_a0 bool, _a1 error) *ExecutionConditionMock_CanExecuteOnError_Call
func (*ExecutionConditionMock_CanExecuteOnError_Call) Run ¶
func (_c *ExecutionConditionMock_CanExecuteOnError_Call) Run(run func(ctx heimdall.Context, err error)) *ExecutionConditionMock_CanExecuteOnError_Call
func (*ExecutionConditionMock_CanExecuteOnError_Call) RunAndReturn ¶
func (_c *ExecutionConditionMock_CanExecuteOnError_Call) RunAndReturn(run func(heimdall.Context, error) (bool, error)) *ExecutionConditionMock_CanExecuteOnError_Call
type ExecutionConditionMock_CanExecuteOnSubject_Call ¶
ExecutionConditionMock_CanExecuteOnSubject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanExecuteOnSubject'
func (*ExecutionConditionMock_CanExecuteOnSubject_Call) Return ¶
func (_c *ExecutionConditionMock_CanExecuteOnSubject_Call) Return(_a0 bool, _a1 error) *ExecutionConditionMock_CanExecuteOnSubject_Call
func (*ExecutionConditionMock_CanExecuteOnSubject_Call) Run ¶
func (_c *ExecutionConditionMock_CanExecuteOnSubject_Call) Run(run func(ctx heimdall.Context, sub *subject.Subject)) *ExecutionConditionMock_CanExecuteOnSubject_Call
func (*ExecutionConditionMock_CanExecuteOnSubject_Call) RunAndReturn ¶
func (_c *ExecutionConditionMock_CanExecuteOnSubject_Call) RunAndReturn(run func(heimdall.Context, *subject.Subject) (bool, error)) *ExecutionConditionMock_CanExecuteOnSubject_Call
type ExecutionConditionMock_Expecter ¶
type ExecutionConditionMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ExecutionConditionMock_Expecter) CanExecuteOnError ¶
func (_e *ExecutionConditionMock_Expecter) CanExecuteOnError(ctx interface{}, err interface{}) *ExecutionConditionMock_CanExecuteOnError_Call
CanExecuteOnError is a helper method to define mock.On call
- ctx heimdall.Context
- err error
func (*ExecutionConditionMock_Expecter) CanExecuteOnSubject ¶
func (_e *ExecutionConditionMock_Expecter) CanExecuteOnSubject(ctx interface{}, sub interface{}) *ExecutionConditionMock_CanExecuteOnSubject_Call
CanExecuteOnSubject is a helper method to define mock.On call
- ctx heimdall.Context
- sub *subject.Subject
type PatternMatcherMock ¶
PatternMatcherMock is an autogenerated mock type for the patternMatcher type
func NewPatternMatcherMock ¶
func NewPatternMatcherMock(t interface { mock.TestingT Cleanup(func()) }) *PatternMatcherMock
NewPatternMatcherMock creates a new instance of PatternMatcherMock. 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 (*PatternMatcherMock) EXPECT ¶
func (_m *PatternMatcherMock) EXPECT() *PatternMatcherMock_Expecter
func (*PatternMatcherMock) Match ¶
func (_m *PatternMatcherMock) Match(pattern string) bool
Match provides a mock function with given fields: pattern
type PatternMatcherMock_Expecter ¶
type PatternMatcherMock_Expecter struct {
// contains filtered or unexported fields
}
func (*PatternMatcherMock_Expecter) Match ¶
func (_e *PatternMatcherMock_Expecter) Match(pattern interface{}) *PatternMatcherMock_Match_Call
Match is a helper method to define mock.On call
- pattern string
type PatternMatcherMock_Match_Call ¶
PatternMatcherMock_Match_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Match'
func (*PatternMatcherMock_Match_Call) Return ¶
func (_c *PatternMatcherMock_Match_Call) Return(_a0 bool) *PatternMatcherMock_Match_Call
func (*PatternMatcherMock_Match_Call) Run ¶
func (_c *PatternMatcherMock_Match_Call) Run(run func(pattern string)) *PatternMatcherMock_Match_Call
func (*PatternMatcherMock_Match_Call) RunAndReturn ¶
func (_c *PatternMatcherMock_Match_Call) RunAndReturn(run func(string) bool) *PatternMatcherMock_Match_Call
type SubjectCreatorMock ¶
SubjectCreatorMock is an autogenerated mock type for the subjectCreator type
func NewSubjectCreatorMock ¶
func NewSubjectCreatorMock(t mockConstructorTestingTNewSubjectCreatorMock) *SubjectCreatorMock
NewSubjectCreatorMock creates a new instance of SubjectCreatorMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubjectCreatorMock) EXPECT ¶
func (_m *SubjectCreatorMock) EXPECT() *SubjectCreatorMock_Expecter
func (*SubjectCreatorMock) IsFallbackOnErrorAllowed ¶
func (_m *SubjectCreatorMock) IsFallbackOnErrorAllowed() bool
IsFallbackOnErrorAllowed provides a mock function with given fields:
type SubjectCreatorMock_Execute_Call ¶
SubjectCreatorMock_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*SubjectCreatorMock_Execute_Call) Return ¶
func (_c *SubjectCreatorMock_Execute_Call) Return(_a0 *subject.Subject, _a1 error) *SubjectCreatorMock_Execute_Call
func (*SubjectCreatorMock_Execute_Call) Run ¶
func (_c *SubjectCreatorMock_Execute_Call) Run(run func(_a0 heimdall.Context)) *SubjectCreatorMock_Execute_Call
func (*SubjectCreatorMock_Execute_Call) RunAndReturn ¶
func (_c *SubjectCreatorMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (*subject.Subject, error)) *SubjectCreatorMock_Execute_Call
type SubjectCreatorMock_Expecter ¶
type SubjectCreatorMock_Expecter struct {
// contains filtered or unexported fields
}
func (*SubjectCreatorMock_Expecter) Execute ¶
func (_e *SubjectCreatorMock_Expecter) Execute(_a0 interface{}) *SubjectCreatorMock_Execute_Call
Execute is a helper method to define mock.On call
- _a0 heimdall.Context
func (*SubjectCreatorMock_Expecter) IsFallbackOnErrorAllowed ¶
func (_e *SubjectCreatorMock_Expecter) IsFallbackOnErrorAllowed() *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call
IsFallbackOnErrorAllowed is a helper method to define mock.On call
type SubjectCreatorMock_IsFallbackOnErrorAllowed_Call ¶
SubjectCreatorMock_IsFallbackOnErrorAllowed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsFallbackOnErrorAllowed'
func (*SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) Return ¶
func (_c *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) Return(_a0 bool) *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call
func (*SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) Run ¶
func (_c *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) Run(run func()) *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call
func (*SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) RunAndReturn ¶
func (_c *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) RunAndReturn(run func() bool) *SubjectCreatorMock_IsFallbackOnErrorAllowed_Call
type SubjectHandlerMock ¶
SubjectHandlerMock is an autogenerated mock type for the subjectHandler type
func NewSubjectHandlerMock ¶
func NewSubjectHandlerMock(t mockConstructorTestingTNewSubjectHandlerMock) *SubjectHandlerMock
NewSubjectHandlerMock creates a new instance of SubjectHandlerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SubjectHandlerMock) ContinueOnError ¶
func (_m *SubjectHandlerMock) ContinueOnError() bool
ContinueOnError provides a mock function with given fields:
func (*SubjectHandlerMock) EXPECT ¶
func (_m *SubjectHandlerMock) EXPECT() *SubjectHandlerMock_Expecter
func (*SubjectHandlerMock) ID ¶
func (_m *SubjectHandlerMock) ID() string
ID provides a mock function with given fields:
type SubjectHandlerMock_ContinueOnError_Call ¶
SubjectHandlerMock_ContinueOnError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContinueOnError'
func (*SubjectHandlerMock_ContinueOnError_Call) Return ¶
func (_c *SubjectHandlerMock_ContinueOnError_Call) Return(_a0 bool) *SubjectHandlerMock_ContinueOnError_Call
func (*SubjectHandlerMock_ContinueOnError_Call) Run ¶
func (_c *SubjectHandlerMock_ContinueOnError_Call) Run(run func()) *SubjectHandlerMock_ContinueOnError_Call
func (*SubjectHandlerMock_ContinueOnError_Call) RunAndReturn ¶
func (_c *SubjectHandlerMock_ContinueOnError_Call) RunAndReturn(run func() bool) *SubjectHandlerMock_ContinueOnError_Call
type SubjectHandlerMock_Execute_Call ¶
SubjectHandlerMock_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*SubjectHandlerMock_Execute_Call) Return ¶
func (_c *SubjectHandlerMock_Execute_Call) Return(_a0 error) *SubjectHandlerMock_Execute_Call
func (*SubjectHandlerMock_Execute_Call) Run ¶
func (_c *SubjectHandlerMock_Execute_Call) Run(run func(_a0 heimdall.Context, _a1 *subject.Subject)) *SubjectHandlerMock_Execute_Call
func (*SubjectHandlerMock_Execute_Call) RunAndReturn ¶
func (_c *SubjectHandlerMock_Execute_Call) RunAndReturn(run func(heimdall.Context, *subject.Subject) error) *SubjectHandlerMock_Execute_Call
type SubjectHandlerMock_Expecter ¶
type SubjectHandlerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*SubjectHandlerMock_Expecter) ContinueOnError ¶
func (_e *SubjectHandlerMock_Expecter) ContinueOnError() *SubjectHandlerMock_ContinueOnError_Call
ContinueOnError is a helper method to define mock.On call
func (*SubjectHandlerMock_Expecter) Execute ¶
func (_e *SubjectHandlerMock_Expecter) Execute(_a0 interface{}, _a1 interface{}) *SubjectHandlerMock_Execute_Call
Execute is a helper method to define mock.On call
- _a0 heimdall.Context
- _a1 *subject.Subject
func (*SubjectHandlerMock_Expecter) ID ¶
func (_e *SubjectHandlerMock_Expecter) ID() *SubjectHandlerMock_ID_Call
ID is a helper method to define mock.On call
type SubjectHandlerMock_ID_Call ¶
SubjectHandlerMock_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*SubjectHandlerMock_ID_Call) Return ¶
func (_c *SubjectHandlerMock_ID_Call) Return(_a0 string) *SubjectHandlerMock_ID_Call
func (*SubjectHandlerMock_ID_Call) Run ¶
func (_c *SubjectHandlerMock_ID_Call) Run(run func()) *SubjectHandlerMock_ID_Call
func (*SubjectHandlerMock_ID_Call) RunAndReturn ¶
func (_c *SubjectHandlerMock_ID_Call) RunAndReturn(run func() string) *SubjectHandlerMock_ID_Call