mocks

package
v0.8.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 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) EXPECT

func (*ErrorHandlerMock) Execute

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

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

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_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) Execute

func (_e *ErrorHandlerMock_Expecter) Execute(ctx interface{}, err interface{}) *ErrorHandlerMock_Execute_Call

Execute is a helper method to define mock.On call

  • ctx heimdall.Context
  • err error

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_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