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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextualizerMock

type ContextualizerMock struct {
	mock.Mock
}

ContextualizerMock is an autogenerated mock type for the Contextualizer type

func NewContextualizerMock

func NewContextualizerMock(t mockConstructorTestingTNewContextualizerMock) *ContextualizerMock

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

func (*ContextualizerMock) ContinueOnError

func (_m *ContextualizerMock) ContinueOnError() bool

ContinueOnError provides a mock function with given fields:

func (*ContextualizerMock) EXPECT

func (*ContextualizerMock) Execute

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

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

func (*ContextualizerMock) ID

func (_m *ContextualizerMock) ID() string

ID provides a mock function with given fields:

func (*ContextualizerMock) WithConfig

func (_m *ContextualizerMock) WithConfig(config map[string]interface{}) (contextualizers.Contextualizer, error)

WithConfig provides a mock function with given fields: config

type ContextualizerMock_ContinueOnError_Call

type ContextualizerMock_ContinueOnError_Call struct {
	*mock.Call
}

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

func (*ContextualizerMock_ContinueOnError_Call) Return

func (*ContextualizerMock_ContinueOnError_Call) Run

func (*ContextualizerMock_ContinueOnError_Call) RunAndReturn

type ContextualizerMock_Execute_Call

type ContextualizerMock_Execute_Call struct {
	*mock.Call
}

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

func (*ContextualizerMock_Execute_Call) Return

func (*ContextualizerMock_Execute_Call) Run

func (*ContextualizerMock_Execute_Call) RunAndReturn

type ContextualizerMock_Expecter

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

func (*ContextualizerMock_Expecter) ContinueOnError

ContinueOnError is a helper method to define mock.On call

func (*ContextualizerMock_Expecter) Execute

func (_e *ContextualizerMock_Expecter) Execute(_a0 interface{}, _a1 interface{}) *ContextualizerMock_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 heimdall.Context
  • _a1 *subject.Subject

func (*ContextualizerMock_Expecter) ID

ID is a helper method to define mock.On call

func (*ContextualizerMock_Expecter) WithConfig

func (_e *ContextualizerMock_Expecter) WithConfig(config interface{}) *ContextualizerMock_WithConfig_Call

WithConfig is a helper method to define mock.On call

  • config map[string]interface{}

type ContextualizerMock_ID_Call

type ContextualizerMock_ID_Call struct {
	*mock.Call
}

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

func (*ContextualizerMock_ID_Call) Return

func (*ContextualizerMock_ID_Call) Run

func (*ContextualizerMock_ID_Call) RunAndReturn

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

type ContextualizerMock_WithConfig_Call

type ContextualizerMock_WithConfig_Call struct {
	*mock.Call
}

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

func (*ContextualizerMock_WithConfig_Call) Return

func (*ContextualizerMock_WithConfig_Call) Run

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

func (*ContextualizerMock_WithConfig_Call) RunAndReturn

Jump to

Keyboard shortcuts

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