Documentation ¶
Index ¶
- type MachinesManager
- type MachinesManagerMock
- func (mmGetExecutor *MachinesManagerMock) GetExecutor(t insolar.MachineType) (m1 insolar.MachineLogicExecutor, err error)
- func (mmGetExecutor *MachinesManagerMock) GetExecutorAfterCounter() uint64
- func (mmGetExecutor *MachinesManagerMock) GetExecutorBeforeCounter() uint64
- func (m *MachinesManagerMock) MinimockFinish()
- func (m *MachinesManagerMock) MinimockGetExecutorDone() bool
- func (m *MachinesManagerMock) MinimockGetExecutorInspect()
- func (m *MachinesManagerMock) MinimockRegisterExecutorDone() bool
- func (m *MachinesManagerMock) MinimockRegisterExecutorInspect()
- func (m *MachinesManagerMock) MinimockWait(timeout mm_time.Duration)
- func (mmRegisterExecutor *MachinesManagerMock) RegisterExecutor(t insolar.MachineType, e insolar.MachineLogicExecutor) (err error)
- func (mmRegisterExecutor *MachinesManagerMock) RegisterExecutorAfterCounter() uint64
- func (mmRegisterExecutor *MachinesManagerMock) RegisterExecutorBeforeCounter() uint64
- type MachinesManagerMockGetExecutorExpectation
- type MachinesManagerMockGetExecutorParams
- type MachinesManagerMockGetExecutorResults
- type MachinesManagerMockRegisterExecutorExpectation
- type MachinesManagerMockRegisterExecutorParams
- type MachinesManagerMockRegisterExecutorResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MachinesManager ¶
type MachinesManager interface { RegisterExecutor(t insolar.MachineType, e insolar.MachineLogicExecutor) error GetExecutor(t insolar.MachineType) (insolar.MachineLogicExecutor, error) }
func NewMachinesManager ¶
func NewMachinesManager() MachinesManager
type MachinesManagerMock ¶
type MachinesManagerMock struct { GetExecutorMock mMachinesManagerMockGetExecutor RegisterExecutorMock mMachinesManagerMockRegisterExecutor // contains filtered or unexported fields }
MachinesManagerMock implements MachinesManager
func NewMachinesManagerMock ¶
func NewMachinesManagerMock(t minimock.Tester) *MachinesManagerMock
NewMachinesManagerMock returns a mock for MachinesManager
func (*MachinesManagerMock) GetExecutor ¶
func (mmGetExecutor *MachinesManagerMock) GetExecutor(t insolar.MachineType) (m1 insolar.MachineLogicExecutor, err error)
GetExecutor implements MachinesManager
func (*MachinesManagerMock) GetExecutorAfterCounter ¶
func (mmGetExecutor *MachinesManagerMock) GetExecutorAfterCounter() uint64
GetExecutorAfterCounter returns a count of finished MachinesManagerMock.GetExecutor invocations
func (*MachinesManagerMock) GetExecutorBeforeCounter ¶
func (mmGetExecutor *MachinesManagerMock) GetExecutorBeforeCounter() uint64
GetExecutorBeforeCounter returns a count of MachinesManagerMock.GetExecutor invocations
func (*MachinesManagerMock) MinimockFinish ¶
func (m *MachinesManagerMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*MachinesManagerMock) MinimockGetExecutorDone ¶
func (m *MachinesManagerMock) MinimockGetExecutorDone() bool
MinimockGetExecutorDone returns true if the count of the GetExecutor invocations corresponds the number of defined expectations
func (*MachinesManagerMock) MinimockGetExecutorInspect ¶
func (m *MachinesManagerMock) MinimockGetExecutorInspect()
MinimockGetExecutorInspect logs each unmet expectation
func (*MachinesManagerMock) MinimockRegisterExecutorDone ¶
func (m *MachinesManagerMock) MinimockRegisterExecutorDone() bool
MinimockRegisterExecutorDone returns true if the count of the RegisterExecutor invocations corresponds the number of defined expectations
func (*MachinesManagerMock) MinimockRegisterExecutorInspect ¶
func (m *MachinesManagerMock) MinimockRegisterExecutorInspect()
MinimockRegisterExecutorInspect logs each unmet expectation
func (*MachinesManagerMock) MinimockWait ¶
func (m *MachinesManagerMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*MachinesManagerMock) RegisterExecutor ¶
func (mmRegisterExecutor *MachinesManagerMock) RegisterExecutor(t insolar.MachineType, e insolar.MachineLogicExecutor) (err error)
RegisterExecutor implements MachinesManager
func (*MachinesManagerMock) RegisterExecutorAfterCounter ¶
func (mmRegisterExecutor *MachinesManagerMock) RegisterExecutorAfterCounter() uint64
RegisterExecutorAfterCounter returns a count of finished MachinesManagerMock.RegisterExecutor invocations
func (*MachinesManagerMock) RegisterExecutorBeforeCounter ¶
func (mmRegisterExecutor *MachinesManagerMock) RegisterExecutorBeforeCounter() uint64
RegisterExecutorBeforeCounter returns a count of MachinesManagerMock.RegisterExecutor invocations
type MachinesManagerMockGetExecutorExpectation ¶
type MachinesManagerMockGetExecutorExpectation struct { Counter uint64 // contains filtered or unexported fields }
MachinesManagerMockGetExecutorExpectation specifies expectation struct of the MachinesManager.GetExecutor
func (*MachinesManagerMockGetExecutorExpectation) Then ¶
func (e *MachinesManagerMockGetExecutorExpectation) Then(m1 insolar.MachineLogicExecutor, err error) *MachinesManagerMock
Then sets up MachinesManager.GetExecutor return parameters for the expectation previously defined by the When method
type MachinesManagerMockGetExecutorParams ¶
type MachinesManagerMockGetExecutorParams struct {
// contains filtered or unexported fields
}
MachinesManagerMockGetExecutorParams contains parameters of the MachinesManager.GetExecutor
type MachinesManagerMockGetExecutorResults ¶
type MachinesManagerMockGetExecutorResults struct {
// contains filtered or unexported fields
}
MachinesManagerMockGetExecutorResults contains results of the MachinesManager.GetExecutor
type MachinesManagerMockRegisterExecutorExpectation ¶
type MachinesManagerMockRegisterExecutorExpectation struct { Counter uint64 // contains filtered or unexported fields }
MachinesManagerMockRegisterExecutorExpectation specifies expectation struct of the MachinesManager.RegisterExecutor
func (*MachinesManagerMockRegisterExecutorExpectation) Then ¶
func (e *MachinesManagerMockRegisterExecutorExpectation) Then(err error) *MachinesManagerMock
Then sets up MachinesManager.RegisterExecutor return parameters for the expectation previously defined by the When method
type MachinesManagerMockRegisterExecutorParams ¶
type MachinesManagerMockRegisterExecutorParams struct {
// contains filtered or unexported fields
}
MachinesManagerMockRegisterExecutorParams contains parameters of the MachinesManager.RegisterExecutor
type MachinesManagerMockRegisterExecutorResults ¶
type MachinesManagerMockRegisterExecutorResults struct {
// contains filtered or unexported fields
}
MachinesManagerMockRegisterExecutorResults contains results of the MachinesManager.RegisterExecutor