Documentation ¶
Index ¶
- type Provider
- type Provider_Execute_Call
- func (_c *Provider_Execute_Call) Return(_a0 vm.VM) *Provider_Execute_Call
- func (_c *Provider_Execute_Call) Run(run func(config interface{}, eventSender vm.EventSender, computationId string)) *Provider_Execute_Call
- func (_c *Provider_Execute_Call) RunAndReturn(run func(interface{}, vm.EventSender, string) vm.VM) *Provider_Execute_Call
- type Provider_Expecter
- type StateMachine
- type StateMachine_Expecter
- type StateMachine_State_Call
- type StateMachine_Transition_Call
- func (_c *StateMachine_Transition_Call) Return(_a0 error) *StateMachine_Transition_Call
- func (_c *StateMachine_Transition_Call) Run(run func(newState manager.ManagerState)) *StateMachine_Transition_Call
- func (_c *StateMachine_Transition_Call) RunAndReturn(run func(manager.ManagerState) error) *StateMachine_Transition_Call
- type VM
- func (_m *VM) EXPECT() *VM_Expecter
- func (_m *VM) GetCID() int
- func (_m *VM) GetConfig() interface{}
- func (_m *VM) GetProcess() int
- func (_m *VM) SendAgentConfig(ac agent.Computation) error
- func (_m *VM) SetProcess(pid int) error
- func (_m *VM) Start() error
- func (_m *VM) State() string
- func (_m *VM) Stop() error
- func (_m *VM) Transition(newState manager.ManagerState) error
- type VM_Expecter
- func (_e *VM_Expecter) GetCID() *VM_GetCID_Call
- func (_e *VM_Expecter) GetConfig() *VM_GetConfig_Call
- func (_e *VM_Expecter) GetProcess() *VM_GetProcess_Call
- func (_e *VM_Expecter) SendAgentConfig(ac interface{}) *VM_SendAgentConfig_Call
- func (_e *VM_Expecter) SetProcess(pid interface{}) *VM_SetProcess_Call
- func (_e *VM_Expecter) Start() *VM_Start_Call
- func (_e *VM_Expecter) State() *VM_State_Call
- func (_e *VM_Expecter) Stop() *VM_Stop_Call
- func (_e *VM_Expecter) Transition(newState interface{}) *VM_Transition_Call
- type VM_GetCID_Call
- type VM_GetConfig_Call
- type VM_GetProcess_Call
- type VM_SendAgentConfig_Call
- type VM_SetProcess_Call
- type VM_Start_Call
- type VM_State_Call
- type VM_Stop_Call
- type VM_Transition_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
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
type Provider_Execute_Call ¶ added in v0.4.0
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 (_c *Provider_Execute_Call) Return(_a0 vm.VM) *Provider_Execute_Call
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
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
func (_e *StateMachine_Expecter) State() *StateMachine_State_Call
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
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 (_c *StateMachine_State_Call) Return(_a0 string) *StateMachine_State_Call
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
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 (_c *StateMachine_Transition_Call) Return(_a0 error) *StateMachine_Transition_Call
func (*StateMachine_Transition_Call) Run ¶ added in v0.4.0
func (_c *StateMachine_Transition_Call) Run(run func(newState manager.ManagerState)) *StateMachine_Transition_Call
func (*StateMachine_Transition_Call) RunAndReturn ¶ added in v0.4.0
func (_c *StateMachine_Transition_Call) RunAndReturn(run func(manager.ManagerState) error) *StateMachine_Transition_Call
type VM ¶
VM is an autogenerated mock type for the VM type
func NewVM ¶
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) 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
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
SetProcess provides a mock function with given fields: pid
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
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
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
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
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 (_c *VM_SendAgentConfig_Call) Return(_a0 error) *VM_SendAgentConfig_Call
func (*VM_SendAgentConfig_Call) Run ¶ added in v0.4.0
func (_c *VM_SendAgentConfig_Call) Run(run func(ac agent.Computation)) *VM_SendAgentConfig_Call
func (*VM_SendAgentConfig_Call) RunAndReturn ¶ added in v0.4.0
func (_c *VM_SendAgentConfig_Call) RunAndReturn(run func(agent.Computation) error) *VM_SendAgentConfig_Call
type VM_SetProcess_Call ¶ added in v0.4.0
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
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
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
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
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