mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 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 Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

NewProvider creates a new instance of Provider. 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 (*Provider) EXPECT added in v0.4.0

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) Execute

func (_m *Provider) Execute(config interface{}, eventSender vm.EventSender, computationId string) vm.VM

Execute provides a mock function with given fields: config, eventSender, computationId

type Provider_Execute_Call added in v0.4.0

type Provider_Execute_Call struct {
	*mock.Call
}

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

func (*Provider_Execute_Call) Return added in v0.4.0

func (*Provider_Execute_Call) Run added in v0.4.0

func (_c *Provider_Execute_Call) Run(run func(config interface{}, eventSender vm.EventSender, computationId string)) *Provider_Execute_Call

func (*Provider_Execute_Call) RunAndReturn added in v0.4.0

func (_c *Provider_Execute_Call) RunAndReturn(run func(interface{}, vm.EventSender, string) vm.VM) *Provider_Execute_Call

type Provider_Expecter added in v0.4.0

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

func (*Provider_Expecter) Execute added in v0.4.0

func (_e *Provider_Expecter) Execute(config interface{}, eventSender interface{}, computationId interface{}) *Provider_Execute_Call

Execute is a helper method to define mock.On call

  • config interface{}
  • eventSender vm.EventSender
  • computationId string

type StateMachine added in v0.4.0

type StateMachine struct {
	mock.Mock
}

StateMachine is an autogenerated mock type for the StateMachine type

func NewStateMachine added in v0.4.0

func NewStateMachine(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateMachine

NewStateMachine creates a new instance of StateMachine. 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 (*StateMachine) EXPECT added in v0.4.0

func (_m *StateMachine) EXPECT() *StateMachine_Expecter

func (*StateMachine) State added in v0.4.0

func (_m *StateMachine) State() string

State provides a mock function with given fields:

func (*StateMachine) Transition added in v0.4.0

func (_m *StateMachine) Transition(newState manager.ManagerState) error

Transition provides a mock function with given fields: newState

type StateMachine_Expecter added in v0.4.0

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

func (*StateMachine_Expecter) State added in v0.4.0

State is a helper method to define mock.On call

func (*StateMachine_Expecter) Transition added in v0.4.0

func (_e *StateMachine_Expecter) Transition(newState interface{}) *StateMachine_Transition_Call

Transition is a helper method to define mock.On call

  • newState manager.ManagerState

type StateMachine_State_Call added in v0.4.0

type StateMachine_State_Call struct {
	*mock.Call
}

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

func (*StateMachine_State_Call) Return added in v0.4.0

func (*StateMachine_State_Call) Run added in v0.4.0

func (_c *StateMachine_State_Call) Run(run func()) *StateMachine_State_Call

func (*StateMachine_State_Call) RunAndReturn added in v0.4.0

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

type StateMachine_Transition_Call added in v0.4.0

type StateMachine_Transition_Call struct {
	*mock.Call
}

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

func (*StateMachine_Transition_Call) Return added in v0.4.0

func (*StateMachine_Transition_Call) Run added in v0.4.0

func (*StateMachine_Transition_Call) RunAndReturn added in v0.4.0

type VM

type VM struct {
	mock.Mock
}

VM is an autogenerated mock type for the VM type

func NewVM

func NewVM(t interface {
	mock.TestingT
	Cleanup(func())
}) *VM

NewVM creates a new instance of VM. 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 (*VM) EXPECT added in v0.4.0

func (_m *VM) EXPECT() *VM_Expecter

func (*VM) GetCID added in v0.4.0

func (_m *VM) GetCID() int

GetCID provides a mock function with given fields:

func (*VM) GetConfig added in v0.4.0

func (_m *VM) GetConfig() interface{}

GetConfig provides a mock function with given fields:

func (*VM) GetProcess added in v0.4.0

func (_m *VM) GetProcess() int

GetProcess provides a mock function with given fields:

func (*VM) SendAgentConfig

func (_m *VM) SendAgentConfig(ac agent.Computation) error

SendAgentConfig provides a mock function with given fields: ac

func (*VM) SetProcess added in v0.4.0

func (_m *VM) SetProcess(pid int) error

SetProcess provides a mock function with given fields: pid

func (*VM) Start

func (_m *VM) Start() error

Start provides a mock function with given fields:

func (*VM) State added in v0.4.0

func (_m *VM) State() string

State provides a mock function with given fields:

func (*VM) Stop

func (_m *VM) Stop() error

Stop provides a mock function with given fields:

func (*VM) Transition added in v0.4.0

func (_m *VM) Transition(newState manager.ManagerState) error

Transition provides a mock function with given fields: newState

type VM_Expecter added in v0.4.0

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

func (*VM_Expecter) GetCID added in v0.4.0

func (_e *VM_Expecter) GetCID() *VM_GetCID_Call

GetCID is a helper method to define mock.On call

func (*VM_Expecter) GetConfig added in v0.4.0

func (_e *VM_Expecter) GetConfig() *VM_GetConfig_Call

GetConfig is a helper method to define mock.On call

func (*VM_Expecter) GetProcess added in v0.4.0

func (_e *VM_Expecter) GetProcess() *VM_GetProcess_Call

GetProcess is a helper method to define mock.On call

func (*VM_Expecter) SendAgentConfig added in v0.4.0

func (_e *VM_Expecter) SendAgentConfig(ac interface{}) *VM_SendAgentConfig_Call

SendAgentConfig is a helper method to define mock.On call

  • ac agent.Computation

func (*VM_Expecter) SetProcess added in v0.4.0

func (_e *VM_Expecter) SetProcess(pid interface{}) *VM_SetProcess_Call

SetProcess is a helper method to define mock.On call

  • pid int

func (*VM_Expecter) Start added in v0.4.0

func (_e *VM_Expecter) Start() *VM_Start_Call

Start is a helper method to define mock.On call

func (*VM_Expecter) State added in v0.4.0

func (_e *VM_Expecter) State() *VM_State_Call

State is a helper method to define mock.On call

func (*VM_Expecter) Stop added in v0.4.0

func (_e *VM_Expecter) Stop() *VM_Stop_Call

Stop is a helper method to define mock.On call

func (*VM_Expecter) Transition added in v0.4.0

func (_e *VM_Expecter) Transition(newState interface{}) *VM_Transition_Call

Transition is a helper method to define mock.On call

  • newState manager.ManagerState

type VM_GetCID_Call added in v0.4.0

type VM_GetCID_Call struct {
	*mock.Call
}

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

func (*VM_GetCID_Call) Return added in v0.4.0

func (_c *VM_GetCID_Call) Return(_a0 int) *VM_GetCID_Call

func (*VM_GetCID_Call) Run added in v0.4.0

func (_c *VM_GetCID_Call) Run(run func()) *VM_GetCID_Call

func (*VM_GetCID_Call) RunAndReturn added in v0.4.0

func (_c *VM_GetCID_Call) RunAndReturn(run func() int) *VM_GetCID_Call

type VM_GetConfig_Call added in v0.4.0

type VM_GetConfig_Call struct {
	*mock.Call
}

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

func (*VM_GetConfig_Call) Return added in v0.4.0

func (_c *VM_GetConfig_Call) Return(_a0 interface{}) *VM_GetConfig_Call

func (*VM_GetConfig_Call) Run added in v0.4.0

func (_c *VM_GetConfig_Call) Run(run func()) *VM_GetConfig_Call

func (*VM_GetConfig_Call) RunAndReturn added in v0.4.0

func (_c *VM_GetConfig_Call) RunAndReturn(run func() interface{}) *VM_GetConfig_Call

type VM_GetProcess_Call added in v0.4.0

type VM_GetProcess_Call struct {
	*mock.Call
}

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

func (*VM_GetProcess_Call) Return added in v0.4.0

func (_c *VM_GetProcess_Call) Return(_a0 int) *VM_GetProcess_Call

func (*VM_GetProcess_Call) Run added in v0.4.0

func (_c *VM_GetProcess_Call) Run(run func()) *VM_GetProcess_Call

func (*VM_GetProcess_Call) RunAndReturn added in v0.4.0

func (_c *VM_GetProcess_Call) RunAndReturn(run func() int) *VM_GetProcess_Call

type VM_SendAgentConfig_Call added in v0.4.0

type VM_SendAgentConfig_Call struct {
	*mock.Call
}

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

func (*VM_SendAgentConfig_Call) Return added in v0.4.0

func (*VM_SendAgentConfig_Call) Run added in v0.4.0

func (*VM_SendAgentConfig_Call) RunAndReturn added in v0.4.0

type VM_SetProcess_Call added in v0.4.0

type VM_SetProcess_Call struct {
	*mock.Call
}

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

func (*VM_SetProcess_Call) Return added in v0.4.0

func (_c *VM_SetProcess_Call) Return(_a0 error) *VM_SetProcess_Call

func (*VM_SetProcess_Call) Run added in v0.4.0

func (_c *VM_SetProcess_Call) Run(run func(pid int)) *VM_SetProcess_Call

func (*VM_SetProcess_Call) RunAndReturn added in v0.4.0

func (_c *VM_SetProcess_Call) RunAndReturn(run func(int) error) *VM_SetProcess_Call

type VM_Start_Call added in v0.4.0

type VM_Start_Call struct {
	*mock.Call
}

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

func (*VM_Start_Call) Return added in v0.4.0

func (_c *VM_Start_Call) Return(_a0 error) *VM_Start_Call

func (*VM_Start_Call) Run added in v0.4.0

func (_c *VM_Start_Call) Run(run func()) *VM_Start_Call

func (*VM_Start_Call) RunAndReturn added in v0.4.0

func (_c *VM_Start_Call) RunAndReturn(run func() error) *VM_Start_Call

type VM_State_Call added in v0.4.0

type VM_State_Call struct {
	*mock.Call
}

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

func (*VM_State_Call) Return added in v0.4.0

func (_c *VM_State_Call) Return(_a0 string) *VM_State_Call

func (*VM_State_Call) Run added in v0.4.0

func (_c *VM_State_Call) Run(run func()) *VM_State_Call

func (*VM_State_Call) RunAndReturn added in v0.4.0

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

type VM_Stop_Call added in v0.4.0

type VM_Stop_Call struct {
	*mock.Call
}

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

func (*VM_Stop_Call) Return added in v0.4.0

func (_c *VM_Stop_Call) Return(_a0 error) *VM_Stop_Call

func (*VM_Stop_Call) Run added in v0.4.0

func (_c *VM_Stop_Call) Run(run func()) *VM_Stop_Call

func (*VM_Stop_Call) RunAndReturn added in v0.4.0

func (_c *VM_Stop_Call) RunAndReturn(run func() error) *VM_Stop_Call

type VM_Transition_Call added in v0.4.0

type VM_Transition_Call struct {
	*mock.Call
}

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

func (*VM_Transition_Call) Return added in v0.4.0

func (_c *VM_Transition_Call) Return(_a0 error) *VM_Transition_Call

func (*VM_Transition_Call) Run added in v0.4.0

func (_c *VM_Transition_Call) Run(run func(newState manager.ManagerState)) *VM_Transition_Call

func (*VM_Transition_Call) RunAndReturn added in v0.4.0

func (_c *VM_Transition_Call) RunAndReturn(run func(manager.ManagerState) error) *VM_Transition_Call

Jump to

Keyboard shortcuts

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