Documentation ¶
Index ¶
- type ProtocolStateMachine
- func (_m *ProtocolStateMachine) Build() (*flow.ProtocolStateEntry, flow.Identifier, bool)
- func (_m *ProtocolStateMachine) EjectIdentity(nodeID flow.Identifier) error
- func (_m *ProtocolStateMachine) ParentState() *flow.RichProtocolStateEntry
- func (_m *ProtocolStateMachine) ProcessEpochCommit(epochCommit *flow.EpochCommit) (bool, error)
- func (_m *ProtocolStateMachine) ProcessEpochSetup(epochSetup *flow.EpochSetup) (bool, error)
- func (_m *ProtocolStateMachine) TransitionToNextEpoch() error
- func (_m *ProtocolStateMachine) View() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProtocolStateMachine ¶
ProtocolStateMachine is an autogenerated mock type for the ProtocolStateMachine type
func NewProtocolStateMachine ¶
func NewProtocolStateMachine(t mockConstructorTestingTNewProtocolStateMachine) *ProtocolStateMachine
NewProtocolStateMachine creates a new instance of ProtocolStateMachine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ProtocolStateMachine) Build ¶
func (_m *ProtocolStateMachine) Build() (*flow.ProtocolStateEntry, flow.Identifier, bool)
Build provides a mock function with given fields:
func (*ProtocolStateMachine) EjectIdentity ¶
func (_m *ProtocolStateMachine) EjectIdentity(nodeID flow.Identifier) error
EjectIdentity provides a mock function with given fields: nodeID
func (*ProtocolStateMachine) ParentState ¶
func (_m *ProtocolStateMachine) ParentState() *flow.RichProtocolStateEntry
ParentState provides a mock function with given fields:
func (*ProtocolStateMachine) ProcessEpochCommit ¶
func (_m *ProtocolStateMachine) ProcessEpochCommit(epochCommit *flow.EpochCommit) (bool, error)
ProcessEpochCommit provides a mock function with given fields: epochCommit
func (*ProtocolStateMachine) ProcessEpochSetup ¶
func (_m *ProtocolStateMachine) ProcessEpochSetup(epochSetup *flow.EpochSetup) (bool, error)
ProcessEpochSetup provides a mock function with given fields: epochSetup
func (*ProtocolStateMachine) TransitionToNextEpoch ¶
func (_m *ProtocolStateMachine) TransitionToNextEpoch() error
TransitionToNextEpoch provides a mock function with given fields:
func (*ProtocolStateMachine) View ¶
func (_m *ProtocolStateMachine) View() uint64
View provides a mock function with given fields: