mocks

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinalizerMock

type FinalizerMock struct {
	mock.Mock
}

FinalizerMock is an autogenerated mock type for the Finalizer type

func NewFinalizerMock

func NewFinalizerMock(t mockConstructorTestingTNewFinalizerMock) *FinalizerMock

NewFinalizerMock creates a new instance of FinalizerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FinalizerMock) ContinueOnError

func (_m *FinalizerMock) ContinueOnError() bool

ContinueOnError provides a mock function with given fields:

func (*FinalizerMock) EXPECT

func (_m *FinalizerMock) EXPECT() *FinalizerMock_Expecter

func (*FinalizerMock) Execute

func (_m *FinalizerMock) Execute(ctx heimdall.Context, sub *subject.Subject) error

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

func (*FinalizerMock) ID

func (_m *FinalizerMock) ID() string

ID provides a mock function with given fields:

func (*FinalizerMock) WithConfig

func (_m *FinalizerMock) WithConfig(config map[string]interface{}) (finalizers.Finalizer, error)

WithConfig provides a mock function with given fields: config

type FinalizerMock_ContinueOnError_Call

type FinalizerMock_ContinueOnError_Call struct {
	*mock.Call
}

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

func (*FinalizerMock_ContinueOnError_Call) Return

func (*FinalizerMock_ContinueOnError_Call) Run

func (*FinalizerMock_ContinueOnError_Call) RunAndReturn

type FinalizerMock_Execute_Call

type FinalizerMock_Execute_Call struct {
	*mock.Call
}

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

func (*FinalizerMock_Execute_Call) Return

func (*FinalizerMock_Execute_Call) Run

func (*FinalizerMock_Execute_Call) RunAndReturn

type FinalizerMock_Expecter

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

func (*FinalizerMock_Expecter) ContinueOnError

ContinueOnError is a helper method to define mock.On call

func (*FinalizerMock_Expecter) Execute

func (_e *FinalizerMock_Expecter) Execute(ctx interface{}, sub interface{}) *FinalizerMock_Execute_Call

Execute is a helper method to define mock.On call

  • ctx heimdall.Context
  • sub *subject.Subject

func (*FinalizerMock_Expecter) ID

ID is a helper method to define mock.On call

func (*FinalizerMock_Expecter) WithConfig

func (_e *FinalizerMock_Expecter) WithConfig(config interface{}) *FinalizerMock_WithConfig_Call

WithConfig is a helper method to define mock.On call

  • config map[string]interface{}

type FinalizerMock_ID_Call

type FinalizerMock_ID_Call struct {
	*mock.Call
}

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

func (*FinalizerMock_ID_Call) Return

func (*FinalizerMock_ID_Call) Run

func (_c *FinalizerMock_ID_Call) Run(run func()) *FinalizerMock_ID_Call

func (*FinalizerMock_ID_Call) RunAndReturn

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

type FinalizerMock_WithConfig_Call

type FinalizerMock_WithConfig_Call struct {
	*mock.Call
}

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

func (*FinalizerMock_WithConfig_Call) Return

func (*FinalizerMock_WithConfig_Call) Run

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

func (*FinalizerMock_WithConfig_Call) RunAndReturn

func (_c *FinalizerMock_WithConfig_Call) RunAndReturn(run func(map[string]interface{}) (finalizers.Finalizer, error)) *FinalizerMock_WithConfig_Call

Jump to

Keyboard shortcuts

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