Documentation ¶
Index ¶
- type StateMachine
- func (_m *StateMachine) Build() (*flow.EpochProtocolStateEntry, flow.Identifier, bool)
- func (_m *StateMachine) EjectIdentity(nodeID flow.Identifier) error
- func (_m *StateMachine) ParentState() *flow.RichEpochProtocolStateEntry
- func (_m *StateMachine) ProcessEpochCommit(epochCommit *flow.EpochCommit) (bool, error)
- func (_m *StateMachine) ProcessEpochSetup(epochSetup *flow.EpochSetup) (bool, error)
- func (_m *StateMachine) TransitionToNextEpoch() error
- func (_m *StateMachine) View() uint64
- type StateMachineFactoryMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateMachine ¶
StateMachine is an autogenerated mock type for the StateMachine type
func NewStateMachine ¶
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) Build ¶
func (_m *StateMachine) Build() (*flow.EpochProtocolStateEntry, flow.Identifier, bool)
Build provides a mock function with given fields:
func (*StateMachine) EjectIdentity ¶
func (_m *StateMachine) EjectIdentity(nodeID flow.Identifier) error
EjectIdentity provides a mock function with given fields: nodeID
func (*StateMachine) ParentState ¶
func (_m *StateMachine) ParentState() *flow.RichEpochProtocolStateEntry
ParentState provides a mock function with given fields:
func (*StateMachine) ProcessEpochCommit ¶
func (_m *StateMachine) ProcessEpochCommit(epochCommit *flow.EpochCommit) (bool, error)
ProcessEpochCommit provides a mock function with given fields: epochCommit
func (*StateMachine) ProcessEpochSetup ¶
func (_m *StateMachine) ProcessEpochSetup(epochSetup *flow.EpochSetup) (bool, error)
ProcessEpochSetup provides a mock function with given fields: epochSetup
func (*StateMachine) TransitionToNextEpoch ¶
func (_m *StateMachine) TransitionToNextEpoch() error
TransitionToNextEpoch provides a mock function with given fields:
func (*StateMachine) View ¶
func (_m *StateMachine) View() uint64
View provides a mock function with given fields:
type StateMachineFactoryMethod ¶
StateMachineFactoryMethod is an autogenerated mock type for the StateMachineFactoryMethod type
func NewStateMachineFactoryMethod ¶
func NewStateMachineFactoryMethod(t interface { mock.TestingT Cleanup(func()) }) *StateMachineFactoryMethod
NewStateMachineFactoryMethod creates a new instance of StateMachineFactoryMethod. 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 (*StateMachineFactoryMethod) Execute ¶
func (_m *StateMachineFactoryMethod) Execute(candidateView uint64, parentState *flow.RichEpochProtocolStateEntry) (epochs.StateMachine, error)
Execute provides a mock function with given fields: candidateView, parentState