mocks

package
v0.9.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 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 UnifierMock

type UnifierMock struct {
	mock.Mock
}

UnifierMock is an autogenerated mock type for the Unifier type

func NewUnifierMock

func NewUnifierMock(t mockConstructorTestingTNewUnifierMock) *UnifierMock

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

func (*UnifierMock) ContinueOnError

func (_m *UnifierMock) ContinueOnError() bool

ContinueOnError provides a mock function with given fields:

func (*UnifierMock) EXPECT

func (_m *UnifierMock) EXPECT() *UnifierMock_Expecter

func (*UnifierMock) Execute

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

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

func (*UnifierMock) WithConfig

func (_m *UnifierMock) WithConfig(config map[string]interface{}) (unifiers.Unifier, error)

WithConfig provides a mock function with given fields: config

type UnifierMock_ContinueOnError_Call

type UnifierMock_ContinueOnError_Call struct {
	*mock.Call
}

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

func (*UnifierMock_ContinueOnError_Call) Return

func (*UnifierMock_ContinueOnError_Call) Run

func (*UnifierMock_ContinueOnError_Call) RunAndReturn

type UnifierMock_Execute_Call

type UnifierMock_Execute_Call struct {
	*mock.Call
}

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

func (*UnifierMock_Execute_Call) Return

func (*UnifierMock_Execute_Call) Run

func (*UnifierMock_Execute_Call) RunAndReturn

type UnifierMock_Expecter

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

func (*UnifierMock_Expecter) ContinueOnError

ContinueOnError is a helper method to define mock.On call

func (*UnifierMock_Expecter) Execute

func (_e *UnifierMock_Expecter) Execute(ctx interface{}, sub interface{}) *UnifierMock_Execute_Call

Execute is a helper method to define mock.On call

  • ctx heimdall.Context
  • sub *subject.Subject

func (*UnifierMock_Expecter) WithConfig

func (_e *UnifierMock_Expecter) WithConfig(config interface{}) *UnifierMock_WithConfig_Call

WithConfig is a helper method to define mock.On call

  • config map[string]interface{}

type UnifierMock_WithConfig_Call

type UnifierMock_WithConfig_Call struct {
	*mock.Call
}

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

func (*UnifierMock_WithConfig_Call) Return

func (*UnifierMock_WithConfig_Call) Run

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

func (*UnifierMock_WithConfig_Call) RunAndReturn

func (_c *UnifierMock_WithConfig_Call) RunAndReturn(run func(map[string]interface{}) (unifiers.Unifier, error)) *UnifierMock_WithConfig_Call

Jump to

Keyboard shortcuts

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