mocks

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginInterface

type PluginInterface struct {
	mock.Mock
}

PluginInterface is an autogenerated mock type for the Interface type

func NewPluginInterface

func NewPluginInterface(t mockConstructorTestingTNewPluginInterface) *PluginInterface

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

func (*PluginInterface) EXPECT

func (*PluginInterface) Execute

func (_m *PluginInterface) Execute(cmd plugin.ExecutedCommand) error

Execute provides a mock function with given fields: cmd

func (*PluginInterface) ExecuteHookCleanUp

func (_m *PluginInterface) ExecuteHookCleanUp(hook plugin.ExecutedHook) error

ExecuteHookCleanUp provides a mock function with given fields: hook

func (*PluginInterface) ExecuteHookPost

func (_m *PluginInterface) ExecuteHookPost(hook plugin.ExecutedHook) error

ExecuteHookPost provides a mock function with given fields: hook

func (*PluginInterface) ExecuteHookPre

func (_m *PluginInterface) ExecuteHookPre(hook plugin.ExecutedHook) error

ExecuteHookPre provides a mock function with given fields: hook

func (*PluginInterface) Manifest

func (_m *PluginInterface) Manifest() (plugin.Manifest, error)

Manifest provides a mock function with given fields:

type PluginInterface_ExecuteHookCleanUp_Call

type PluginInterface_ExecuteHookCleanUp_Call struct {
	*mock.Call
}

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

func (*PluginInterface_ExecuteHookCleanUp_Call) Return

func (*PluginInterface_ExecuteHookCleanUp_Call) Run

func (*PluginInterface_ExecuteHookCleanUp_Call) RunAndReturn added in v0.27.0

type PluginInterface_ExecuteHookPost_Call

type PluginInterface_ExecuteHookPost_Call struct {
	*mock.Call
}

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

func (*PluginInterface_ExecuteHookPost_Call) Return

func (*PluginInterface_ExecuteHookPost_Call) Run

func (*PluginInterface_ExecuteHookPost_Call) RunAndReturn added in v0.27.0

type PluginInterface_ExecuteHookPre_Call

type PluginInterface_ExecuteHookPre_Call struct {
	*mock.Call
}

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

func (*PluginInterface_ExecuteHookPre_Call) Return

func (*PluginInterface_ExecuteHookPre_Call) Run

func (*PluginInterface_ExecuteHookPre_Call) RunAndReturn added in v0.27.0

type PluginInterface_Execute_Call

type PluginInterface_Execute_Call struct {
	*mock.Call
}

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

func (*PluginInterface_Execute_Call) Return

func (*PluginInterface_Execute_Call) Run

func (*PluginInterface_Execute_Call) RunAndReturn added in v0.27.0

type PluginInterface_Expecter

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

func (*PluginInterface_Expecter) Execute

func (_e *PluginInterface_Expecter) Execute(cmd interface{}) *PluginInterface_Execute_Call

Execute is a helper method to define mock.On call

  • cmd plugin.ExecutedCommand

func (*PluginInterface_Expecter) ExecuteHookCleanUp

func (_e *PluginInterface_Expecter) ExecuteHookCleanUp(hook interface{}) *PluginInterface_ExecuteHookCleanUp_Call

ExecuteHookCleanUp is a helper method to define mock.On call

  • hook plugin.ExecutedHook

func (*PluginInterface_Expecter) ExecuteHookPost

func (_e *PluginInterface_Expecter) ExecuteHookPost(hook interface{}) *PluginInterface_ExecuteHookPost_Call

ExecuteHookPost is a helper method to define mock.On call

  • hook plugin.ExecutedHook

func (*PluginInterface_Expecter) ExecuteHookPre

func (_e *PluginInterface_Expecter) ExecuteHookPre(hook interface{}) *PluginInterface_ExecuteHookPre_Call

ExecuteHookPre is a helper method to define mock.On call

  • hook plugin.ExecutedHook

func (*PluginInterface_Expecter) Manifest

Manifest is a helper method to define mock.On call

type PluginInterface_Manifest_Call

type PluginInterface_Manifest_Call struct {
	*mock.Call
}

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

func (*PluginInterface_Manifest_Call) Return

func (*PluginInterface_Manifest_Call) Run

func (*PluginInterface_Manifest_Call) RunAndReturn added in v0.27.0

Jump to

Keyboard shortcuts

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