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

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

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

func (*ErrorHandlerMock_Expecter) ID

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

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

func (*ErrorHandlerMock_ID_Call) RunAndReturn

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

type ErrorHandlerMock_WithConfig_Call

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

func (_c *ErrorHandlerMock_WithConfig_Call) Run(run func(config map[string]interface{})) *ErrorHandlerMock_WithConfig_Call

func (*ErrorHandlerMock_WithConfig_Call) RunAndReturn

Jump to

Keyboard shortcuts

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