mocks

package
v29.0.0-...-a2903dc Latest Latest
Warning

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

Go to latest
Published: Apr 29, 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 ChainerInterface

type ChainerInterface struct {
	mock.Mock
}

ChainerInterface is an autogenerated mock type for the Chainer type

func NewChainerInterface

func NewChainerInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChainerInterface

NewChainerInterface creates a new instance of ChainerInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChainerInterface) AppPath

func (_m *ChainerInterface) AppPath() string

AppPath provides a mock function with given fields:

func (*ChainerInterface) ConfigPath

func (_m *ChainerInterface) ConfigPath() string

ConfigPath provides a mock function with given fields:

func (*ChainerInterface) EXPECT

func (*ChainerInterface) Home

func (_m *ChainerInterface) Home() (string, error)

Home provides a mock function with given fields:

func (*ChainerInterface) ID

func (_m *ChainerInterface) ID() (string, error)

ID provides a mock function with given fields:

func (*ChainerInterface) RPCPublicAddress

func (_m *ChainerInterface) RPCPublicAddress() (string, error)

RPCPublicAddress provides a mock function with given fields:

type ChainerInterface_AppPath_Call

type ChainerInterface_AppPath_Call struct {
	*mock.Call
}

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

func (*ChainerInterface_AppPath_Call) Return

func (*ChainerInterface_AppPath_Call) Run

func (*ChainerInterface_AppPath_Call) RunAndReturn

type ChainerInterface_ConfigPath_Call

type ChainerInterface_ConfigPath_Call struct {
	*mock.Call
}

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

func (*ChainerInterface_ConfigPath_Call) Return

func (*ChainerInterface_ConfigPath_Call) Run

func (*ChainerInterface_ConfigPath_Call) RunAndReturn

type ChainerInterface_Expecter

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

func (*ChainerInterface_Expecter) AppPath

AppPath is a helper method to define mock.On call

func (*ChainerInterface_Expecter) ConfigPath

ConfigPath is a helper method to define mock.On call

func (*ChainerInterface_Expecter) Home

Home is a helper method to define mock.On call

func (*ChainerInterface_Expecter) ID

ID is a helper method to define mock.On call

func (*ChainerInterface_Expecter) RPCPublicAddress

RPCPublicAddress is a helper method to define mock.On call

type ChainerInterface_Home_Call

type ChainerInterface_Home_Call struct {
	*mock.Call
}

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

func (*ChainerInterface_Home_Call) Return

func (*ChainerInterface_Home_Call) Run

func (*ChainerInterface_Home_Call) RunAndReturn

func (_c *ChainerInterface_Home_Call) RunAndReturn(run func() (string, error)) *ChainerInterface_Home_Call

type ChainerInterface_ID_Call

type ChainerInterface_ID_Call struct {
	*mock.Call
}

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

func (*ChainerInterface_ID_Call) Return

func (*ChainerInterface_ID_Call) Run

func (*ChainerInterface_ID_Call) RunAndReturn

func (_c *ChainerInterface_ID_Call) RunAndReturn(run func() (string, error)) *ChainerInterface_ID_Call

type ChainerInterface_RPCPublicAddress_Call

type ChainerInterface_RPCPublicAddress_Call struct {
	*mock.Call
}

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

func (*ChainerInterface_RPCPublicAddress_Call) Return

func (*ChainerInterface_RPCPublicAddress_Call) Run

func (*ChainerInterface_RPCPublicAddress_Call) RunAndReturn

type PluginClientAPI

type PluginClientAPI struct {
	mock.Mock
}

PluginClientAPI is an autogenerated mock type for the ClientAPI type

func NewPluginClientAPI

func NewPluginClientAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *PluginClientAPI

NewPluginClientAPI creates a new instance of PluginClientAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*PluginClientAPI) EXPECT

func (*PluginClientAPI) GetChainInfo

func (_m *PluginClientAPI) GetChainInfo(_a0 context.Context) (*v1.ChainInfo, error)

GetChainInfo provides a mock function with given fields: _a0

type PluginClientAPI_Expecter

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

func (*PluginClientAPI_Expecter) GetChainInfo

func (_e *PluginClientAPI_Expecter) GetChainInfo(_a0 interface{}) *PluginClientAPI_GetChainInfo_Call

GetChainInfo is a helper method to define mock.On call

  • _a0 context.Context

type PluginClientAPI_GetChainInfo_Call

type PluginClientAPI_GetChainInfo_Call struct {
	*mock.Call
}

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

func (*PluginClientAPI_GetChainInfo_Call) Return

func (*PluginClientAPI_GetChainInfo_Call) Run

func (*PluginClientAPI_GetChainInfo_Call) RunAndReturn

type PluginInterface

type PluginInterface struct {
	mock.Mock
}

PluginInterface is an autogenerated mock type for the Interface type

func NewPluginInterface

func NewPluginInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*PluginInterface) EXPECT

func (*PluginInterface) Execute

func (_m *PluginInterface) Execute(_a0 context.Context, _a1 *v1.ExecutedCommand, _a2 plugin.ClientAPI) error

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

func (*PluginInterface) ExecuteHookCleanUp

func (_m *PluginInterface) ExecuteHookCleanUp(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI) error

ExecuteHookCleanUp provides a mock function with given fields: _a0, _a1, _a2

func (*PluginInterface) ExecuteHookPost

func (_m *PluginInterface) ExecuteHookPost(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI) error

ExecuteHookPost provides a mock function with given fields: _a0, _a1, _a2

func (*PluginInterface) ExecuteHookPre

func (_m *PluginInterface) ExecuteHookPre(_a0 context.Context, _a1 *v1.ExecutedHook, _a2 plugin.ClientAPI) error

ExecuteHookPre provides a mock function with given fields: _a0, _a1, _a2

func (*PluginInterface) Manifest

func (_m *PluginInterface) Manifest(_a0 context.Context) (*v1.Manifest, error)

Manifest provides a mock function with given fields: _a0

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

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

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

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

type PluginInterface_Expecter

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

func (*PluginInterface_Expecter) Execute

func (_e *PluginInterface_Expecter) Execute(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1.ExecutedCommand
  • _a2 plugin.ClientAPI

func (*PluginInterface_Expecter) ExecuteHookCleanUp

func (_e *PluginInterface_Expecter) ExecuteHookCleanUp(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_ExecuteHookCleanUp_Call

ExecuteHookCleanUp is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1.ExecutedHook
  • _a2 plugin.ClientAPI

func (*PluginInterface_Expecter) ExecuteHookPost

func (_e *PluginInterface_Expecter) ExecuteHookPost(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_ExecuteHookPost_Call

ExecuteHookPost is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1.ExecutedHook
  • _a2 plugin.ClientAPI

func (*PluginInterface_Expecter) ExecuteHookPre

func (_e *PluginInterface_Expecter) ExecuteHookPre(_a0 interface{}, _a1 interface{}, _a2 interface{}) *PluginInterface_ExecuteHookPre_Call

ExecuteHookPre is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v1.ExecutedHook
  • _a2 plugin.ClientAPI

func (*PluginInterface_Expecter) Manifest

func (_e *PluginInterface_Expecter) Manifest(_a0 interface{}) *PluginInterface_Manifest_Call

Manifest is a helper method to define mock.On call

  • _a0 context.Context

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

Jump to

Keyboard shortcuts

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