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 any, computationId string, logger *slog.Logger)) *Provider_Execute_Call
- func (_c *Provider_Execute_Call) RunAndReturn(run func(any, string, *slog.Logger) 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(err 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(newState manager.ManagerState) error) *StateMachine_Transition_Call
- type VM
- func (_m *VM) EXPECT() *VM_Expecter
- func (_mock *VM) GetConfig() any
- func (_mock *VM) GetProcess() int
- func (_mock *VM) SetProcess(pid int) error
- func (_mock *VM) Start() error
- func (_mock *VM) State() string
- func (_mock *VM) Stop() error
- func (_mock *VM) Transition(newState manager.ManagerState) error
- type VM_Expecter
- func (_e *VM_Expecter) GetConfig() *VM_GetConfig_Call
- func (_e *VM_Expecter) GetProcess() *VM_GetProcess_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_GetConfig_Call
- type VM_GetProcess_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 any, computationId string, logger *slog.Logger)) *Provider_Execute_Call
func (*Provider_Execute_Call) RunAndReturn ¶ added in v0.4.0
func (_c *Provider_Execute_Call) RunAndReturn(run func(any, string, *slog.Logger) 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 any, computationId any, logger any) *Provider_Execute_Call
Execute is a helper method to define mock.On call
- config any
- computationId string
- logger *slog.Logger
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 (_mock *StateMachine) State() string
State provides a mock function for the type StateMachine
func (*StateMachine) Transition ¶ added in v0.4.0
func (_mock *StateMachine) Transition(newState manager.ManagerState) error
Transition provides a mock function for the type StateMachine
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(s 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(err 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(newState 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) GetProcess ¶ added in v0.4.0
GetProcess provides a mock function for the type VM
func (*VM) SetProcess ¶ added in v0.4.0
SetProcess provides a mock function for the type VM
func (*VM) Transition ¶ added in v0.4.0
func (_mock *VM) Transition(newState manager.ManagerState) error
Transition provides a mock function for the type VM
type VM_Expecter ¶ added in v0.4.0
type VM_Expecter struct {
// contains filtered or unexported fields
}
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) 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_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(v any) *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() any) *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(n 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_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(err 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(pid 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(err 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(s 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(err 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(err 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(newState manager.ManagerState) error) *VM_Transition_Call