mocks

package
v0.14.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandlerMock

type ErrorHandlerMock struct {
	mock.Mock
}

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 (*ErrorHandlerMock) Execute

func (_m *ErrorHandlerMock) Execute(ctx heimdall.Context, causeErr error) error

Execute provides a mock function with given fields: ctx, causeErr

type ErrorHandlerMock_CanExecute_Call

type ErrorHandlerMock_CanExecute_Call struct {
	*mock.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 (*ErrorHandlerMock_CanExecute_Call) Run

func (*ErrorHandlerMock_CanExecute_Call) RunAndReturn

type ErrorHandlerMock_Execute_Call

type ErrorHandlerMock_Execute_Call struct {
	*mock.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 (*ErrorHandlerMock_Execute_Call) Run

func (*ErrorHandlerMock_Execute_Call) RunAndReturn

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

type ExecutionConditionMock

type ExecutionConditionMock struct {
	mock.Mock
}

ExecutionConditionMock is an autogenerated mock type for the executionCondition type

func NewExecutionConditionMock

func NewExecutionConditionMock(t mockConstructorTestingTNewExecutionConditionMock) *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.

func (*ExecutionConditionMock) CanExecute

func (_m *ExecutionConditionMock) CanExecute(ctx heimdall.Context, sub *subject.Subject) (bool, error)

CanExecute provides a mock function with given fields: ctx, sub

func (*ExecutionConditionMock) EXPECT

type ExecutionConditionMock_CanExecute_Call

type ExecutionConditionMock_CanExecute_Call struct {
	*mock.Call
}

ExecutionConditionMock_CanExecute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CanExecute'

func (*ExecutionConditionMock_CanExecute_Call) Return

func (*ExecutionConditionMock_CanExecute_Call) Run

func (*ExecutionConditionMock_CanExecute_Call) RunAndReturn

type ExecutionConditionMock_Expecter

type ExecutionConditionMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*ExecutionConditionMock_Expecter) CanExecute

func (_e *ExecutionConditionMock_Expecter) CanExecute(ctx interface{}, sub interface{}) *ExecutionConditionMock_CanExecute_Call

CanExecute is a helper method to define mock.On call

  • ctx heimdall.Context
  • sub *subject.Subject

type SubjectCreatorMock

type SubjectCreatorMock struct {
	mock.Mock
}

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 (*SubjectCreatorMock) Execute

func (_m *SubjectCreatorMock) Execute(_a0 heimdall.Context) (*subject.Subject, error)

Execute provides a mock function with given fields: _a0

func (*SubjectCreatorMock) IsFallbackOnErrorAllowed

func (_m *SubjectCreatorMock) IsFallbackOnErrorAllowed() bool

IsFallbackOnErrorAllowed provides a mock function with given fields:

type SubjectCreatorMock_Execute_Call

type SubjectCreatorMock_Execute_Call struct {
	*mock.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 (*SubjectCreatorMock_Execute_Call) Run

func (*SubjectCreatorMock_Execute_Call) RunAndReturn

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

IsFallbackOnErrorAllowed is a helper method to define mock.On call

type SubjectCreatorMock_IsFallbackOnErrorAllowed_Call

type SubjectCreatorMock_IsFallbackOnErrorAllowed_Call struct {
	*mock.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 (*SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) Run

func (*SubjectCreatorMock_IsFallbackOnErrorAllowed_Call) RunAndReturn

type SubjectHandlerMock

type SubjectHandlerMock struct {
	mock.Mock
}

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 (*SubjectHandlerMock) Execute

func (_m *SubjectHandlerMock) Execute(_a0 heimdall.Context, _a1 *subject.Subject) error

Execute provides a mock function with given fields: _a0, _a1

func (*SubjectHandlerMock) ID

func (_m *SubjectHandlerMock) ID() string

ID provides a mock function with given fields:

type SubjectHandlerMock_ContinueOnError_Call

type SubjectHandlerMock_ContinueOnError_Call struct {
	*mock.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 (*SubjectHandlerMock_ContinueOnError_Call) Run

func (*SubjectHandlerMock_ContinueOnError_Call) RunAndReturn

type SubjectHandlerMock_Execute_Call

type SubjectHandlerMock_Execute_Call struct {
	*mock.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 (*SubjectHandlerMock_Execute_Call) Run

func (*SubjectHandlerMock_Execute_Call) RunAndReturn

type SubjectHandlerMock_Expecter

type SubjectHandlerMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*SubjectHandlerMock_Expecter) ContinueOnError

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

ID is a helper method to define mock.On call

type SubjectHandlerMock_ID_Call

type SubjectHandlerMock_ID_Call struct {
	*mock.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 (*SubjectHandlerMock_ID_Call) Run

func (*SubjectHandlerMock_ID_Call) RunAndReturn

func (_c *SubjectHandlerMock_ID_Call) RunAndReturn(run func() string) *SubjectHandlerMock_ID_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL