Documentation
¶
Index ¶
- type BlockProducer
- type BlockProducer_Expecter
- type BlockProducer_MakeBlockProposal_Call
- func (_c *BlockProducer_MakeBlockProposal_Call) Return(proposalHeader *flow.ProposalHeader, err error) *BlockProducer_MakeBlockProposal_Call
- func (_c *BlockProducer_MakeBlockProposal_Call) Run(...) *BlockProducer_MakeBlockProposal_Call
- func (_c *BlockProducer_MakeBlockProposal_Call) RunAndReturn(...) *BlockProducer_MakeBlockProposal_Call
- type BlockSignerDecoder
- type BlockSignerDecoder_DecodeSignerIDs_Call
- func (_c *BlockSignerDecoder_DecodeSignerIDs_Call) Return(identifierList flow.IdentifierList, err error) *BlockSignerDecoder_DecodeSignerIDs_Call
- func (_c *BlockSignerDecoder_DecodeSignerIDs_Call) Run(run func(header *flow.Header)) *BlockSignerDecoder_DecodeSignerIDs_Call
- func (_c *BlockSignerDecoder_DecodeSignerIDs_Call) RunAndReturn(run func(header *flow.Header) (flow.IdentifierList, error)) *BlockSignerDecoder_DecodeSignerIDs_Call
- type BlockSignerDecoder_Expecter
- type CommunicatorConsumer
- func (_m *CommunicatorConsumer) EXPECT() *CommunicatorConsumer_Expecter
- func (_mock *CommunicatorConsumer) OnOwnProposal(proposal *flow.ProposalHeader, targetPublicationTime time.Time)
- func (_mock *CommunicatorConsumer) OnOwnTimeout(timeout *model.TimeoutObject)
- func (_mock *CommunicatorConsumer) OnOwnVote(vote *model.Vote, recipientID flow.Identifier)
- type CommunicatorConsumer_Expecter
- func (_e *CommunicatorConsumer_Expecter) OnOwnProposal(proposal interface{}, targetPublicationTime interface{}) *CommunicatorConsumer_OnOwnProposal_Call
- func (_e *CommunicatorConsumer_Expecter) OnOwnTimeout(timeout interface{}) *CommunicatorConsumer_OnOwnTimeout_Call
- func (_e *CommunicatorConsumer_Expecter) OnOwnVote(vote interface{}, recipientID interface{}) *CommunicatorConsumer_OnOwnVote_Call
- type CommunicatorConsumer_OnOwnProposal_Call
- func (_c *CommunicatorConsumer_OnOwnProposal_Call) Return() *CommunicatorConsumer_OnOwnProposal_Call
- func (_c *CommunicatorConsumer_OnOwnProposal_Call) Run(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *CommunicatorConsumer_OnOwnProposal_Call
- func (_c *CommunicatorConsumer_OnOwnProposal_Call) RunAndReturn(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *CommunicatorConsumer_OnOwnProposal_Call
- type CommunicatorConsumer_OnOwnTimeout_Call
- func (_c *CommunicatorConsumer_OnOwnTimeout_Call) Return() *CommunicatorConsumer_OnOwnTimeout_Call
- func (_c *CommunicatorConsumer_OnOwnTimeout_Call) Run(run func(timeout *model.TimeoutObject)) *CommunicatorConsumer_OnOwnTimeout_Call
- func (_c *CommunicatorConsumer_OnOwnTimeout_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *CommunicatorConsumer_OnOwnTimeout_Call
- type CommunicatorConsumer_OnOwnVote_Call
- func (_c *CommunicatorConsumer_OnOwnVote_Call) Return() *CommunicatorConsumer_OnOwnVote_Call
- func (_c *CommunicatorConsumer_OnOwnVote_Call) Run(run func(vote *model.Vote, recipientID flow.Identifier)) *CommunicatorConsumer_OnOwnVote_Call
- func (_c *CommunicatorConsumer_OnOwnVote_Call) RunAndReturn(run func(vote *model.Vote, recipientID flow.Identifier)) *CommunicatorConsumer_OnOwnVote_Call
- type Consumer
- func (_m *Consumer) EXPECT() *Consumer_Expecter
- func (_mock *Consumer) OnBlockIncorporated(block *model.Block)
- func (_mock *Consumer) OnCurrentViewDetails(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)
- func (_mock *Consumer) OnDoubleProposeDetected(block *model.Block, block1 *model.Block)
- func (_mock *Consumer) OnEventProcessed()
- func (_mock *Consumer) OnFinalizedBlock(block *model.Block)
- func (_mock *Consumer) OnInvalidBlockDetected(err flow.Slashable[model.InvalidProposalError])
- func (_mock *Consumer) OnLocalTimeout(currentView uint64)
- func (_mock *Consumer) OnOwnProposal(proposal *flow.ProposalHeader, targetPublicationTime time.Time)
- func (_mock *Consumer) OnOwnTimeout(timeout *model.TimeoutObject)
- func (_mock *Consumer) OnOwnVote(vote *model.Vote, recipientID flow.Identifier)
- func (_mock *Consumer) OnPartialTc(currentView uint64, partialTc *hotstuff.PartialTcCreated)
- func (_mock *Consumer) OnQcTriggeredViewChange(oldView uint64, newView uint64, qc *flow.QuorumCertificate)
- func (_mock *Consumer) OnReceiveProposal(currentView uint64, proposal *model.SignedProposal)
- func (_mock *Consumer) OnReceiveQc(currentView uint64, qc *flow.QuorumCertificate)
- func (_mock *Consumer) OnReceiveTc(currentView uint64, tc *flow.TimeoutCertificate)
- func (_mock *Consumer) OnStart(currentView uint64)
- func (_mock *Consumer) OnStartingTimeout(timerInfo model.TimerInfo)
- func (_mock *Consumer) OnTcTriggeredViewChange(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)
- func (_mock *Consumer) OnViewChange(oldView uint64, newView uint64)
- type Consumer_Expecter
- func (_e *Consumer_Expecter) OnBlockIncorporated(block interface{}) *Consumer_OnBlockIncorporated_Call
- func (_e *Consumer_Expecter) OnCurrentViewDetails(currentView interface{}, finalizedView interface{}, currentLeader interface{}) *Consumer_OnCurrentViewDetails_Call
- func (_e *Consumer_Expecter) OnDoubleProposeDetected(block interface{}, block1 interface{}) *Consumer_OnDoubleProposeDetected_Call
- func (_e *Consumer_Expecter) OnEventProcessed() *Consumer_OnEventProcessed_Call
- func (_e *Consumer_Expecter) OnFinalizedBlock(block interface{}) *Consumer_OnFinalizedBlock_Call
- func (_e *Consumer_Expecter) OnInvalidBlockDetected(err interface{}) *Consumer_OnInvalidBlockDetected_Call
- func (_e *Consumer_Expecter) OnLocalTimeout(currentView interface{}) *Consumer_OnLocalTimeout_Call
- func (_e *Consumer_Expecter) OnOwnProposal(proposal interface{}, targetPublicationTime interface{}) *Consumer_OnOwnProposal_Call
- func (_e *Consumer_Expecter) OnOwnTimeout(timeout interface{}) *Consumer_OnOwnTimeout_Call
- func (_e *Consumer_Expecter) OnOwnVote(vote interface{}, recipientID interface{}) *Consumer_OnOwnVote_Call
- func (_e *Consumer_Expecter) OnPartialTc(currentView interface{}, partialTc interface{}) *Consumer_OnPartialTc_Call
- func (_e *Consumer_Expecter) OnQcTriggeredViewChange(oldView interface{}, newView interface{}, qc interface{}) *Consumer_OnQcTriggeredViewChange_Call
- func (_e *Consumer_Expecter) OnReceiveProposal(currentView interface{}, proposal interface{}) *Consumer_OnReceiveProposal_Call
- func (_e *Consumer_Expecter) OnReceiveQc(currentView interface{}, qc interface{}) *Consumer_OnReceiveQc_Call
- func (_e *Consumer_Expecter) OnReceiveTc(currentView interface{}, tc interface{}) *Consumer_OnReceiveTc_Call
- func (_e *Consumer_Expecter) OnStart(currentView interface{}) *Consumer_OnStart_Call
- func (_e *Consumer_Expecter) OnStartingTimeout(timerInfo interface{}) *Consumer_OnStartingTimeout_Call
- func (_e *Consumer_Expecter) OnTcTriggeredViewChange(oldView interface{}, newView interface{}, tc interface{}) *Consumer_OnTcTriggeredViewChange_Call
- func (_e *Consumer_Expecter) OnViewChange(oldView interface{}, newView interface{}) *Consumer_OnViewChange_Call
- type Consumer_OnBlockIncorporated_Call
- func (_c *Consumer_OnBlockIncorporated_Call) Return() *Consumer_OnBlockIncorporated_Call
- func (_c *Consumer_OnBlockIncorporated_Call) Run(run func(block *model.Block)) *Consumer_OnBlockIncorporated_Call
- func (_c *Consumer_OnBlockIncorporated_Call) RunAndReturn(run func(block *model.Block)) *Consumer_OnBlockIncorporated_Call
- type Consumer_OnCurrentViewDetails_Call
- type Consumer_OnDoubleProposeDetected_Call
- func (_c *Consumer_OnDoubleProposeDetected_Call) Return() *Consumer_OnDoubleProposeDetected_Call
- func (_c *Consumer_OnDoubleProposeDetected_Call) Run(run func(block *model.Block, block1 *model.Block)) *Consumer_OnDoubleProposeDetected_Call
- func (_c *Consumer_OnDoubleProposeDetected_Call) RunAndReturn(run func(block *model.Block, block1 *model.Block)) *Consumer_OnDoubleProposeDetected_Call
- type Consumer_OnEventProcessed_Call
- type Consumer_OnFinalizedBlock_Call
- func (_c *Consumer_OnFinalizedBlock_Call) Return() *Consumer_OnFinalizedBlock_Call
- func (_c *Consumer_OnFinalizedBlock_Call) Run(run func(block *model.Block)) *Consumer_OnFinalizedBlock_Call
- func (_c *Consumer_OnFinalizedBlock_Call) RunAndReturn(run func(block *model.Block)) *Consumer_OnFinalizedBlock_Call
- type Consumer_OnInvalidBlockDetected_Call
- func (_c *Consumer_OnInvalidBlockDetected_Call) Return() *Consumer_OnInvalidBlockDetected_Call
- func (_c *Consumer_OnInvalidBlockDetected_Call) Run(run func(err flow.Slashable[model.InvalidProposalError])) *Consumer_OnInvalidBlockDetected_Call
- func (_c *Consumer_OnInvalidBlockDetected_Call) RunAndReturn(run func(err flow.Slashable[model.InvalidProposalError])) *Consumer_OnInvalidBlockDetected_Call
- type Consumer_OnLocalTimeout_Call
- type Consumer_OnOwnProposal_Call
- func (_c *Consumer_OnOwnProposal_Call) Return() *Consumer_OnOwnProposal_Call
- func (_c *Consumer_OnOwnProposal_Call) Run(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *Consumer_OnOwnProposal_Call
- func (_c *Consumer_OnOwnProposal_Call) RunAndReturn(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *Consumer_OnOwnProposal_Call
- type Consumer_OnOwnTimeout_Call
- func (_c *Consumer_OnOwnTimeout_Call) Return() *Consumer_OnOwnTimeout_Call
- func (_c *Consumer_OnOwnTimeout_Call) Run(run func(timeout *model.TimeoutObject)) *Consumer_OnOwnTimeout_Call
- func (_c *Consumer_OnOwnTimeout_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *Consumer_OnOwnTimeout_Call
- type Consumer_OnOwnVote_Call
- func (_c *Consumer_OnOwnVote_Call) Return() *Consumer_OnOwnVote_Call
- func (_c *Consumer_OnOwnVote_Call) Run(run func(vote *model.Vote, recipientID flow.Identifier)) *Consumer_OnOwnVote_Call
- func (_c *Consumer_OnOwnVote_Call) RunAndReturn(run func(vote *model.Vote, recipientID flow.Identifier)) *Consumer_OnOwnVote_Call
- type Consumer_OnPartialTc_Call
- func (_c *Consumer_OnPartialTc_Call) Return() *Consumer_OnPartialTc_Call
- func (_c *Consumer_OnPartialTc_Call) Run(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *Consumer_OnPartialTc_Call
- func (_c *Consumer_OnPartialTc_Call) RunAndReturn(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *Consumer_OnPartialTc_Call
- type Consumer_OnQcTriggeredViewChange_Call
- func (_c *Consumer_OnQcTriggeredViewChange_Call) Return() *Consumer_OnQcTriggeredViewChange_Call
- func (_c *Consumer_OnQcTriggeredViewChange_Call) Run(run func(oldView uint64, newView uint64, qc *flow.QuorumCertificate)) *Consumer_OnQcTriggeredViewChange_Call
- func (_c *Consumer_OnQcTriggeredViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64, qc *flow.QuorumCertificate)) *Consumer_OnQcTriggeredViewChange_Call
- type Consumer_OnReceiveProposal_Call
- func (_c *Consumer_OnReceiveProposal_Call) Return() *Consumer_OnReceiveProposal_Call
- func (_c *Consumer_OnReceiveProposal_Call) Run(run func(currentView uint64, proposal *model.SignedProposal)) *Consumer_OnReceiveProposal_Call
- func (_c *Consumer_OnReceiveProposal_Call) RunAndReturn(run func(currentView uint64, proposal *model.SignedProposal)) *Consumer_OnReceiveProposal_Call
- type Consumer_OnReceiveQc_Call
- func (_c *Consumer_OnReceiveQc_Call) Return() *Consumer_OnReceiveQc_Call
- func (_c *Consumer_OnReceiveQc_Call) Run(run func(currentView uint64, qc *flow.QuorumCertificate)) *Consumer_OnReceiveQc_Call
- func (_c *Consumer_OnReceiveQc_Call) RunAndReturn(run func(currentView uint64, qc *flow.QuorumCertificate)) *Consumer_OnReceiveQc_Call
- type Consumer_OnReceiveTc_Call
- func (_c *Consumer_OnReceiveTc_Call) Return() *Consumer_OnReceiveTc_Call
- func (_c *Consumer_OnReceiveTc_Call) Run(run func(currentView uint64, tc *flow.TimeoutCertificate)) *Consumer_OnReceiveTc_Call
- func (_c *Consumer_OnReceiveTc_Call) RunAndReturn(run func(currentView uint64, tc *flow.TimeoutCertificate)) *Consumer_OnReceiveTc_Call
- type Consumer_OnStart_Call
- type Consumer_OnStartingTimeout_Call
- func (_c *Consumer_OnStartingTimeout_Call) Return() *Consumer_OnStartingTimeout_Call
- func (_c *Consumer_OnStartingTimeout_Call) Run(run func(timerInfo model.TimerInfo)) *Consumer_OnStartingTimeout_Call
- func (_c *Consumer_OnStartingTimeout_Call) RunAndReturn(run func(timerInfo model.TimerInfo)) *Consumer_OnStartingTimeout_Call
- type Consumer_OnTcTriggeredViewChange_Call
- func (_c *Consumer_OnTcTriggeredViewChange_Call) Return() *Consumer_OnTcTriggeredViewChange_Call
- func (_c *Consumer_OnTcTriggeredViewChange_Call) Run(run func(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)) *Consumer_OnTcTriggeredViewChange_Call
- func (_c *Consumer_OnTcTriggeredViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)) *Consumer_OnTcTriggeredViewChange_Call
- type Consumer_OnViewChange_Call
- func (_c *Consumer_OnViewChange_Call) Return() *Consumer_OnViewChange_Call
- func (_c *Consumer_OnViewChange_Call) Run(run func(oldView uint64, newView uint64)) *Consumer_OnViewChange_Call
- func (_c *Consumer_OnViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64)) *Consumer_OnViewChange_Call
- type DKG
- func (_m *DKG) EXPECT() *DKG_Expecter
- func (_mock *DKG) GroupKey() crypto.PublicKey
- func (_mock *DKG) Index(nodeID flow.Identifier) (uint, error)
- func (_mock *DKG) KeyShare(nodeID flow.Identifier) (crypto.PublicKey, error)
- func (_mock *DKG) KeyShares() []crypto.PublicKey
- func (_mock *DKG) NodeID(index uint) (flow.Identifier, error)
- func (_mock *DKG) Size() uint
- type DKG_Expecter
- func (_e *DKG_Expecter) GroupKey() *DKG_GroupKey_Call
- func (_e *DKG_Expecter) Index(nodeID interface{}) *DKG_Index_Call
- func (_e *DKG_Expecter) KeyShare(nodeID interface{}) *DKG_KeyShare_Call
- func (_e *DKG_Expecter) KeyShares() *DKG_KeyShares_Call
- func (_e *DKG_Expecter) NodeID(index interface{}) *DKG_NodeID_Call
- func (_e *DKG_Expecter) Size() *DKG_Size_Call
- type DKG_GroupKey_Call
- type DKG_Index_Call
- type DKG_KeyShare_Call
- func (_c *DKG_KeyShare_Call) Return(publicKey crypto.PublicKey, err error) *DKG_KeyShare_Call
- func (_c *DKG_KeyShare_Call) Run(run func(nodeID flow.Identifier)) *DKG_KeyShare_Call
- func (_c *DKG_KeyShare_Call) RunAndReturn(run func(nodeID flow.Identifier) (crypto.PublicKey, error)) *DKG_KeyShare_Call
- type DKG_KeyShares_Call
- type DKG_NodeID_Call
- type DKG_Size_Call
- type DynamicCommittee
- func (_mock *DynamicCommittee) DKG(view uint64) (hotstuff.DKG, error)
- func (_m *DynamicCommittee) EXPECT() *DynamicCommittee_Expecter
- func (_mock *DynamicCommittee) IdentitiesByBlock(blockID flow.Identifier) (flow.IdentityList, error)
- func (_mock *DynamicCommittee) IdentitiesByEpoch(view uint64) (flow.IdentitySkeletonList, error)
- func (_mock *DynamicCommittee) IdentityByBlock(blockID flow.Identifier, participantID flow.Identifier) (*flow.Identity, error)
- func (_mock *DynamicCommittee) IdentityByEpoch(view uint64, participantID flow.Identifier) (*flow.IdentitySkeleton, error)
- func (_mock *DynamicCommittee) LeaderForView(view uint64) (flow.Identifier, error)
- func (_mock *DynamicCommittee) QuorumThresholdForView(view uint64) (uint64, error)
- func (_mock *DynamicCommittee) Self() flow.Identifier
- func (_mock *DynamicCommittee) TimeoutThresholdForView(view uint64) (uint64, error)
- type DynamicCommittee_DKG_Call
- func (_c *DynamicCommittee_DKG_Call) Return(dKG hotstuff.DKG, err error) *DynamicCommittee_DKG_Call
- func (_c *DynamicCommittee_DKG_Call) Run(run func(view uint64)) *DynamicCommittee_DKG_Call
- func (_c *DynamicCommittee_DKG_Call) RunAndReturn(run func(view uint64) (hotstuff.DKG, error)) *DynamicCommittee_DKG_Call
- type DynamicCommittee_Expecter
- func (_e *DynamicCommittee_Expecter) DKG(view interface{}) *DynamicCommittee_DKG_Call
- func (_e *DynamicCommittee_Expecter) IdentitiesByBlock(blockID interface{}) *DynamicCommittee_IdentitiesByBlock_Call
- func (_e *DynamicCommittee_Expecter) IdentitiesByEpoch(view interface{}) *DynamicCommittee_IdentitiesByEpoch_Call
- func (_e *DynamicCommittee_Expecter) IdentityByBlock(blockID interface{}, participantID interface{}) *DynamicCommittee_IdentityByBlock_Call
- func (_e *DynamicCommittee_Expecter) IdentityByEpoch(view interface{}, participantID interface{}) *DynamicCommittee_IdentityByEpoch_Call
- func (_e *DynamicCommittee_Expecter) LeaderForView(view interface{}) *DynamicCommittee_LeaderForView_Call
- func (_e *DynamicCommittee_Expecter) QuorumThresholdForView(view interface{}) *DynamicCommittee_QuorumThresholdForView_Call
- func (_e *DynamicCommittee_Expecter) Self() *DynamicCommittee_Self_Call
- func (_e *DynamicCommittee_Expecter) TimeoutThresholdForView(view interface{}) *DynamicCommittee_TimeoutThresholdForView_Call
- type DynamicCommittee_IdentitiesByBlock_Call
- func (_c *DynamicCommittee_IdentitiesByBlock_Call) Return(v flow.IdentityList, err error) *DynamicCommittee_IdentitiesByBlock_Call
- func (_c *DynamicCommittee_IdentitiesByBlock_Call) Run(run func(blockID flow.Identifier)) *DynamicCommittee_IdentitiesByBlock_Call
- func (_c *DynamicCommittee_IdentitiesByBlock_Call) RunAndReturn(run func(blockID flow.Identifier) (flow.IdentityList, error)) *DynamicCommittee_IdentitiesByBlock_Call
- type DynamicCommittee_IdentitiesByEpoch_Call
- func (_c *DynamicCommittee_IdentitiesByEpoch_Call) Return(v flow.IdentitySkeletonList, err error) *DynamicCommittee_IdentitiesByEpoch_Call
- func (_c *DynamicCommittee_IdentitiesByEpoch_Call) Run(run func(view uint64)) *DynamicCommittee_IdentitiesByEpoch_Call
- func (_c *DynamicCommittee_IdentitiesByEpoch_Call) RunAndReturn(run func(view uint64) (flow.IdentitySkeletonList, error)) *DynamicCommittee_IdentitiesByEpoch_Call
- type DynamicCommittee_IdentityByBlock_Call
- func (_c *DynamicCommittee_IdentityByBlock_Call) Return(identity *flow.Identity, err error) *DynamicCommittee_IdentityByBlock_Call
- func (_c *DynamicCommittee_IdentityByBlock_Call) Run(run func(blockID flow.Identifier, participantID flow.Identifier)) *DynamicCommittee_IdentityByBlock_Call
- func (_c *DynamicCommittee_IdentityByBlock_Call) RunAndReturn(...) *DynamicCommittee_IdentityByBlock_Call
- type DynamicCommittee_IdentityByEpoch_Call
- func (_c *DynamicCommittee_IdentityByEpoch_Call) Return(identitySkeleton *flow.IdentitySkeleton, err error) *DynamicCommittee_IdentityByEpoch_Call
- func (_c *DynamicCommittee_IdentityByEpoch_Call) Run(run func(view uint64, participantID flow.Identifier)) *DynamicCommittee_IdentityByEpoch_Call
- func (_c *DynamicCommittee_IdentityByEpoch_Call) RunAndReturn(...) *DynamicCommittee_IdentityByEpoch_Call
- type DynamicCommittee_LeaderForView_Call
- func (_c *DynamicCommittee_LeaderForView_Call) Return(identifier flow.Identifier, err error) *DynamicCommittee_LeaderForView_Call
- func (_c *DynamicCommittee_LeaderForView_Call) Run(run func(view uint64)) *DynamicCommittee_LeaderForView_Call
- func (_c *DynamicCommittee_LeaderForView_Call) RunAndReturn(run func(view uint64) (flow.Identifier, error)) *DynamicCommittee_LeaderForView_Call
- type DynamicCommittee_QuorumThresholdForView_Call
- func (_c *DynamicCommittee_QuorumThresholdForView_Call) Return(v uint64, err error) *DynamicCommittee_QuorumThresholdForView_Call
- func (_c *DynamicCommittee_QuorumThresholdForView_Call) Run(run func(view uint64)) *DynamicCommittee_QuorumThresholdForView_Call
- func (_c *DynamicCommittee_QuorumThresholdForView_Call) RunAndReturn(run func(view uint64) (uint64, error)) *DynamicCommittee_QuorumThresholdForView_Call
- type DynamicCommittee_Self_Call
- type DynamicCommittee_TimeoutThresholdForView_Call
- func (_c *DynamicCommittee_TimeoutThresholdForView_Call) Return(v uint64, err error) *DynamicCommittee_TimeoutThresholdForView_Call
- func (_c *DynamicCommittee_TimeoutThresholdForView_Call) Run(run func(view uint64)) *DynamicCommittee_TimeoutThresholdForView_Call
- func (_c *DynamicCommittee_TimeoutThresholdForView_Call) RunAndReturn(run func(view uint64) (uint64, error)) *DynamicCommittee_TimeoutThresholdForView_Call
- type EventHandler
- func (_m *EventHandler) EXPECT() *EventHandler_Expecter
- func (_mock *EventHandler) OnLocalTimeout() error
- func (_mock *EventHandler) OnPartialTcCreated(partialTC *hotstuff.PartialTcCreated) error
- func (_mock *EventHandler) OnReceiveProposal(proposal *model.SignedProposal) error
- func (_mock *EventHandler) OnReceiveQc(qc *flow.QuorumCertificate) error
- func (_mock *EventHandler) OnReceiveTc(tc *flow.TimeoutCertificate) error
- func (_mock *EventHandler) Start(ctx context.Context) error
- func (_mock *EventHandler) TimeoutChannel() <-chan time.Time
- type EventHandler_Expecter
- func (_e *EventHandler_Expecter) OnLocalTimeout() *EventHandler_OnLocalTimeout_Call
- func (_e *EventHandler_Expecter) OnPartialTcCreated(partialTC interface{}) *EventHandler_OnPartialTcCreated_Call
- func (_e *EventHandler_Expecter) OnReceiveProposal(proposal interface{}) *EventHandler_OnReceiveProposal_Call
- func (_e *EventHandler_Expecter) OnReceiveQc(qc interface{}) *EventHandler_OnReceiveQc_Call
- func (_e *EventHandler_Expecter) OnReceiveTc(tc interface{}) *EventHandler_OnReceiveTc_Call
- func (_e *EventHandler_Expecter) Start(ctx interface{}) *EventHandler_Start_Call
- func (_e *EventHandler_Expecter) TimeoutChannel() *EventHandler_TimeoutChannel_Call
- type EventHandler_OnLocalTimeout_Call
- type EventHandler_OnPartialTcCreated_Call
- func (_c *EventHandler_OnPartialTcCreated_Call) Return(err error) *EventHandler_OnPartialTcCreated_Call
- func (_c *EventHandler_OnPartialTcCreated_Call) Run(run func(partialTC *hotstuff.PartialTcCreated)) *EventHandler_OnPartialTcCreated_Call
- func (_c *EventHandler_OnPartialTcCreated_Call) RunAndReturn(run func(partialTC *hotstuff.PartialTcCreated) error) *EventHandler_OnPartialTcCreated_Call
- type EventHandler_OnReceiveProposal_Call
- func (_c *EventHandler_OnReceiveProposal_Call) Return(err error) *EventHandler_OnReceiveProposal_Call
- func (_c *EventHandler_OnReceiveProposal_Call) Run(run func(proposal *model.SignedProposal)) *EventHandler_OnReceiveProposal_Call
- func (_c *EventHandler_OnReceiveProposal_Call) RunAndReturn(run func(proposal *model.SignedProposal) error) *EventHandler_OnReceiveProposal_Call
- type EventHandler_OnReceiveQc_Call
- func (_c *EventHandler_OnReceiveQc_Call) Return(err error) *EventHandler_OnReceiveQc_Call
- func (_c *EventHandler_OnReceiveQc_Call) Run(run func(qc *flow.QuorumCertificate)) *EventHandler_OnReceiveQc_Call
- func (_c *EventHandler_OnReceiveQc_Call) RunAndReturn(run func(qc *flow.QuorumCertificate) error) *EventHandler_OnReceiveQc_Call
- type EventHandler_OnReceiveTc_Call
- func (_c *EventHandler_OnReceiveTc_Call) Return(err error) *EventHandler_OnReceiveTc_Call
- func (_c *EventHandler_OnReceiveTc_Call) Run(run func(tc *flow.TimeoutCertificate)) *EventHandler_OnReceiveTc_Call
- func (_c *EventHandler_OnReceiveTc_Call) RunAndReturn(run func(tc *flow.TimeoutCertificate) error) *EventHandler_OnReceiveTc_Call
- type EventHandler_Start_Call
- type EventHandler_TimeoutChannel_Call
- func (_c *EventHandler_TimeoutChannel_Call) Return(timeCh <-chan time.Time) *EventHandler_TimeoutChannel_Call
- func (_c *EventHandler_TimeoutChannel_Call) Run(run func()) *EventHandler_TimeoutChannel_Call
- func (_c *EventHandler_TimeoutChannel_Call) RunAndReturn(run func() <-chan time.Time) *EventHandler_TimeoutChannel_Call
- type EventLoop
- func (_mock *EventLoop) Done() <-chan struct{}
- func (_m *EventLoop) EXPECT() *EventLoop_Expecter
- func (_mock *EventLoop) OnNewQcDiscovered(certificate *flow.QuorumCertificate)
- func (_mock *EventLoop) OnNewTcDiscovered(certificate *flow.TimeoutCertificate)
- func (_mock *EventLoop) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, ...)
- func (_mock *EventLoop) OnQcConstructedFromVotes(quorumCertificate *flow.QuorumCertificate)
- func (_mock *EventLoop) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate)
- func (_mock *EventLoop) OnTimeoutProcessed(timeout *model.TimeoutObject)
- func (_mock *EventLoop) OnVoteProcessed(vote *model.Vote)
- func (_mock *EventLoop) Ready() <-chan struct{}
- func (_mock *EventLoop) Start(signalerContext irrecoverable.SignalerContext)
- func (_mock *EventLoop) SubmitProposal(proposal *model.SignedProposal)
- type EventLoop_Done_Call
- type EventLoop_Expecter
- func (_e *EventLoop_Expecter) Done() *EventLoop_Done_Call
- func (_e *EventLoop_Expecter) OnNewQcDiscovered(certificate interface{}) *EventLoop_OnNewQcDiscovered_Call
- func (_e *EventLoop_Expecter) OnNewTcDiscovered(certificate interface{}) *EventLoop_OnNewTcDiscovered_Call
- func (_e *EventLoop_Expecter) OnPartialTcCreated(view interface{}, newestQC interface{}, lastViewTC interface{}) *EventLoop_OnPartialTcCreated_Call
- func (_e *EventLoop_Expecter) OnQcConstructedFromVotes(quorumCertificate interface{}) *EventLoop_OnQcConstructedFromVotes_Call
- func (_e *EventLoop_Expecter) OnTcConstructedFromTimeouts(certificate interface{}) *EventLoop_OnTcConstructedFromTimeouts_Call
- func (_e *EventLoop_Expecter) OnTimeoutProcessed(timeout interface{}) *EventLoop_OnTimeoutProcessed_Call
- func (_e *EventLoop_Expecter) OnVoteProcessed(vote interface{}) *EventLoop_OnVoteProcessed_Call
- func (_e *EventLoop_Expecter) Ready() *EventLoop_Ready_Call
- func (_e *EventLoop_Expecter) Start(signalerContext interface{}) *EventLoop_Start_Call
- func (_e *EventLoop_Expecter) SubmitProposal(proposal interface{}) *EventLoop_SubmitProposal_Call
- type EventLoop_OnNewQcDiscovered_Call
- func (_c *EventLoop_OnNewQcDiscovered_Call) Return() *EventLoop_OnNewQcDiscovered_Call
- func (_c *EventLoop_OnNewQcDiscovered_Call) Run(run func(certificate *flow.QuorumCertificate)) *EventLoop_OnNewQcDiscovered_Call
- func (_c *EventLoop_OnNewQcDiscovered_Call) RunAndReturn(run func(certificate *flow.QuorumCertificate)) *EventLoop_OnNewQcDiscovered_Call
- type EventLoop_OnNewTcDiscovered_Call
- func (_c *EventLoop_OnNewTcDiscovered_Call) Return() *EventLoop_OnNewTcDiscovered_Call
- func (_c *EventLoop_OnNewTcDiscovered_Call) Run(run func(certificate *flow.TimeoutCertificate)) *EventLoop_OnNewTcDiscovered_Call
- func (_c *EventLoop_OnNewTcDiscovered_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *EventLoop_OnNewTcDiscovered_Call
- type EventLoop_OnPartialTcCreated_Call
- func (_c *EventLoop_OnPartialTcCreated_Call) Return() *EventLoop_OnPartialTcCreated_Call
- func (_c *EventLoop_OnPartialTcCreated_Call) Run(run func(view uint64, newestQC *flow.QuorumCertificate, ...)) *EventLoop_OnPartialTcCreated_Call
- func (_c *EventLoop_OnPartialTcCreated_Call) RunAndReturn(run func(view uint64, newestQC *flow.QuorumCertificate, ...)) *EventLoop_OnPartialTcCreated_Call
- type EventLoop_OnQcConstructedFromVotes_Call
- func (_c *EventLoop_OnQcConstructedFromVotes_Call) Return() *EventLoop_OnQcConstructedFromVotes_Call
- func (_c *EventLoop_OnQcConstructedFromVotes_Call) Run(run func(quorumCertificate *flow.QuorumCertificate)) *EventLoop_OnQcConstructedFromVotes_Call
- func (_c *EventLoop_OnQcConstructedFromVotes_Call) RunAndReturn(run func(quorumCertificate *flow.QuorumCertificate)) *EventLoop_OnQcConstructedFromVotes_Call
- type EventLoop_OnTcConstructedFromTimeouts_Call
- func (_c *EventLoop_OnTcConstructedFromTimeouts_Call) Return() *EventLoop_OnTcConstructedFromTimeouts_Call
- func (_c *EventLoop_OnTcConstructedFromTimeouts_Call) Run(run func(certificate *flow.TimeoutCertificate)) *EventLoop_OnTcConstructedFromTimeouts_Call
- func (_c *EventLoop_OnTcConstructedFromTimeouts_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *EventLoop_OnTcConstructedFromTimeouts_Call
- type EventLoop_OnTimeoutProcessed_Call
- func (_c *EventLoop_OnTimeoutProcessed_Call) Return() *EventLoop_OnTimeoutProcessed_Call
- func (_c *EventLoop_OnTimeoutProcessed_Call) Run(run func(timeout *model.TimeoutObject)) *EventLoop_OnTimeoutProcessed_Call
- func (_c *EventLoop_OnTimeoutProcessed_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *EventLoop_OnTimeoutProcessed_Call
- type EventLoop_OnVoteProcessed_Call
- func (_c *EventLoop_OnVoteProcessed_Call) Return() *EventLoop_OnVoteProcessed_Call
- func (_c *EventLoop_OnVoteProcessed_Call) Run(run func(vote *model.Vote)) *EventLoop_OnVoteProcessed_Call
- func (_c *EventLoop_OnVoteProcessed_Call) RunAndReturn(run func(vote *model.Vote)) *EventLoop_OnVoteProcessed_Call
- type EventLoop_Ready_Call
- type EventLoop_Start_Call
- func (_c *EventLoop_Start_Call) Return() *EventLoop_Start_Call
- func (_c *EventLoop_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *EventLoop_Start_Call
- func (_c *EventLoop_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *EventLoop_Start_Call
- type EventLoop_SubmitProposal_Call
- func (_c *EventLoop_SubmitProposal_Call) Return() *EventLoop_SubmitProposal_Call
- func (_c *EventLoop_SubmitProposal_Call) Run(run func(proposal *model.SignedProposal)) *EventLoop_SubmitProposal_Call
- func (_c *EventLoop_SubmitProposal_Call) RunAndReturn(run func(proposal *model.SignedProposal)) *EventLoop_SubmitProposal_Call
- type FinalizationConsumer
- type FinalizationConsumer_Expecter
- type FinalizationConsumer_OnBlockIncorporated_Call
- func (_c *FinalizationConsumer_OnBlockIncorporated_Call) Return() *FinalizationConsumer_OnBlockIncorporated_Call
- func (_c *FinalizationConsumer_OnBlockIncorporated_Call) Run(run func(block *model.Block)) *FinalizationConsumer_OnBlockIncorporated_Call
- func (_c *FinalizationConsumer_OnBlockIncorporated_Call) RunAndReturn(run func(block *model.Block)) *FinalizationConsumer_OnBlockIncorporated_Call
- type FinalizationConsumer_OnFinalizedBlock_Call
- func (_c *FinalizationConsumer_OnFinalizedBlock_Call) Return() *FinalizationConsumer_OnFinalizedBlock_Call
- func (_c *FinalizationConsumer_OnFinalizedBlock_Call) Run(run func(block *model.Block)) *FinalizationConsumer_OnFinalizedBlock_Call
- func (_c *FinalizationConsumer_OnFinalizedBlock_Call) RunAndReturn(run func(block *model.Block)) *FinalizationConsumer_OnFinalizedBlock_Call
- type FinalizationRegistrar
- type FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call
- func (_c *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) Return() *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call
- func (_c *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) Run(run func(consumer func(block *model.Block))) *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call
- func (_c *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) RunAndReturn(run func(consumer func(block *model.Block))) *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call
- type FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call
- func (_c *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) Return() *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call
- func (_c *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) Run(run func(consumer func(block *model.Block))) *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call
- func (_c *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) RunAndReturn(run func(consumer func(block *model.Block))) *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call
- type FinalizationRegistrar_Expecter
- func (_e *FinalizationRegistrar_Expecter) AddOnBlockFinalizedConsumer(consumer interface{}) *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call
- func (_e *FinalizationRegistrar_Expecter) AddOnBlockIncorporatedConsumer(consumer interface{}) *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call
- type FollowerConsumer
- func (_m *FollowerConsumer) EXPECT() *FollowerConsumer_Expecter
- func (_mock *FollowerConsumer) OnBlockIncorporated(block *model.Block)
- func (_mock *FollowerConsumer) OnDoubleProposeDetected(block *model.Block, block1 *model.Block)
- func (_mock *FollowerConsumer) OnFinalizedBlock(block *model.Block)
- func (_mock *FollowerConsumer) OnInvalidBlockDetected(err flow.Slashable[model.InvalidProposalError])
- type FollowerConsumer_Expecter
- func (_e *FollowerConsumer_Expecter) OnBlockIncorporated(block interface{}) *FollowerConsumer_OnBlockIncorporated_Call
- func (_e *FollowerConsumer_Expecter) OnDoubleProposeDetected(block interface{}, block1 interface{}) *FollowerConsumer_OnDoubleProposeDetected_Call
- func (_e *FollowerConsumer_Expecter) OnFinalizedBlock(block interface{}) *FollowerConsumer_OnFinalizedBlock_Call
- func (_e *FollowerConsumer_Expecter) OnInvalidBlockDetected(err interface{}) *FollowerConsumer_OnInvalidBlockDetected_Call
- type FollowerConsumer_OnBlockIncorporated_Call
- func (_c *FollowerConsumer_OnBlockIncorporated_Call) Return() *FollowerConsumer_OnBlockIncorporated_Call
- func (_c *FollowerConsumer_OnBlockIncorporated_Call) Run(run func(block *model.Block)) *FollowerConsumer_OnBlockIncorporated_Call
- func (_c *FollowerConsumer_OnBlockIncorporated_Call) RunAndReturn(run func(block *model.Block)) *FollowerConsumer_OnBlockIncorporated_Call
- type FollowerConsumer_OnDoubleProposeDetected_Call
- func (_c *FollowerConsumer_OnDoubleProposeDetected_Call) Return() *FollowerConsumer_OnDoubleProposeDetected_Call
- func (_c *FollowerConsumer_OnDoubleProposeDetected_Call) Run(run func(block *model.Block, block1 *model.Block)) *FollowerConsumer_OnDoubleProposeDetected_Call
- func (_c *FollowerConsumer_OnDoubleProposeDetected_Call) RunAndReturn(run func(block *model.Block, block1 *model.Block)) *FollowerConsumer_OnDoubleProposeDetected_Call
- type FollowerConsumer_OnFinalizedBlock_Call
- func (_c *FollowerConsumer_OnFinalizedBlock_Call) Return() *FollowerConsumer_OnFinalizedBlock_Call
- func (_c *FollowerConsumer_OnFinalizedBlock_Call) Run(run func(block *model.Block)) *FollowerConsumer_OnFinalizedBlock_Call
- func (_c *FollowerConsumer_OnFinalizedBlock_Call) RunAndReturn(run func(block *model.Block)) *FollowerConsumer_OnFinalizedBlock_Call
- type FollowerConsumer_OnInvalidBlockDetected_Call
- func (_c *FollowerConsumer_OnInvalidBlockDetected_Call) Return() *FollowerConsumer_OnInvalidBlockDetected_Call
- func (_c *FollowerConsumer_OnInvalidBlockDetected_Call) Run(run func(err flow.Slashable[model.InvalidProposalError])) *FollowerConsumer_OnInvalidBlockDetected_Call
- func (_c *FollowerConsumer_OnInvalidBlockDetected_Call) RunAndReturn(run func(err flow.Slashable[model.InvalidProposalError])) *FollowerConsumer_OnInvalidBlockDetected_Call
- type Forks
- func (_mock *Forks) AddCertifiedBlock(certifiedBlock *model.CertifiedBlock) error
- func (_mock *Forks) AddValidatedBlock(proposal *model.Block) error
- func (_m *Forks) EXPECT() *Forks_Expecter
- func (_mock *Forks) FinalityProof() (*hotstuff.FinalityProof, bool)
- func (_mock *Forks) FinalizedBlock() *model.Block
- func (_mock *Forks) FinalizedView() uint64
- func (_mock *Forks) GetBlock(blockID flow.Identifier) (*model.Block, bool)
- func (_mock *Forks) GetBlocksForView(view uint64) []*model.Block
- type Forks_AddCertifiedBlock_Call
- func (_c *Forks_AddCertifiedBlock_Call) Return(err error) *Forks_AddCertifiedBlock_Call
- func (_c *Forks_AddCertifiedBlock_Call) Run(run func(certifiedBlock *model.CertifiedBlock)) *Forks_AddCertifiedBlock_Call
- func (_c *Forks_AddCertifiedBlock_Call) RunAndReturn(run func(certifiedBlock *model.CertifiedBlock) error) *Forks_AddCertifiedBlock_Call
- type Forks_AddValidatedBlock_Call
- func (_c *Forks_AddValidatedBlock_Call) Return(err error) *Forks_AddValidatedBlock_Call
- func (_c *Forks_AddValidatedBlock_Call) Run(run func(proposal *model.Block)) *Forks_AddValidatedBlock_Call
- func (_c *Forks_AddValidatedBlock_Call) RunAndReturn(run func(proposal *model.Block) error) *Forks_AddValidatedBlock_Call
- type Forks_Expecter
- func (_e *Forks_Expecter) AddCertifiedBlock(certifiedBlock interface{}) *Forks_AddCertifiedBlock_Call
- func (_e *Forks_Expecter) AddValidatedBlock(proposal interface{}) *Forks_AddValidatedBlock_Call
- func (_e *Forks_Expecter) FinalityProof() *Forks_FinalityProof_Call
- func (_e *Forks_Expecter) FinalizedBlock() *Forks_FinalizedBlock_Call
- func (_e *Forks_Expecter) FinalizedView() *Forks_FinalizedView_Call
- func (_e *Forks_Expecter) GetBlock(blockID interface{}) *Forks_GetBlock_Call
- func (_e *Forks_Expecter) GetBlocksForView(view interface{}) *Forks_GetBlocksForView_Call
- type Forks_FinalityProof_Call
- func (_c *Forks_FinalityProof_Call) Return(finalityProof *hotstuff.FinalityProof, b bool) *Forks_FinalityProof_Call
- func (_c *Forks_FinalityProof_Call) Run(run func()) *Forks_FinalityProof_Call
- func (_c *Forks_FinalityProof_Call) RunAndReturn(run func() (*hotstuff.FinalityProof, bool)) *Forks_FinalityProof_Call
- type Forks_FinalizedBlock_Call
- type Forks_FinalizedView_Call
- type Forks_GetBlock_Call
- type Forks_GetBlocksForView_Call
- func (_c *Forks_GetBlocksForView_Call) Return(blocks []*model.Block) *Forks_GetBlocksForView_Call
- func (_c *Forks_GetBlocksForView_Call) Run(run func(view uint64)) *Forks_GetBlocksForView_Call
- func (_c *Forks_GetBlocksForView_Call) RunAndReturn(run func(view uint64) []*model.Block) *Forks_GetBlocksForView_Call
- type PaceMaker
- func (_mock *PaceMaker) CurView() uint64
- func (_m *PaceMaker) EXPECT() *PaceMaker_Expecter
- func (_mock *PaceMaker) LastViewTC() *flow.TimeoutCertificate
- func (_mock *PaceMaker) NewestQC() *flow.QuorumCertificate
- func (_mock *PaceMaker) ProcessQC(qc *flow.QuorumCertificate) (*model.NewViewEvent, error)
- func (_mock *PaceMaker) ProcessTC(tc *flow.TimeoutCertificate) (*model.NewViewEvent, error)
- func (_mock *PaceMaker) Start(ctx context.Context)
- func (_mock *PaceMaker) TargetPublicationTime(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier) time.Time
- func (_mock *PaceMaker) TimeoutChannel() <-chan time.Time
- type PaceMaker_CurView_Call
- type PaceMaker_Expecter
- func (_e *PaceMaker_Expecter) CurView() *PaceMaker_CurView_Call
- func (_e *PaceMaker_Expecter) LastViewTC() *PaceMaker_LastViewTC_Call
- func (_e *PaceMaker_Expecter) NewestQC() *PaceMaker_NewestQC_Call
- func (_e *PaceMaker_Expecter) ProcessQC(qc interface{}) *PaceMaker_ProcessQC_Call
- func (_e *PaceMaker_Expecter) ProcessTC(tc interface{}) *PaceMaker_ProcessTC_Call
- func (_e *PaceMaker_Expecter) Start(ctx interface{}) *PaceMaker_Start_Call
- func (_e *PaceMaker_Expecter) TargetPublicationTime(proposalView interface{}, timeViewEntered interface{}, ...) *PaceMaker_TargetPublicationTime_Call
- func (_e *PaceMaker_Expecter) TimeoutChannel() *PaceMaker_TimeoutChannel_Call
- type PaceMaker_LastViewTC_Call
- func (_c *PaceMaker_LastViewTC_Call) Return(timeoutCertificate *flow.TimeoutCertificate) *PaceMaker_LastViewTC_Call
- func (_c *PaceMaker_LastViewTC_Call) Run(run func()) *PaceMaker_LastViewTC_Call
- func (_c *PaceMaker_LastViewTC_Call) RunAndReturn(run func() *flow.TimeoutCertificate) *PaceMaker_LastViewTC_Call
- type PaceMaker_NewestQC_Call
- type PaceMaker_ProcessQC_Call
- func (_c *PaceMaker_ProcessQC_Call) Return(newViewEvent *model.NewViewEvent, err error) *PaceMaker_ProcessQC_Call
- func (_c *PaceMaker_ProcessQC_Call) Run(run func(qc *flow.QuorumCertificate)) *PaceMaker_ProcessQC_Call
- func (_c *PaceMaker_ProcessQC_Call) RunAndReturn(run func(qc *flow.QuorumCertificate) (*model.NewViewEvent, error)) *PaceMaker_ProcessQC_Call
- type PaceMaker_ProcessTC_Call
- func (_c *PaceMaker_ProcessTC_Call) Return(newViewEvent *model.NewViewEvent, err error) *PaceMaker_ProcessTC_Call
- func (_c *PaceMaker_ProcessTC_Call) Run(run func(tc *flow.TimeoutCertificate)) *PaceMaker_ProcessTC_Call
- func (_c *PaceMaker_ProcessTC_Call) RunAndReturn(run func(tc *flow.TimeoutCertificate) (*model.NewViewEvent, error)) *PaceMaker_ProcessTC_Call
- type PaceMaker_Start_Call
- type PaceMaker_TargetPublicationTime_Call
- func (_c *PaceMaker_TargetPublicationTime_Call) Return(time1 time.Time) *PaceMaker_TargetPublicationTime_Call
- func (_c *PaceMaker_TargetPublicationTime_Call) Run(...) *PaceMaker_TargetPublicationTime_Call
- func (_c *PaceMaker_TargetPublicationTime_Call) RunAndReturn(...) *PaceMaker_TargetPublicationTime_Call
- type PaceMaker_TimeoutChannel_Call
- func (_c *PaceMaker_TimeoutChannel_Call) Return(timeCh <-chan time.Time) *PaceMaker_TimeoutChannel_Call
- func (_c *PaceMaker_TimeoutChannel_Call) Run(run func()) *PaceMaker_TimeoutChannel_Call
- func (_c *PaceMaker_TimeoutChannel_Call) RunAndReturn(run func() <-chan time.Time) *PaceMaker_TimeoutChannel_Call
- type Packer
- type Packer_Expecter
- type Packer_Pack_Call
- type Packer_Unpack_Call
- func (_c *Packer_Unpack_Call) Return(blockSignatureData *hotstuff.BlockSignatureData, err error) *Packer_Unpack_Call
- func (_c *Packer_Unpack_Call) Run(run func(signerIdentities flow.IdentitySkeletonList, sigData []byte)) *Packer_Unpack_Call
- func (_c *Packer_Unpack_Call) RunAndReturn(...) *Packer_Unpack_Call
- type ParticipantConsumer
- func (_m *ParticipantConsumer) EXPECT() *ParticipantConsumer_Expecter
- func (_mock *ParticipantConsumer) OnCurrentViewDetails(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)
- func (_mock *ParticipantConsumer) OnEventProcessed()
- func (_mock *ParticipantConsumer) OnLocalTimeout(currentView uint64)
- func (_mock *ParticipantConsumer) OnPartialTc(currentView uint64, partialTc *hotstuff.PartialTcCreated)
- func (_mock *ParticipantConsumer) OnQcTriggeredViewChange(oldView uint64, newView uint64, qc *flow.QuorumCertificate)
- func (_mock *ParticipantConsumer) OnReceiveProposal(currentView uint64, proposal *model.SignedProposal)
- func (_mock *ParticipantConsumer) OnReceiveQc(currentView uint64, qc *flow.QuorumCertificate)
- func (_mock *ParticipantConsumer) OnReceiveTc(currentView uint64, tc *flow.TimeoutCertificate)
- func (_mock *ParticipantConsumer) OnStart(currentView uint64)
- func (_mock *ParticipantConsumer) OnStartingTimeout(timerInfo model.TimerInfo)
- func (_mock *ParticipantConsumer) OnTcTriggeredViewChange(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)
- func (_mock *ParticipantConsumer) OnViewChange(oldView uint64, newView uint64)
- type ParticipantConsumer_Expecter
- func (_e *ParticipantConsumer_Expecter) OnCurrentViewDetails(currentView interface{}, finalizedView interface{}, currentLeader interface{}) *ParticipantConsumer_OnCurrentViewDetails_Call
- func (_e *ParticipantConsumer_Expecter) OnEventProcessed() *ParticipantConsumer_OnEventProcessed_Call
- func (_e *ParticipantConsumer_Expecter) OnLocalTimeout(currentView interface{}) *ParticipantConsumer_OnLocalTimeout_Call
- func (_e *ParticipantConsumer_Expecter) OnPartialTc(currentView interface{}, partialTc interface{}) *ParticipantConsumer_OnPartialTc_Call
- func (_e *ParticipantConsumer_Expecter) OnQcTriggeredViewChange(oldView interface{}, newView interface{}, qc interface{}) *ParticipantConsumer_OnQcTriggeredViewChange_Call
- func (_e *ParticipantConsumer_Expecter) OnReceiveProposal(currentView interface{}, proposal interface{}) *ParticipantConsumer_OnReceiveProposal_Call
- func (_e *ParticipantConsumer_Expecter) OnReceiveQc(currentView interface{}, qc interface{}) *ParticipantConsumer_OnReceiveQc_Call
- func (_e *ParticipantConsumer_Expecter) OnReceiveTc(currentView interface{}, tc interface{}) *ParticipantConsumer_OnReceiveTc_Call
- func (_e *ParticipantConsumer_Expecter) OnStart(currentView interface{}) *ParticipantConsumer_OnStart_Call
- func (_e *ParticipantConsumer_Expecter) OnStartingTimeout(timerInfo interface{}) *ParticipantConsumer_OnStartingTimeout_Call
- func (_e *ParticipantConsumer_Expecter) OnTcTriggeredViewChange(oldView interface{}, newView interface{}, tc interface{}) *ParticipantConsumer_OnTcTriggeredViewChange_Call
- func (_e *ParticipantConsumer_Expecter) OnViewChange(oldView interface{}, newView interface{}) *ParticipantConsumer_OnViewChange_Call
- type ParticipantConsumer_OnCurrentViewDetails_Call
- func (_c *ParticipantConsumer_OnCurrentViewDetails_Call) Return() *ParticipantConsumer_OnCurrentViewDetails_Call
- func (_c *ParticipantConsumer_OnCurrentViewDetails_Call) Run(...) *ParticipantConsumer_OnCurrentViewDetails_Call
- func (_c *ParticipantConsumer_OnCurrentViewDetails_Call) RunAndReturn(...) *ParticipantConsumer_OnCurrentViewDetails_Call
- type ParticipantConsumer_OnEventProcessed_Call
- func (_c *ParticipantConsumer_OnEventProcessed_Call) Return() *ParticipantConsumer_OnEventProcessed_Call
- func (_c *ParticipantConsumer_OnEventProcessed_Call) Run(run func()) *ParticipantConsumer_OnEventProcessed_Call
- func (_c *ParticipantConsumer_OnEventProcessed_Call) RunAndReturn(run func()) *ParticipantConsumer_OnEventProcessed_Call
- type ParticipantConsumer_OnLocalTimeout_Call
- func (_c *ParticipantConsumer_OnLocalTimeout_Call) Return() *ParticipantConsumer_OnLocalTimeout_Call
- func (_c *ParticipantConsumer_OnLocalTimeout_Call) Run(run func(currentView uint64)) *ParticipantConsumer_OnLocalTimeout_Call
- func (_c *ParticipantConsumer_OnLocalTimeout_Call) RunAndReturn(run func(currentView uint64)) *ParticipantConsumer_OnLocalTimeout_Call
- type ParticipantConsumer_OnPartialTc_Call
- func (_c *ParticipantConsumer_OnPartialTc_Call) Return() *ParticipantConsumer_OnPartialTc_Call
- func (_c *ParticipantConsumer_OnPartialTc_Call) Run(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *ParticipantConsumer_OnPartialTc_Call
- func (_c *ParticipantConsumer_OnPartialTc_Call) RunAndReturn(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *ParticipantConsumer_OnPartialTc_Call
- type ParticipantConsumer_OnQcTriggeredViewChange_Call
- func (_c *ParticipantConsumer_OnQcTriggeredViewChange_Call) Return() *ParticipantConsumer_OnQcTriggeredViewChange_Call
- func (_c *ParticipantConsumer_OnQcTriggeredViewChange_Call) Run(run func(oldView uint64, newView uint64, qc *flow.QuorumCertificate)) *ParticipantConsumer_OnQcTriggeredViewChange_Call
- func (_c *ParticipantConsumer_OnQcTriggeredViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64, qc *flow.QuorumCertificate)) *ParticipantConsumer_OnQcTriggeredViewChange_Call
- type ParticipantConsumer_OnReceiveProposal_Call
- func (_c *ParticipantConsumer_OnReceiveProposal_Call) Return() *ParticipantConsumer_OnReceiveProposal_Call
- func (_c *ParticipantConsumer_OnReceiveProposal_Call) Run(run func(currentView uint64, proposal *model.SignedProposal)) *ParticipantConsumer_OnReceiveProposal_Call
- func (_c *ParticipantConsumer_OnReceiveProposal_Call) RunAndReturn(run func(currentView uint64, proposal *model.SignedProposal)) *ParticipantConsumer_OnReceiveProposal_Call
- type ParticipantConsumer_OnReceiveQc_Call
- func (_c *ParticipantConsumer_OnReceiveQc_Call) Return() *ParticipantConsumer_OnReceiveQc_Call
- func (_c *ParticipantConsumer_OnReceiveQc_Call) Run(run func(currentView uint64, qc *flow.QuorumCertificate)) *ParticipantConsumer_OnReceiveQc_Call
- func (_c *ParticipantConsumer_OnReceiveQc_Call) RunAndReturn(run func(currentView uint64, qc *flow.QuorumCertificate)) *ParticipantConsumer_OnReceiveQc_Call
- type ParticipantConsumer_OnReceiveTc_Call
- func (_c *ParticipantConsumer_OnReceiveTc_Call) Return() *ParticipantConsumer_OnReceiveTc_Call
- func (_c *ParticipantConsumer_OnReceiveTc_Call) Run(run func(currentView uint64, tc *flow.TimeoutCertificate)) *ParticipantConsumer_OnReceiveTc_Call
- func (_c *ParticipantConsumer_OnReceiveTc_Call) RunAndReturn(run func(currentView uint64, tc *flow.TimeoutCertificate)) *ParticipantConsumer_OnReceiveTc_Call
- type ParticipantConsumer_OnStart_Call
- func (_c *ParticipantConsumer_OnStart_Call) Return() *ParticipantConsumer_OnStart_Call
- func (_c *ParticipantConsumer_OnStart_Call) Run(run func(currentView uint64)) *ParticipantConsumer_OnStart_Call
- func (_c *ParticipantConsumer_OnStart_Call) RunAndReturn(run func(currentView uint64)) *ParticipantConsumer_OnStart_Call
- type ParticipantConsumer_OnStartingTimeout_Call
- func (_c *ParticipantConsumer_OnStartingTimeout_Call) Return() *ParticipantConsumer_OnStartingTimeout_Call
- func (_c *ParticipantConsumer_OnStartingTimeout_Call) Run(run func(timerInfo model.TimerInfo)) *ParticipantConsumer_OnStartingTimeout_Call
- func (_c *ParticipantConsumer_OnStartingTimeout_Call) RunAndReturn(run func(timerInfo model.TimerInfo)) *ParticipantConsumer_OnStartingTimeout_Call
- type ParticipantConsumer_OnTcTriggeredViewChange_Call
- func (_c *ParticipantConsumer_OnTcTriggeredViewChange_Call) Return() *ParticipantConsumer_OnTcTriggeredViewChange_Call
- func (_c *ParticipantConsumer_OnTcTriggeredViewChange_Call) Run(run func(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)) *ParticipantConsumer_OnTcTriggeredViewChange_Call
- func (_c *ParticipantConsumer_OnTcTriggeredViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)) *ParticipantConsumer_OnTcTriggeredViewChange_Call
- type ParticipantConsumer_OnViewChange_Call
- func (_c *ParticipantConsumer_OnViewChange_Call) Return() *ParticipantConsumer_OnViewChange_Call
- func (_c *ParticipantConsumer_OnViewChange_Call) Run(run func(oldView uint64, newView uint64)) *ParticipantConsumer_OnViewChange_Call
- func (_c *ParticipantConsumer_OnViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64)) *ParticipantConsumer_OnViewChange_Call
- type Persister
- func (_m *Persister) EXPECT() *Persister_Expecter
- func (_mock *Persister) GetLivenessData() (*hotstuff.LivenessData, error)
- func (_mock *Persister) GetSafetyData() (*hotstuff.SafetyData, error)
- func (_mock *Persister) PutLivenessData(livenessData *hotstuff.LivenessData) error
- func (_mock *Persister) PutSafetyData(safetyData *hotstuff.SafetyData) error
- type PersisterReader
- type PersisterReader_Expecter
- type PersisterReader_GetLivenessData_Call
- func (_c *PersisterReader_GetLivenessData_Call) Return(livenessData *hotstuff.LivenessData, err error) *PersisterReader_GetLivenessData_Call
- func (_c *PersisterReader_GetLivenessData_Call) Run(run func()) *PersisterReader_GetLivenessData_Call
- func (_c *PersisterReader_GetLivenessData_Call) RunAndReturn(run func() (*hotstuff.LivenessData, error)) *PersisterReader_GetLivenessData_Call
- type PersisterReader_GetSafetyData_Call
- func (_c *PersisterReader_GetSafetyData_Call) Return(safetyData *hotstuff.SafetyData, err error) *PersisterReader_GetSafetyData_Call
- func (_c *PersisterReader_GetSafetyData_Call) Run(run func()) *PersisterReader_GetSafetyData_Call
- func (_c *PersisterReader_GetSafetyData_Call) RunAndReturn(run func() (*hotstuff.SafetyData, error)) *PersisterReader_GetSafetyData_Call
- type Persister_Expecter
- func (_e *Persister_Expecter) GetLivenessData() *Persister_GetLivenessData_Call
- func (_e *Persister_Expecter) GetSafetyData() *Persister_GetSafetyData_Call
- func (_e *Persister_Expecter) PutLivenessData(livenessData interface{}) *Persister_PutLivenessData_Call
- func (_e *Persister_Expecter) PutSafetyData(safetyData interface{}) *Persister_PutSafetyData_Call
- type Persister_GetLivenessData_Call
- func (_c *Persister_GetLivenessData_Call) Return(livenessData *hotstuff.LivenessData, err error) *Persister_GetLivenessData_Call
- func (_c *Persister_GetLivenessData_Call) Run(run func()) *Persister_GetLivenessData_Call
- func (_c *Persister_GetLivenessData_Call) RunAndReturn(run func() (*hotstuff.LivenessData, error)) *Persister_GetLivenessData_Call
- type Persister_GetSafetyData_Call
- func (_c *Persister_GetSafetyData_Call) Return(safetyData *hotstuff.SafetyData, err error) *Persister_GetSafetyData_Call
- func (_c *Persister_GetSafetyData_Call) Run(run func()) *Persister_GetSafetyData_Call
- func (_c *Persister_GetSafetyData_Call) RunAndReturn(run func() (*hotstuff.SafetyData, error)) *Persister_GetSafetyData_Call
- type Persister_PutLivenessData_Call
- func (_c *Persister_PutLivenessData_Call) Return(err error) *Persister_PutLivenessData_Call
- func (_c *Persister_PutLivenessData_Call) Run(run func(livenessData *hotstuff.LivenessData)) *Persister_PutLivenessData_Call
- func (_c *Persister_PutLivenessData_Call) RunAndReturn(run func(livenessData *hotstuff.LivenessData) error) *Persister_PutLivenessData_Call
- type Persister_PutSafetyData_Call
- func (_c *Persister_PutSafetyData_Call) Return(err error) *Persister_PutSafetyData_Call
- func (_c *Persister_PutSafetyData_Call) Run(run func(safetyData *hotstuff.SafetyData)) *Persister_PutSafetyData_Call
- func (_c *Persister_PutSafetyData_Call) RunAndReturn(run func(safetyData *hotstuff.SafetyData) error) *Persister_PutSafetyData_Call
- type ProposalDurationProvider
- type ProposalDurationProvider_Expecter
- type ProposalDurationProvider_TargetPublicationTime_Call
- func (_c *ProposalDurationProvider_TargetPublicationTime_Call) Return(time1 time.Time) *ProposalDurationProvider_TargetPublicationTime_Call
- func (_c *ProposalDurationProvider_TargetPublicationTime_Call) Run(...) *ProposalDurationProvider_TargetPublicationTime_Call
- func (_c *ProposalDurationProvider_TargetPublicationTime_Call) RunAndReturn(...) *ProposalDurationProvider_TargetPublicationTime_Call
- type ProposalViolationConsumer
- type ProposalViolationConsumer_Expecter
- func (_e *ProposalViolationConsumer_Expecter) OnDoubleProposeDetected(block interface{}, block1 interface{}) *ProposalViolationConsumer_OnDoubleProposeDetected_Call
- func (_e *ProposalViolationConsumer_Expecter) OnInvalidBlockDetected(err interface{}) *ProposalViolationConsumer_OnInvalidBlockDetected_Call
- type ProposalViolationConsumer_OnDoubleProposeDetected_Call
- func (_c *ProposalViolationConsumer_OnDoubleProposeDetected_Call) Return() *ProposalViolationConsumer_OnDoubleProposeDetected_Call
- func (_c *ProposalViolationConsumer_OnDoubleProposeDetected_Call) Run(run func(block *model.Block, block1 *model.Block)) *ProposalViolationConsumer_OnDoubleProposeDetected_Call
- func (_c *ProposalViolationConsumer_OnDoubleProposeDetected_Call) RunAndReturn(run func(block *model.Block, block1 *model.Block)) *ProposalViolationConsumer_OnDoubleProposeDetected_Call
- type ProposalViolationConsumer_OnInvalidBlockDetected_Call
- func (_c *ProposalViolationConsumer_OnInvalidBlockDetected_Call) Return() *ProposalViolationConsumer_OnInvalidBlockDetected_Call
- func (_c *ProposalViolationConsumer_OnInvalidBlockDetected_Call) Run(run func(err flow.Slashable[model.InvalidProposalError])) *ProposalViolationConsumer_OnInvalidBlockDetected_Call
- func (_c *ProposalViolationConsumer_OnInvalidBlockDetected_Call) RunAndReturn(run func(err flow.Slashable[model.InvalidProposalError])) *ProposalViolationConsumer_OnInvalidBlockDetected_Call
- type RandomBeaconInspector
- func (_m *RandomBeaconInspector) EXPECT() *RandomBeaconInspector_Expecter
- func (_mock *RandomBeaconInspector) EnoughShares() bool
- func (_mock *RandomBeaconInspector) Reconstruct() (crypto.Signature, error)
- func (_mock *RandomBeaconInspector) TrustedAdd(signerIndex int, share crypto.Signature) (bool, error)
- func (_mock *RandomBeaconInspector) Verify(signerIndex int, share crypto.Signature) error
- type RandomBeaconInspector_EnoughShares_Call
- func (_c *RandomBeaconInspector_EnoughShares_Call) Return(b bool) *RandomBeaconInspector_EnoughShares_Call
- func (_c *RandomBeaconInspector_EnoughShares_Call) Run(run func()) *RandomBeaconInspector_EnoughShares_Call
- func (_c *RandomBeaconInspector_EnoughShares_Call) RunAndReturn(run func() bool) *RandomBeaconInspector_EnoughShares_Call
- type RandomBeaconInspector_Expecter
- func (_e *RandomBeaconInspector_Expecter) EnoughShares() *RandomBeaconInspector_EnoughShares_Call
- func (_e *RandomBeaconInspector_Expecter) Reconstruct() *RandomBeaconInspector_Reconstruct_Call
- func (_e *RandomBeaconInspector_Expecter) TrustedAdd(signerIndex interface{}, share interface{}) *RandomBeaconInspector_TrustedAdd_Call
- func (_e *RandomBeaconInspector_Expecter) Verify(signerIndex interface{}, share interface{}) *RandomBeaconInspector_Verify_Call
- type RandomBeaconInspector_Reconstruct_Call
- func (_c *RandomBeaconInspector_Reconstruct_Call) Return(signature crypto.Signature, err error) *RandomBeaconInspector_Reconstruct_Call
- func (_c *RandomBeaconInspector_Reconstruct_Call) Run(run func()) *RandomBeaconInspector_Reconstruct_Call
- func (_c *RandomBeaconInspector_Reconstruct_Call) RunAndReturn(run func() (crypto.Signature, error)) *RandomBeaconInspector_Reconstruct_Call
- type RandomBeaconInspector_TrustedAdd_Call
- func (_c *RandomBeaconInspector_TrustedAdd_Call) Return(enoughshares bool, exception error) *RandomBeaconInspector_TrustedAdd_Call
- func (_c *RandomBeaconInspector_TrustedAdd_Call) Run(run func(signerIndex int, share crypto.Signature)) *RandomBeaconInspector_TrustedAdd_Call
- func (_c *RandomBeaconInspector_TrustedAdd_Call) RunAndReturn(run func(signerIndex int, share crypto.Signature) (bool, error)) *RandomBeaconInspector_TrustedAdd_Call
- type RandomBeaconInspector_Verify_Call
- func (_c *RandomBeaconInspector_Verify_Call) Return(err error) *RandomBeaconInspector_Verify_Call
- func (_c *RandomBeaconInspector_Verify_Call) Run(run func(signerIndex int, share crypto.Signature)) *RandomBeaconInspector_Verify_Call
- func (_c *RandomBeaconInspector_Verify_Call) RunAndReturn(run func(signerIndex int, share crypto.Signature) error) *RandomBeaconInspector_Verify_Call
- type RandomBeaconReconstructor
- func (_m *RandomBeaconReconstructor) EXPECT() *RandomBeaconReconstructor_Expecter
- func (_mock *RandomBeaconReconstructor) EnoughShares() bool
- func (_mock *RandomBeaconReconstructor) Reconstruct() (crypto.Signature, error)
- func (_mock *RandomBeaconReconstructor) TrustedAdd(signerID flow.Identifier, sig crypto.Signature) (bool, error)
- func (_mock *RandomBeaconReconstructor) Verify(signerID flow.Identifier, sig crypto.Signature) error
- type RandomBeaconReconstructor_EnoughShares_Call
- func (_c *RandomBeaconReconstructor_EnoughShares_Call) Return(b bool) *RandomBeaconReconstructor_EnoughShares_Call
- func (_c *RandomBeaconReconstructor_EnoughShares_Call) Run(run func()) *RandomBeaconReconstructor_EnoughShares_Call
- func (_c *RandomBeaconReconstructor_EnoughShares_Call) RunAndReturn(run func() bool) *RandomBeaconReconstructor_EnoughShares_Call
- type RandomBeaconReconstructor_Expecter
- func (_e *RandomBeaconReconstructor_Expecter) EnoughShares() *RandomBeaconReconstructor_EnoughShares_Call
- func (_e *RandomBeaconReconstructor_Expecter) Reconstruct() *RandomBeaconReconstructor_Reconstruct_Call
- func (_e *RandomBeaconReconstructor_Expecter) TrustedAdd(signerID interface{}, sig interface{}) *RandomBeaconReconstructor_TrustedAdd_Call
- func (_e *RandomBeaconReconstructor_Expecter) Verify(signerID interface{}, sig interface{}) *RandomBeaconReconstructor_Verify_Call
- type RandomBeaconReconstructor_Reconstruct_Call
- func (_c *RandomBeaconReconstructor_Reconstruct_Call) Return(signature crypto.Signature, err error) *RandomBeaconReconstructor_Reconstruct_Call
- func (_c *RandomBeaconReconstructor_Reconstruct_Call) Run(run func()) *RandomBeaconReconstructor_Reconstruct_Call
- func (_c *RandomBeaconReconstructor_Reconstruct_Call) RunAndReturn(run func() (crypto.Signature, error)) *RandomBeaconReconstructor_Reconstruct_Call
- type RandomBeaconReconstructor_TrustedAdd_Call
- func (_c *RandomBeaconReconstructor_TrustedAdd_Call) Return(EnoughShares bool, err error) *RandomBeaconReconstructor_TrustedAdd_Call
- func (_c *RandomBeaconReconstructor_TrustedAdd_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature)) *RandomBeaconReconstructor_TrustedAdd_Call
- func (_c *RandomBeaconReconstructor_TrustedAdd_Call) RunAndReturn(run func(signerID flow.Identifier, sig crypto.Signature) (bool, error)) *RandomBeaconReconstructor_TrustedAdd_Call
- type RandomBeaconReconstructor_Verify_Call
- func (_c *RandomBeaconReconstructor_Verify_Call) Return(err error) *RandomBeaconReconstructor_Verify_Call
- func (_c *RandomBeaconReconstructor_Verify_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature)) *RandomBeaconReconstructor_Verify_Call
- func (_c *RandomBeaconReconstructor_Verify_Call) RunAndReturn(run func(signerID flow.Identifier, sig crypto.Signature) error) *RandomBeaconReconstructor_Verify_Call
- type Replicas
- func (_mock *Replicas) DKG(view uint64) (hotstuff.DKG, error)
- func (_m *Replicas) EXPECT() *Replicas_Expecter
- func (_mock *Replicas) IdentitiesByEpoch(view uint64) (flow.IdentitySkeletonList, error)
- func (_mock *Replicas) IdentityByEpoch(view uint64, participantID flow.Identifier) (*flow.IdentitySkeleton, error)
- func (_mock *Replicas) LeaderForView(view uint64) (flow.Identifier, error)
- func (_mock *Replicas) QuorumThresholdForView(view uint64) (uint64, error)
- func (_mock *Replicas) Self() flow.Identifier
- func (_mock *Replicas) TimeoutThresholdForView(view uint64) (uint64, error)
- type Replicas_DKG_Call
- type Replicas_Expecter
- func (_e *Replicas_Expecter) DKG(view interface{}) *Replicas_DKG_Call
- func (_e *Replicas_Expecter) IdentitiesByEpoch(view interface{}) *Replicas_IdentitiesByEpoch_Call
- func (_e *Replicas_Expecter) IdentityByEpoch(view interface{}, participantID interface{}) *Replicas_IdentityByEpoch_Call
- func (_e *Replicas_Expecter) LeaderForView(view interface{}) *Replicas_LeaderForView_Call
- func (_e *Replicas_Expecter) QuorumThresholdForView(view interface{}) *Replicas_QuorumThresholdForView_Call
- func (_e *Replicas_Expecter) Self() *Replicas_Self_Call
- func (_e *Replicas_Expecter) TimeoutThresholdForView(view interface{}) *Replicas_TimeoutThresholdForView_Call
- type Replicas_IdentitiesByEpoch_Call
- func (_c *Replicas_IdentitiesByEpoch_Call) Return(v flow.IdentitySkeletonList, err error) *Replicas_IdentitiesByEpoch_Call
- func (_c *Replicas_IdentitiesByEpoch_Call) Run(run func(view uint64)) *Replicas_IdentitiesByEpoch_Call
- func (_c *Replicas_IdentitiesByEpoch_Call) RunAndReturn(run func(view uint64) (flow.IdentitySkeletonList, error)) *Replicas_IdentitiesByEpoch_Call
- type Replicas_IdentityByEpoch_Call
- func (_c *Replicas_IdentityByEpoch_Call) Return(identitySkeleton *flow.IdentitySkeleton, err error) *Replicas_IdentityByEpoch_Call
- func (_c *Replicas_IdentityByEpoch_Call) Run(run func(view uint64, participantID flow.Identifier)) *Replicas_IdentityByEpoch_Call
- func (_c *Replicas_IdentityByEpoch_Call) RunAndReturn(...) *Replicas_IdentityByEpoch_Call
- type Replicas_LeaderForView_Call
- func (_c *Replicas_LeaderForView_Call) Return(identifier flow.Identifier, err error) *Replicas_LeaderForView_Call
- func (_c *Replicas_LeaderForView_Call) Run(run func(view uint64)) *Replicas_LeaderForView_Call
- func (_c *Replicas_LeaderForView_Call) RunAndReturn(run func(view uint64) (flow.Identifier, error)) *Replicas_LeaderForView_Call
- type Replicas_QuorumThresholdForView_Call
- func (_c *Replicas_QuorumThresholdForView_Call) Return(v uint64, err error) *Replicas_QuorumThresholdForView_Call
- func (_c *Replicas_QuorumThresholdForView_Call) Run(run func(view uint64)) *Replicas_QuorumThresholdForView_Call
- func (_c *Replicas_QuorumThresholdForView_Call) RunAndReturn(run func(view uint64) (uint64, error)) *Replicas_QuorumThresholdForView_Call
- type Replicas_Self_Call
- type Replicas_TimeoutThresholdForView_Call
- func (_c *Replicas_TimeoutThresholdForView_Call) Return(v uint64, err error) *Replicas_TimeoutThresholdForView_Call
- func (_c *Replicas_TimeoutThresholdForView_Call) Run(run func(view uint64)) *Replicas_TimeoutThresholdForView_Call
- func (_c *Replicas_TimeoutThresholdForView_Call) RunAndReturn(run func(view uint64) (uint64, error)) *Replicas_TimeoutThresholdForView_Call
- type SafetyRules
- func (_m *SafetyRules) EXPECT() *SafetyRules_Expecter
- func (_mock *SafetyRules) ProduceTimeout(curView uint64, newestQC *flow.QuorumCertificate, ...) (*model.TimeoutObject, error)
- func (_mock *SafetyRules) ProduceVote(proposal *model.SignedProposal, curView uint64) (*model.Vote, error)
- func (_mock *SafetyRules) SignOwnProposal(unsignedProposal *model.Proposal) (*model.Vote, error)
- type SafetyRules_Expecter
- func (_e *SafetyRules_Expecter) ProduceTimeout(curView interface{}, newestQC interface{}, lastViewTC interface{}) *SafetyRules_ProduceTimeout_Call
- func (_e *SafetyRules_Expecter) ProduceVote(proposal interface{}, curView interface{}) *SafetyRules_ProduceVote_Call
- func (_e *SafetyRules_Expecter) SignOwnProposal(unsignedProposal interface{}) *SafetyRules_SignOwnProposal_Call
- type SafetyRules_ProduceTimeout_Call
- func (_c *SafetyRules_ProduceTimeout_Call) Return(timeoutObject *model.TimeoutObject, err error) *SafetyRules_ProduceTimeout_Call
- func (_c *SafetyRules_ProduceTimeout_Call) Run(run func(curView uint64, newestQC *flow.QuorumCertificate, ...)) *SafetyRules_ProduceTimeout_Call
- func (_c *SafetyRules_ProduceTimeout_Call) RunAndReturn(...) *SafetyRules_ProduceTimeout_Call
- type SafetyRules_ProduceVote_Call
- func (_c *SafetyRules_ProduceVote_Call) Return(vote *model.Vote, err error) *SafetyRules_ProduceVote_Call
- func (_c *SafetyRules_ProduceVote_Call) Run(run func(proposal *model.SignedProposal, curView uint64)) *SafetyRules_ProduceVote_Call
- func (_c *SafetyRules_ProduceVote_Call) RunAndReturn(run func(proposal *model.SignedProposal, curView uint64) (*model.Vote, error)) *SafetyRules_ProduceVote_Call
- type SafetyRules_SignOwnProposal_Call
- func (_c *SafetyRules_SignOwnProposal_Call) Return(vote *model.Vote, err error) *SafetyRules_SignOwnProposal_Call
- func (_c *SafetyRules_SignOwnProposal_Call) Run(run func(unsignedProposal *model.Proposal)) *SafetyRules_SignOwnProposal_Call
- func (_c *SafetyRules_SignOwnProposal_Call) RunAndReturn(run func(unsignedProposal *model.Proposal) (*model.Vote, error)) *SafetyRules_SignOwnProposal_Call
- type Signer
- type Signer_CreateTimeout_Call
- func (_c *Signer_CreateTimeout_Call) Return(timeoutObject *model.TimeoutObject, err error) *Signer_CreateTimeout_Call
- func (_c *Signer_CreateTimeout_Call) Run(run func(curView uint64, newestQC *flow.QuorumCertificate, ...)) *Signer_CreateTimeout_Call
- func (_c *Signer_CreateTimeout_Call) RunAndReturn(...) *Signer_CreateTimeout_Call
- type Signer_CreateVote_Call
- func (_c *Signer_CreateVote_Call) Return(vote *model.Vote, err error) *Signer_CreateVote_Call
- func (_c *Signer_CreateVote_Call) Run(run func(block *model.Block)) *Signer_CreateVote_Call
- func (_c *Signer_CreateVote_Call) RunAndReturn(run func(block *model.Block) (*model.Vote, error)) *Signer_CreateVote_Call
- type Signer_Expecter
- type TimeoutAggregationConsumer
- func (_m *TimeoutAggregationConsumer) EXPECT() *TimeoutAggregationConsumer_Expecter
- func (_mock *TimeoutAggregationConsumer) OnDoubleTimeoutDetected(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)
- func (_mock *TimeoutAggregationConsumer) OnInvalidTimeoutDetected(err model.InvalidTimeoutError)
- func (_mock *TimeoutAggregationConsumer) OnNewQcDiscovered(certificate *flow.QuorumCertificate)
- func (_mock *TimeoutAggregationConsumer) OnNewTcDiscovered(certificate *flow.TimeoutCertificate)
- func (_mock *TimeoutAggregationConsumer) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, ...)
- func (_mock *TimeoutAggregationConsumer) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate)
- func (_mock *TimeoutAggregationConsumer) OnTimeoutProcessed(timeout *model.TimeoutObject)
- type TimeoutAggregationConsumer_Expecter
- func (_e *TimeoutAggregationConsumer_Expecter) OnDoubleTimeoutDetected(timeoutObject interface{}, timeoutObject1 interface{}) *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call
- func (_e *TimeoutAggregationConsumer_Expecter) OnInvalidTimeoutDetected(err interface{}) *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call
- func (_e *TimeoutAggregationConsumer_Expecter) OnNewQcDiscovered(certificate interface{}) *TimeoutAggregationConsumer_OnNewQcDiscovered_Call
- func (_e *TimeoutAggregationConsumer_Expecter) OnNewTcDiscovered(certificate interface{}) *TimeoutAggregationConsumer_OnNewTcDiscovered_Call
- func (_e *TimeoutAggregationConsumer_Expecter) OnPartialTcCreated(view interface{}, newestQC interface{}, lastViewTC interface{}) *TimeoutAggregationConsumer_OnPartialTcCreated_Call
- func (_e *TimeoutAggregationConsumer_Expecter) OnTcConstructedFromTimeouts(certificate interface{}) *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call
- func (_e *TimeoutAggregationConsumer_Expecter) OnTimeoutProcessed(timeout interface{}) *TimeoutAggregationConsumer_OnTimeoutProcessed_Call
- type TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call
- func (_c *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) Return() *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call
- func (_c *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) Run(...) *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call
- func (_c *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) RunAndReturn(...) *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call
- type TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call
- func (_c *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) Return() *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call
- func (_c *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) Run(run func(err model.InvalidTimeoutError)) *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call
- func (_c *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) RunAndReturn(run func(err model.InvalidTimeoutError)) *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call
- type TimeoutAggregationConsumer_OnNewQcDiscovered_Call
- func (_c *TimeoutAggregationConsumer_OnNewQcDiscovered_Call) Return() *TimeoutAggregationConsumer_OnNewQcDiscovered_Call
- func (_c *TimeoutAggregationConsumer_OnNewQcDiscovered_Call) Run(run func(certificate *flow.QuorumCertificate)) *TimeoutAggregationConsumer_OnNewQcDiscovered_Call
- func (_c *TimeoutAggregationConsumer_OnNewQcDiscovered_Call) RunAndReturn(run func(certificate *flow.QuorumCertificate)) *TimeoutAggregationConsumer_OnNewQcDiscovered_Call
- type TimeoutAggregationConsumer_OnNewTcDiscovered_Call
- func (_c *TimeoutAggregationConsumer_OnNewTcDiscovered_Call) Return() *TimeoutAggregationConsumer_OnNewTcDiscovered_Call
- func (_c *TimeoutAggregationConsumer_OnNewTcDiscovered_Call) Run(run func(certificate *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnNewTcDiscovered_Call
- func (_c *TimeoutAggregationConsumer_OnNewTcDiscovered_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnNewTcDiscovered_Call
- type TimeoutAggregationConsumer_OnPartialTcCreated_Call
- func (_c *TimeoutAggregationConsumer_OnPartialTcCreated_Call) Return() *TimeoutAggregationConsumer_OnPartialTcCreated_Call
- func (_c *TimeoutAggregationConsumer_OnPartialTcCreated_Call) Run(run func(view uint64, newestQC *flow.QuorumCertificate, ...)) *TimeoutAggregationConsumer_OnPartialTcCreated_Call
- func (_c *TimeoutAggregationConsumer_OnPartialTcCreated_Call) RunAndReturn(run func(view uint64, newestQC *flow.QuorumCertificate, ...)) *TimeoutAggregationConsumer_OnPartialTcCreated_Call
- type TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call
- func (_c *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) Return() *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call
- func (_c *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) Run(run func(certificate *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call
- func (_c *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call
- type TimeoutAggregationConsumer_OnTimeoutProcessed_Call
- func (_c *TimeoutAggregationConsumer_OnTimeoutProcessed_Call) Return() *TimeoutAggregationConsumer_OnTimeoutProcessed_Call
- func (_c *TimeoutAggregationConsumer_OnTimeoutProcessed_Call) Run(run func(timeout *model.TimeoutObject)) *TimeoutAggregationConsumer_OnTimeoutProcessed_Call
- func (_c *TimeoutAggregationConsumer_OnTimeoutProcessed_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *TimeoutAggregationConsumer_OnTimeoutProcessed_Call
- type TimeoutAggregationViolationConsumer
- func (_m *TimeoutAggregationViolationConsumer) EXPECT() *TimeoutAggregationViolationConsumer_Expecter
- func (_mock *TimeoutAggregationViolationConsumer) OnDoubleTimeoutDetected(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)
- func (_mock *TimeoutAggregationViolationConsumer) OnInvalidTimeoutDetected(err model.InvalidTimeoutError)
- type TimeoutAggregationViolationConsumer_Expecter
- func (_e *TimeoutAggregationViolationConsumer_Expecter) OnDoubleTimeoutDetected(timeoutObject interface{}, timeoutObject1 interface{}) *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call
- func (_e *TimeoutAggregationViolationConsumer_Expecter) OnInvalidTimeoutDetected(err interface{}) *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call
- type TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call
- func (_c *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) Return() *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call
- func (_c *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) Run(...) *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call
- func (_c *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) RunAndReturn(...) *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call
- type TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call
- func (_c *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call) Return() *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call
- func (_c *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call) Run(run func(err model.InvalidTimeoutError)) *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call
- func (_c *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call) RunAndReturn(run func(err model.InvalidTimeoutError)) *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call
- type TimeoutAggregator
- func (_mock *TimeoutAggregator) AddTimeout(timeoutObject *model.TimeoutObject)
- func (_mock *TimeoutAggregator) Done() <-chan struct{}
- func (_m *TimeoutAggregator) EXPECT() *TimeoutAggregator_Expecter
- func (_mock *TimeoutAggregator) PruneUpToView(lowestRetainedView uint64)
- func (_mock *TimeoutAggregator) Ready() <-chan struct{}
- func (_mock *TimeoutAggregator) Start(signalerContext irrecoverable.SignalerContext)
- type TimeoutAggregator_AddTimeout_Call
- func (_c *TimeoutAggregator_AddTimeout_Call) Return() *TimeoutAggregator_AddTimeout_Call
- func (_c *TimeoutAggregator_AddTimeout_Call) Run(run func(timeoutObject *model.TimeoutObject)) *TimeoutAggregator_AddTimeout_Call
- func (_c *TimeoutAggregator_AddTimeout_Call) RunAndReturn(run func(timeoutObject *model.TimeoutObject)) *TimeoutAggregator_AddTimeout_Call
- type TimeoutAggregator_Done_Call
- type TimeoutAggregator_Expecter
- func (_e *TimeoutAggregator_Expecter) AddTimeout(timeoutObject interface{}) *TimeoutAggregator_AddTimeout_Call
- func (_e *TimeoutAggregator_Expecter) Done() *TimeoutAggregator_Done_Call
- func (_e *TimeoutAggregator_Expecter) PruneUpToView(lowestRetainedView interface{}) *TimeoutAggregator_PruneUpToView_Call
- func (_e *TimeoutAggregator_Expecter) Ready() *TimeoutAggregator_Ready_Call
- func (_e *TimeoutAggregator_Expecter) Start(signalerContext interface{}) *TimeoutAggregator_Start_Call
- type TimeoutAggregator_PruneUpToView_Call
- func (_c *TimeoutAggregator_PruneUpToView_Call) Return() *TimeoutAggregator_PruneUpToView_Call
- func (_c *TimeoutAggregator_PruneUpToView_Call) Run(run func(lowestRetainedView uint64)) *TimeoutAggregator_PruneUpToView_Call
- func (_c *TimeoutAggregator_PruneUpToView_Call) RunAndReturn(run func(lowestRetainedView uint64)) *TimeoutAggregator_PruneUpToView_Call
- type TimeoutAggregator_Ready_Call
- type TimeoutAggregator_Start_Call
- func (_c *TimeoutAggregator_Start_Call) Return() *TimeoutAggregator_Start_Call
- func (_c *TimeoutAggregator_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *TimeoutAggregator_Start_Call
- func (_c *TimeoutAggregator_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *TimeoutAggregator_Start_Call
- type TimeoutCollector
- type TimeoutCollectorConsumer
- func (_m *TimeoutCollectorConsumer) EXPECT() *TimeoutCollectorConsumer_Expecter
- func (_mock *TimeoutCollectorConsumer) OnNewQcDiscovered(certificate *flow.QuorumCertificate)
- func (_mock *TimeoutCollectorConsumer) OnNewTcDiscovered(certificate *flow.TimeoutCertificate)
- func (_mock *TimeoutCollectorConsumer) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, ...)
- func (_mock *TimeoutCollectorConsumer) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate)
- func (_mock *TimeoutCollectorConsumer) OnTimeoutProcessed(timeout *model.TimeoutObject)
- type TimeoutCollectorConsumer_Expecter
- func (_e *TimeoutCollectorConsumer_Expecter) OnNewQcDiscovered(certificate interface{}) *TimeoutCollectorConsumer_OnNewQcDiscovered_Call
- func (_e *TimeoutCollectorConsumer_Expecter) OnNewTcDiscovered(certificate interface{}) *TimeoutCollectorConsumer_OnNewTcDiscovered_Call
- func (_e *TimeoutCollectorConsumer_Expecter) OnPartialTcCreated(view interface{}, newestQC interface{}, lastViewTC interface{}) *TimeoutCollectorConsumer_OnPartialTcCreated_Call
- func (_e *TimeoutCollectorConsumer_Expecter) OnTcConstructedFromTimeouts(certificate interface{}) *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call
- func (_e *TimeoutCollectorConsumer_Expecter) OnTimeoutProcessed(timeout interface{}) *TimeoutCollectorConsumer_OnTimeoutProcessed_Call
- type TimeoutCollectorConsumer_OnNewQcDiscovered_Call
- func (_c *TimeoutCollectorConsumer_OnNewQcDiscovered_Call) Return() *TimeoutCollectorConsumer_OnNewQcDiscovered_Call
- func (_c *TimeoutCollectorConsumer_OnNewQcDiscovered_Call) Run(run func(certificate *flow.QuorumCertificate)) *TimeoutCollectorConsumer_OnNewQcDiscovered_Call
- func (_c *TimeoutCollectorConsumer_OnNewQcDiscovered_Call) RunAndReturn(run func(certificate *flow.QuorumCertificate)) *TimeoutCollectorConsumer_OnNewQcDiscovered_Call
- type TimeoutCollectorConsumer_OnNewTcDiscovered_Call
- func (_c *TimeoutCollectorConsumer_OnNewTcDiscovered_Call) Return() *TimeoutCollectorConsumer_OnNewTcDiscovered_Call
- func (_c *TimeoutCollectorConsumer_OnNewTcDiscovered_Call) Run(run func(certificate *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnNewTcDiscovered_Call
- func (_c *TimeoutCollectorConsumer_OnNewTcDiscovered_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnNewTcDiscovered_Call
- type TimeoutCollectorConsumer_OnPartialTcCreated_Call
- func (_c *TimeoutCollectorConsumer_OnPartialTcCreated_Call) Return() *TimeoutCollectorConsumer_OnPartialTcCreated_Call
- func (_c *TimeoutCollectorConsumer_OnPartialTcCreated_Call) Run(run func(view uint64, newestQC *flow.QuorumCertificate, ...)) *TimeoutCollectorConsumer_OnPartialTcCreated_Call
- func (_c *TimeoutCollectorConsumer_OnPartialTcCreated_Call) RunAndReturn(run func(view uint64, newestQC *flow.QuorumCertificate, ...)) *TimeoutCollectorConsumer_OnPartialTcCreated_Call
- type TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call
- func (_c *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) Return() *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call
- func (_c *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) Run(run func(certificate *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call
- func (_c *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call
- type TimeoutCollectorConsumer_OnTimeoutProcessed_Call
- func (_c *TimeoutCollectorConsumer_OnTimeoutProcessed_Call) Return() *TimeoutCollectorConsumer_OnTimeoutProcessed_Call
- func (_c *TimeoutCollectorConsumer_OnTimeoutProcessed_Call) Run(run func(timeout *model.TimeoutObject)) *TimeoutCollectorConsumer_OnTimeoutProcessed_Call
- func (_c *TimeoutCollectorConsumer_OnTimeoutProcessed_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *TimeoutCollectorConsumer_OnTimeoutProcessed_Call
- type TimeoutCollectorFactory
- type TimeoutCollectorFactory_Create_Call
- func (_c *TimeoutCollectorFactory_Create_Call) Return(timeoutCollector hotstuff.TimeoutCollector, err error) *TimeoutCollectorFactory_Create_Call
- func (_c *TimeoutCollectorFactory_Create_Call) Run(run func(view uint64)) *TimeoutCollectorFactory_Create_Call
- func (_c *TimeoutCollectorFactory_Create_Call) RunAndReturn(run func(view uint64) (hotstuff.TimeoutCollector, error)) *TimeoutCollectorFactory_Create_Call
- type TimeoutCollectorFactory_Expecter
- type TimeoutCollector_AddTimeout_Call
- func (_c *TimeoutCollector_AddTimeout_Call) Return(err error) *TimeoutCollector_AddTimeout_Call
- func (_c *TimeoutCollector_AddTimeout_Call) Run(run func(timeoutObject *model.TimeoutObject)) *TimeoutCollector_AddTimeout_Call
- func (_c *TimeoutCollector_AddTimeout_Call) RunAndReturn(run func(timeoutObject *model.TimeoutObject) error) *TimeoutCollector_AddTimeout_Call
- type TimeoutCollector_Expecter
- type TimeoutCollector_View_Call
- type TimeoutCollectors
- type TimeoutCollectors_Expecter
- type TimeoutCollectors_GetOrCreateCollector_Call
- func (_c *TimeoutCollectors_GetOrCreateCollector_Call) Return(collector hotstuff.TimeoutCollector, created bool, err error) *TimeoutCollectors_GetOrCreateCollector_Call
- func (_c *TimeoutCollectors_GetOrCreateCollector_Call) Run(run func(view uint64)) *TimeoutCollectors_GetOrCreateCollector_Call
- func (_c *TimeoutCollectors_GetOrCreateCollector_Call) RunAndReturn(run func(view uint64) (hotstuff.TimeoutCollector, bool, error)) *TimeoutCollectors_GetOrCreateCollector_Call
- type TimeoutCollectors_PruneUpToView_Call
- func (_c *TimeoutCollectors_PruneUpToView_Call) Return() *TimeoutCollectors_PruneUpToView_Call
- func (_c *TimeoutCollectors_PruneUpToView_Call) Run(run func(lowestRetainedView uint64)) *TimeoutCollectors_PruneUpToView_Call
- func (_c *TimeoutCollectors_PruneUpToView_Call) RunAndReturn(run func(lowestRetainedView uint64)) *TimeoutCollectors_PruneUpToView_Call
- type TimeoutProcessor
- type TimeoutProcessorFactory
- type TimeoutProcessorFactory_Create_Call
- func (_c *TimeoutProcessorFactory_Create_Call) Return(timeoutProcessor hotstuff.TimeoutProcessor, err error) *TimeoutProcessorFactory_Create_Call
- func (_c *TimeoutProcessorFactory_Create_Call) Run(run func(view uint64)) *TimeoutProcessorFactory_Create_Call
- func (_c *TimeoutProcessorFactory_Create_Call) RunAndReturn(run func(view uint64) (hotstuff.TimeoutProcessor, error)) *TimeoutProcessorFactory_Create_Call
- type TimeoutProcessorFactory_Expecter
- type TimeoutProcessor_Expecter
- type TimeoutProcessor_Process_Call
- func (_c *TimeoutProcessor_Process_Call) Return(err error) *TimeoutProcessor_Process_Call
- func (_c *TimeoutProcessor_Process_Call) Run(run func(timeout *model.TimeoutObject)) *TimeoutProcessor_Process_Call
- func (_c *TimeoutProcessor_Process_Call) RunAndReturn(run func(timeout *model.TimeoutObject) error) *TimeoutProcessor_Process_Call
- type TimeoutSignatureAggregator
- func (_mock *TimeoutSignatureAggregator) Aggregate() ([]hotstuff.TimeoutSignerInfo, crypto.Signature, error)
- func (_m *TimeoutSignatureAggregator) EXPECT() *TimeoutSignatureAggregator_Expecter
- func (_mock *TimeoutSignatureAggregator) TotalWeight() uint64
- func (_mock *TimeoutSignatureAggregator) VerifyAndAdd(signerID flow.Identifier, sig crypto.Signature, newestQCView uint64) (uint64, error)
- func (_mock *TimeoutSignatureAggregator) View() uint64
- type TimeoutSignatureAggregator_Aggregate_Call
- func (_c *TimeoutSignatureAggregator_Aggregate_Call) Return(signersInfo []hotstuff.TimeoutSignerInfo, aggregatedSig crypto.Signature, ...) *TimeoutSignatureAggregator_Aggregate_Call
- func (_c *TimeoutSignatureAggregator_Aggregate_Call) Run(run func()) *TimeoutSignatureAggregator_Aggregate_Call
- func (_c *TimeoutSignatureAggregator_Aggregate_Call) RunAndReturn(run func() ([]hotstuff.TimeoutSignerInfo, crypto.Signature, error)) *TimeoutSignatureAggregator_Aggregate_Call
- type TimeoutSignatureAggregator_Expecter
- func (_e *TimeoutSignatureAggregator_Expecter) Aggregate() *TimeoutSignatureAggregator_Aggregate_Call
- func (_e *TimeoutSignatureAggregator_Expecter) TotalWeight() *TimeoutSignatureAggregator_TotalWeight_Call
- func (_e *TimeoutSignatureAggregator_Expecter) VerifyAndAdd(signerID interface{}, sig interface{}, newestQCView interface{}) *TimeoutSignatureAggregator_VerifyAndAdd_Call
- func (_e *TimeoutSignatureAggregator_Expecter) View() *TimeoutSignatureAggregator_View_Call
- type TimeoutSignatureAggregator_TotalWeight_Call
- func (_c *TimeoutSignatureAggregator_TotalWeight_Call) Return(v uint64) *TimeoutSignatureAggregator_TotalWeight_Call
- func (_c *TimeoutSignatureAggregator_TotalWeight_Call) Run(run func()) *TimeoutSignatureAggregator_TotalWeight_Call
- func (_c *TimeoutSignatureAggregator_TotalWeight_Call) RunAndReturn(run func() uint64) *TimeoutSignatureAggregator_TotalWeight_Call
- type TimeoutSignatureAggregator_VerifyAndAdd_Call
- func (_c *TimeoutSignatureAggregator_VerifyAndAdd_Call) Return(totalWeight uint64, exception error) *TimeoutSignatureAggregator_VerifyAndAdd_Call
- func (_c *TimeoutSignatureAggregator_VerifyAndAdd_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature, newestQCView uint64)) *TimeoutSignatureAggregator_VerifyAndAdd_Call
- func (_c *TimeoutSignatureAggregator_VerifyAndAdd_Call) RunAndReturn(...) *TimeoutSignatureAggregator_VerifyAndAdd_Call
- type TimeoutSignatureAggregator_View_Call
- func (_c *TimeoutSignatureAggregator_View_Call) Return(v uint64) *TimeoutSignatureAggregator_View_Call
- func (_c *TimeoutSignatureAggregator_View_Call) Run(run func()) *TimeoutSignatureAggregator_View_Call
- func (_c *TimeoutSignatureAggregator_View_Call) RunAndReturn(run func() uint64) *TimeoutSignatureAggregator_View_Call
- type Validator
- func (_m *Validator) EXPECT() *Validator_Expecter
- func (_mock *Validator) ValidateProposal(proposal *model.SignedProposal) error
- func (_mock *Validator) ValidateQC(qc *flow.QuorumCertificate) error
- func (_mock *Validator) ValidateTC(tc *flow.TimeoutCertificate) error
- func (_mock *Validator) ValidateVote(vote *model.Vote) (*flow.IdentitySkeleton, error)
- type Validator_Expecter
- func (_e *Validator_Expecter) ValidateProposal(proposal interface{}) *Validator_ValidateProposal_Call
- func (_e *Validator_Expecter) ValidateQC(qc interface{}) *Validator_ValidateQC_Call
- func (_e *Validator_Expecter) ValidateTC(tc interface{}) *Validator_ValidateTC_Call
- func (_e *Validator_Expecter) ValidateVote(vote interface{}) *Validator_ValidateVote_Call
- type Validator_ValidateProposal_Call
- func (_c *Validator_ValidateProposal_Call) Return(err error) *Validator_ValidateProposal_Call
- func (_c *Validator_ValidateProposal_Call) Run(run func(proposal *model.SignedProposal)) *Validator_ValidateProposal_Call
- func (_c *Validator_ValidateProposal_Call) RunAndReturn(run func(proposal *model.SignedProposal) error) *Validator_ValidateProposal_Call
- type Validator_ValidateQC_Call
- func (_c *Validator_ValidateQC_Call) Return(err error) *Validator_ValidateQC_Call
- func (_c *Validator_ValidateQC_Call) Run(run func(qc *flow.QuorumCertificate)) *Validator_ValidateQC_Call
- func (_c *Validator_ValidateQC_Call) RunAndReturn(run func(qc *flow.QuorumCertificate) error) *Validator_ValidateQC_Call
- type Validator_ValidateTC_Call
- func (_c *Validator_ValidateTC_Call) Return(err error) *Validator_ValidateTC_Call
- func (_c *Validator_ValidateTC_Call) Run(run func(tc *flow.TimeoutCertificate)) *Validator_ValidateTC_Call
- func (_c *Validator_ValidateTC_Call) RunAndReturn(run func(tc *flow.TimeoutCertificate) error) *Validator_ValidateTC_Call
- type Validator_ValidateVote_Call
- func (_c *Validator_ValidateVote_Call) Return(identitySkeleton *flow.IdentitySkeleton, err error) *Validator_ValidateVote_Call
- func (_c *Validator_ValidateVote_Call) Run(run func(vote *model.Vote)) *Validator_ValidateVote_Call
- func (_c *Validator_ValidateVote_Call) RunAndReturn(run func(vote *model.Vote) (*flow.IdentitySkeleton, error)) *Validator_ValidateVote_Call
- type Verifier
- func (_m *Verifier) EXPECT() *Verifier_Expecter
- func (_mock *Verifier) VerifyQC(signers flow.IdentitySkeletonList, sigData []byte, view uint64, ...) error
- func (_mock *Verifier) VerifyTC(signers flow.IdentitySkeletonList, sigData []byte, view uint64, ...) error
- func (_mock *Verifier) VerifyVote(voter *flow.IdentitySkeleton, sigData []byte, view uint64, ...) error
- type Verifier_Expecter
- func (_e *Verifier_Expecter) VerifyQC(signers interface{}, sigData interface{}, view interface{}, ...) *Verifier_VerifyQC_Call
- func (_e *Verifier_Expecter) VerifyTC(signers interface{}, sigData interface{}, view interface{}, ...) *Verifier_VerifyTC_Call
- func (_e *Verifier_Expecter) VerifyVote(voter interface{}, sigData interface{}, view interface{}, blockID interface{}) *Verifier_VerifyVote_Call
- type Verifier_VerifyQC_Call
- type Verifier_VerifyTC_Call
- type Verifier_VerifyVote_Call
- func (_c *Verifier_VerifyVote_Call) Return(err error) *Verifier_VerifyVote_Call
- func (_c *Verifier_VerifyVote_Call) Run(run func(voter *flow.IdentitySkeleton, sigData []byte, view uint64, ...)) *Verifier_VerifyVote_Call
- func (_c *Verifier_VerifyVote_Call) RunAndReturn(run func(voter *flow.IdentitySkeleton, sigData []byte, view uint64, ...) error) *Verifier_VerifyVote_Call
- type VerifyingVoteProcessor
- type VerifyingVoteProcessor_Block_Call
- func (_c *VerifyingVoteProcessor_Block_Call) Return(block *model.Block) *VerifyingVoteProcessor_Block_Call
- func (_c *VerifyingVoteProcessor_Block_Call) Run(run func()) *VerifyingVoteProcessor_Block_Call
- func (_c *VerifyingVoteProcessor_Block_Call) RunAndReturn(run func() *model.Block) *VerifyingVoteProcessor_Block_Call
- type VerifyingVoteProcessor_Expecter
- type VerifyingVoteProcessor_Process_Call
- func (_c *VerifyingVoteProcessor_Process_Call) Return(err error) *VerifyingVoteProcessor_Process_Call
- func (_c *VerifyingVoteProcessor_Process_Call) Run(run func(vote *model.Vote)) *VerifyingVoteProcessor_Process_Call
- func (_c *VerifyingVoteProcessor_Process_Call) RunAndReturn(run func(vote *model.Vote) error) *VerifyingVoteProcessor_Process_Call
- type VerifyingVoteProcessor_Status_Call
- func (_c *VerifyingVoteProcessor_Status_Call) Return(voteCollectorStatus hotstuff.VoteCollectorStatus) *VerifyingVoteProcessor_Status_Call
- func (_c *VerifyingVoteProcessor_Status_Call) Run(run func()) *VerifyingVoteProcessor_Status_Call
- func (_c *VerifyingVoteProcessor_Status_Call) RunAndReturn(run func() hotstuff.VoteCollectorStatus) *VerifyingVoteProcessor_Status_Call
- type VoteAggregationConsumer
- func (_m *VoteAggregationConsumer) EXPECT() *VoteAggregationConsumer_Expecter
- func (_mock *VoteAggregationConsumer) OnDoubleVotingDetected(vote *model.Vote, vote1 *model.Vote)
- func (_mock *VoteAggregationConsumer) OnInvalidVoteDetected(err model.InvalidVoteError)
- func (_mock *VoteAggregationConsumer) OnQcConstructedFromVotes(quorumCertificate *flow.QuorumCertificate)
- func (_mock *VoteAggregationConsumer) OnVoteForInvalidBlockDetected(vote *model.Vote, invalidProposal *model.SignedProposal)
- func (_mock *VoteAggregationConsumer) OnVoteProcessed(vote *model.Vote)
- type VoteAggregationConsumer_Expecter
- func (_e *VoteAggregationConsumer_Expecter) OnDoubleVotingDetected(vote interface{}, vote1 interface{}) *VoteAggregationConsumer_OnDoubleVotingDetected_Call
- func (_e *VoteAggregationConsumer_Expecter) OnInvalidVoteDetected(err interface{}) *VoteAggregationConsumer_OnInvalidVoteDetected_Call
- func (_e *VoteAggregationConsumer_Expecter) OnQcConstructedFromVotes(quorumCertificate interface{}) *VoteAggregationConsumer_OnQcConstructedFromVotes_Call
- func (_e *VoteAggregationConsumer_Expecter) OnVoteForInvalidBlockDetected(vote interface{}, invalidProposal interface{}) *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call
- func (_e *VoteAggregationConsumer_Expecter) OnVoteProcessed(vote interface{}) *VoteAggregationConsumer_OnVoteProcessed_Call
- type VoteAggregationConsumer_OnDoubleVotingDetected_Call
- func (_c *VoteAggregationConsumer_OnDoubleVotingDetected_Call) Return() *VoteAggregationConsumer_OnDoubleVotingDetected_Call
- func (_c *VoteAggregationConsumer_OnDoubleVotingDetected_Call) Run(run func(vote *model.Vote, vote1 *model.Vote)) *VoteAggregationConsumer_OnDoubleVotingDetected_Call
- func (_c *VoteAggregationConsumer_OnDoubleVotingDetected_Call) RunAndReturn(run func(vote *model.Vote, vote1 *model.Vote)) *VoteAggregationConsumer_OnDoubleVotingDetected_Call
- type VoteAggregationConsumer_OnInvalidVoteDetected_Call
- func (_c *VoteAggregationConsumer_OnInvalidVoteDetected_Call) Return() *VoteAggregationConsumer_OnInvalidVoteDetected_Call
- func (_c *VoteAggregationConsumer_OnInvalidVoteDetected_Call) Run(run func(err model.InvalidVoteError)) *VoteAggregationConsumer_OnInvalidVoteDetected_Call
- func (_c *VoteAggregationConsumer_OnInvalidVoteDetected_Call) RunAndReturn(run func(err model.InvalidVoteError)) *VoteAggregationConsumer_OnInvalidVoteDetected_Call
- type VoteAggregationConsumer_OnQcConstructedFromVotes_Call
- func (_c *VoteAggregationConsumer_OnQcConstructedFromVotes_Call) Return() *VoteAggregationConsumer_OnQcConstructedFromVotes_Call
- func (_c *VoteAggregationConsumer_OnQcConstructedFromVotes_Call) Run(run func(quorumCertificate *flow.QuorumCertificate)) *VoteAggregationConsumer_OnQcConstructedFromVotes_Call
- func (_c *VoteAggregationConsumer_OnQcConstructedFromVotes_Call) RunAndReturn(run func(quorumCertificate *flow.QuorumCertificate)) *VoteAggregationConsumer_OnQcConstructedFromVotes_Call
- type VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call
- func (_c *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) Return() *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call
- func (_c *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) Run(run func(vote *model.Vote, invalidProposal *model.SignedProposal)) *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call
- func (_c *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) RunAndReturn(run func(vote *model.Vote, invalidProposal *model.SignedProposal)) *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call
- type VoteAggregationConsumer_OnVoteProcessed_Call
- func (_c *VoteAggregationConsumer_OnVoteProcessed_Call) Return() *VoteAggregationConsumer_OnVoteProcessed_Call
- func (_c *VoteAggregationConsumer_OnVoteProcessed_Call) Run(run func(vote *model.Vote)) *VoteAggregationConsumer_OnVoteProcessed_Call
- func (_c *VoteAggregationConsumer_OnVoteProcessed_Call) RunAndReturn(run func(vote *model.Vote)) *VoteAggregationConsumer_OnVoteProcessed_Call
- type VoteAggregationViolationConsumer
- func (_m *VoteAggregationViolationConsumer) EXPECT() *VoteAggregationViolationConsumer_Expecter
- func (_mock *VoteAggregationViolationConsumer) OnDoubleVotingDetected(vote *model.Vote, vote1 *model.Vote)
- func (_mock *VoteAggregationViolationConsumer) OnInvalidVoteDetected(err model.InvalidVoteError)
- func (_mock *VoteAggregationViolationConsumer) OnVoteForInvalidBlockDetected(vote *model.Vote, invalidProposal *model.SignedProposal)
- type VoteAggregationViolationConsumer_Expecter
- func (_e *VoteAggregationViolationConsumer_Expecter) OnDoubleVotingDetected(vote interface{}, vote1 interface{}) *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call
- func (_e *VoteAggregationViolationConsumer_Expecter) OnInvalidVoteDetected(err interface{}) *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call
- func (_e *VoteAggregationViolationConsumer_Expecter) OnVoteForInvalidBlockDetected(vote interface{}, invalidProposal interface{}) *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call
- type VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call
- func (_c *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) Return() *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call
- func (_c *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) Run(run func(vote *model.Vote, vote1 *model.Vote)) *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call
- func (_c *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) RunAndReturn(run func(vote *model.Vote, vote1 *model.Vote)) *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call
- type VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call
- func (_c *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call) Return() *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call
- func (_c *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call) Run(run func(err model.InvalidVoteError)) *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call
- func (_c *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call) RunAndReturn(run func(err model.InvalidVoteError)) *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call
- type VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call
- func (_c *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) Return() *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call
- func (_c *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) Run(run func(vote *model.Vote, invalidProposal *model.SignedProposal)) *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call
- func (_c *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) RunAndReturn(run func(vote *model.Vote, invalidProposal *model.SignedProposal)) *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call
- type VoteAggregator
- func (_mock *VoteAggregator) AddBlock(block *model.SignedProposal)
- func (_mock *VoteAggregator) AddVote(vote *model.Vote)
- func (_mock *VoteAggregator) Done() <-chan struct{}
- func (_m *VoteAggregator) EXPECT() *VoteAggregator_Expecter
- func (_mock *VoteAggregator) InvalidBlock(block *model.SignedProposal) error
- func (_mock *VoteAggregator) PruneUpToView(view uint64)
- func (_mock *VoteAggregator) Ready() <-chan struct{}
- func (_mock *VoteAggregator) Start(signalerContext irrecoverable.SignalerContext)
- type VoteAggregator_AddBlock_Call
- func (_c *VoteAggregator_AddBlock_Call) Return() *VoteAggregator_AddBlock_Call
- func (_c *VoteAggregator_AddBlock_Call) Run(run func(block *model.SignedProposal)) *VoteAggregator_AddBlock_Call
- func (_c *VoteAggregator_AddBlock_Call) RunAndReturn(run func(block *model.SignedProposal)) *VoteAggregator_AddBlock_Call
- type VoteAggregator_AddVote_Call
- type VoteAggregator_Done_Call
- type VoteAggregator_Expecter
- func (_e *VoteAggregator_Expecter) AddBlock(block interface{}) *VoteAggregator_AddBlock_Call
- func (_e *VoteAggregator_Expecter) AddVote(vote interface{}) *VoteAggregator_AddVote_Call
- func (_e *VoteAggregator_Expecter) Done() *VoteAggregator_Done_Call
- func (_e *VoteAggregator_Expecter) InvalidBlock(block interface{}) *VoteAggregator_InvalidBlock_Call
- func (_e *VoteAggregator_Expecter) PruneUpToView(view interface{}) *VoteAggregator_PruneUpToView_Call
- func (_e *VoteAggregator_Expecter) Ready() *VoteAggregator_Ready_Call
- func (_e *VoteAggregator_Expecter) Start(signalerContext interface{}) *VoteAggregator_Start_Call
- type VoteAggregator_InvalidBlock_Call
- func (_c *VoteAggregator_InvalidBlock_Call) Return(err error) *VoteAggregator_InvalidBlock_Call
- func (_c *VoteAggregator_InvalidBlock_Call) Run(run func(block *model.SignedProposal)) *VoteAggregator_InvalidBlock_Call
- func (_c *VoteAggregator_InvalidBlock_Call) RunAndReturn(run func(block *model.SignedProposal) error) *VoteAggregator_InvalidBlock_Call
- type VoteAggregator_PruneUpToView_Call
- func (_c *VoteAggregator_PruneUpToView_Call) Return() *VoteAggregator_PruneUpToView_Call
- func (_c *VoteAggregator_PruneUpToView_Call) Run(run func(view uint64)) *VoteAggregator_PruneUpToView_Call
- func (_c *VoteAggregator_PruneUpToView_Call) RunAndReturn(run func(view uint64)) *VoteAggregator_PruneUpToView_Call
- type VoteAggregator_Ready_Call
- type VoteAggregator_Start_Call
- func (_c *VoteAggregator_Start_Call) Return() *VoteAggregator_Start_Call
- func (_c *VoteAggregator_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *VoteAggregator_Start_Call
- func (_c *VoteAggregator_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *VoteAggregator_Start_Call
- type VoteCollector
- func (_mock *VoteCollector) AddVote(vote *model.Vote) error
- func (_m *VoteCollector) EXPECT() *VoteCollector_Expecter
- func (_mock *VoteCollector) ProcessBlock(block *model.SignedProposal) error
- func (_mock *VoteCollector) RegisterVoteConsumer(consumer hotstuff.VoteConsumer)
- func (_mock *VoteCollector) Status() hotstuff.VoteCollectorStatus
- func (_mock *VoteCollector) View() uint64
- type VoteCollectorConsumer
- type VoteCollectorConsumer_Expecter
- type VoteCollectorConsumer_OnQcConstructedFromVotes_Call
- func (_c *VoteCollectorConsumer_OnQcConstructedFromVotes_Call) Return() *VoteCollectorConsumer_OnQcConstructedFromVotes_Call
- func (_c *VoteCollectorConsumer_OnQcConstructedFromVotes_Call) Run(run func(quorumCertificate *flow.QuorumCertificate)) *VoteCollectorConsumer_OnQcConstructedFromVotes_Call
- func (_c *VoteCollectorConsumer_OnQcConstructedFromVotes_Call) RunAndReturn(run func(quorumCertificate *flow.QuorumCertificate)) *VoteCollectorConsumer_OnQcConstructedFromVotes_Call
- type VoteCollectorConsumer_OnVoteProcessed_Call
- func (_c *VoteCollectorConsumer_OnVoteProcessed_Call) Return() *VoteCollectorConsumer_OnVoteProcessed_Call
- func (_c *VoteCollectorConsumer_OnVoteProcessed_Call) Run(run func(vote *model.Vote)) *VoteCollectorConsumer_OnVoteProcessed_Call
- func (_c *VoteCollectorConsumer_OnVoteProcessed_Call) RunAndReturn(run func(vote *model.Vote)) *VoteCollectorConsumer_OnVoteProcessed_Call
- type VoteCollector_AddVote_Call
- type VoteCollector_Expecter
- func (_e *VoteCollector_Expecter) AddVote(vote interface{}) *VoteCollector_AddVote_Call
- func (_e *VoteCollector_Expecter) ProcessBlock(block interface{}) *VoteCollector_ProcessBlock_Call
- func (_e *VoteCollector_Expecter) RegisterVoteConsumer(consumer interface{}) *VoteCollector_RegisterVoteConsumer_Call
- func (_e *VoteCollector_Expecter) Status() *VoteCollector_Status_Call
- func (_e *VoteCollector_Expecter) View() *VoteCollector_View_Call
- type VoteCollector_ProcessBlock_Call
- func (_c *VoteCollector_ProcessBlock_Call) Return(err error) *VoteCollector_ProcessBlock_Call
- func (_c *VoteCollector_ProcessBlock_Call) Run(run func(block *model.SignedProposal)) *VoteCollector_ProcessBlock_Call
- func (_c *VoteCollector_ProcessBlock_Call) RunAndReturn(run func(block *model.SignedProposal) error) *VoteCollector_ProcessBlock_Call
- type VoteCollector_RegisterVoteConsumer_Call
- func (_c *VoteCollector_RegisterVoteConsumer_Call) Return() *VoteCollector_RegisterVoteConsumer_Call
- func (_c *VoteCollector_RegisterVoteConsumer_Call) Run(run func(consumer hotstuff.VoteConsumer)) *VoteCollector_RegisterVoteConsumer_Call
- func (_c *VoteCollector_RegisterVoteConsumer_Call) RunAndReturn(run func(consumer hotstuff.VoteConsumer)) *VoteCollector_RegisterVoteConsumer_Call
- type VoteCollector_Status_Call
- func (_c *VoteCollector_Status_Call) Return(voteCollectorStatus hotstuff.VoteCollectorStatus) *VoteCollector_Status_Call
- func (_c *VoteCollector_Status_Call) Run(run func()) *VoteCollector_Status_Call
- func (_c *VoteCollector_Status_Call) RunAndReturn(run func() hotstuff.VoteCollectorStatus) *VoteCollector_Status_Call
- type VoteCollector_View_Call
- type VoteCollectors
- func (_mock *VoteCollectors) Done() <-chan struct{}
- func (_m *VoteCollectors) EXPECT() *VoteCollectors_Expecter
- func (_mock *VoteCollectors) GetOrCreateCollector(view uint64) (hotstuff.VoteCollector, bool, error)
- func (_mock *VoteCollectors) PruneUpToView(lowestRetainedView uint64)
- func (_mock *VoteCollectors) Ready() <-chan struct{}
- func (_mock *VoteCollectors) Start(signalerContext irrecoverable.SignalerContext)
- type VoteCollectors_Done_Call
- type VoteCollectors_Expecter
- func (_e *VoteCollectors_Expecter) Done() *VoteCollectors_Done_Call
- func (_e *VoteCollectors_Expecter) GetOrCreateCollector(view interface{}) *VoteCollectors_GetOrCreateCollector_Call
- func (_e *VoteCollectors_Expecter) PruneUpToView(lowestRetainedView interface{}) *VoteCollectors_PruneUpToView_Call
- func (_e *VoteCollectors_Expecter) Ready() *VoteCollectors_Ready_Call
- func (_e *VoteCollectors_Expecter) Start(signalerContext interface{}) *VoteCollectors_Start_Call
- type VoteCollectors_GetOrCreateCollector_Call
- func (_c *VoteCollectors_GetOrCreateCollector_Call) Return(collector hotstuff.VoteCollector, created bool, err error) *VoteCollectors_GetOrCreateCollector_Call
- func (_c *VoteCollectors_GetOrCreateCollector_Call) Run(run func(view uint64)) *VoteCollectors_GetOrCreateCollector_Call
- func (_c *VoteCollectors_GetOrCreateCollector_Call) RunAndReturn(run func(view uint64) (hotstuff.VoteCollector, bool, error)) *VoteCollectors_GetOrCreateCollector_Call
- type VoteCollectors_PruneUpToView_Call
- func (_c *VoteCollectors_PruneUpToView_Call) Return() *VoteCollectors_PruneUpToView_Call
- func (_c *VoteCollectors_PruneUpToView_Call) Run(run func(lowestRetainedView uint64)) *VoteCollectors_PruneUpToView_Call
- func (_c *VoteCollectors_PruneUpToView_Call) RunAndReturn(run func(lowestRetainedView uint64)) *VoteCollectors_PruneUpToView_Call
- type VoteCollectors_Ready_Call
- type VoteCollectors_Start_Call
- func (_c *VoteCollectors_Start_Call) Return() *VoteCollectors_Start_Call
- func (_c *VoteCollectors_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *VoteCollectors_Start_Call
- func (_c *VoteCollectors_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *VoteCollectors_Start_Call
- type VoteProcessor
- type VoteProcessorFactory
- type VoteProcessorFactory_Create_Call
- func (_c *VoteProcessorFactory_Create_Call) Return(verifyingVoteProcessor hotstuff.VerifyingVoteProcessor, err error) *VoteProcessorFactory_Create_Call
- func (_c *VoteProcessorFactory_Create_Call) Run(run func(log zerolog.Logger, proposal *model.SignedProposal)) *VoteProcessorFactory_Create_Call
- func (_c *VoteProcessorFactory_Create_Call) RunAndReturn(...) *VoteProcessorFactory_Create_Call
- type VoteProcessorFactory_Expecter
- type VoteProcessor_Expecter
- type VoteProcessor_Process_Call
- type VoteProcessor_Status_Call
- func (_c *VoteProcessor_Status_Call) Return(voteCollectorStatus hotstuff.VoteCollectorStatus) *VoteProcessor_Status_Call
- func (_c *VoteProcessor_Status_Call) Run(run func()) *VoteProcessor_Status_Call
- func (_c *VoteProcessor_Status_Call) RunAndReturn(run func() hotstuff.VoteCollectorStatus) *VoteProcessor_Status_Call
- type WeightedSignatureAggregator
- func (_mock *WeightedSignatureAggregator) Aggregate() (flow.IdentifierList, []byte, error)
- func (_m *WeightedSignatureAggregator) EXPECT() *WeightedSignatureAggregator_Expecter
- func (_mock *WeightedSignatureAggregator) TotalWeight() uint64
- func (_mock *WeightedSignatureAggregator) TrustedAdd(signerID flow.Identifier, sig crypto.Signature) (uint64, error)
- func (_mock *WeightedSignatureAggregator) Verify(signerID flow.Identifier, sig crypto.Signature) error
- type WeightedSignatureAggregator_Aggregate_Call
- func (_c *WeightedSignatureAggregator_Aggregate_Call) Return(identifierList flow.IdentifierList, bytes []byte, err error) *WeightedSignatureAggregator_Aggregate_Call
- func (_c *WeightedSignatureAggregator_Aggregate_Call) Run(run func()) *WeightedSignatureAggregator_Aggregate_Call
- func (_c *WeightedSignatureAggregator_Aggregate_Call) RunAndReturn(run func() (flow.IdentifierList, []byte, error)) *WeightedSignatureAggregator_Aggregate_Call
- type WeightedSignatureAggregator_Expecter
- func (_e *WeightedSignatureAggregator_Expecter) Aggregate() *WeightedSignatureAggregator_Aggregate_Call
- func (_e *WeightedSignatureAggregator_Expecter) TotalWeight() *WeightedSignatureAggregator_TotalWeight_Call
- func (_e *WeightedSignatureAggregator_Expecter) TrustedAdd(signerID interface{}, sig interface{}) *WeightedSignatureAggregator_TrustedAdd_Call
- func (_e *WeightedSignatureAggregator_Expecter) Verify(signerID interface{}, sig interface{}) *WeightedSignatureAggregator_Verify_Call
- type WeightedSignatureAggregator_TotalWeight_Call
- func (_c *WeightedSignatureAggregator_TotalWeight_Call) Return(v uint64) *WeightedSignatureAggregator_TotalWeight_Call
- func (_c *WeightedSignatureAggregator_TotalWeight_Call) Run(run func()) *WeightedSignatureAggregator_TotalWeight_Call
- func (_c *WeightedSignatureAggregator_TotalWeight_Call) RunAndReturn(run func() uint64) *WeightedSignatureAggregator_TotalWeight_Call
- type WeightedSignatureAggregator_TrustedAdd_Call
- func (_c *WeightedSignatureAggregator_TrustedAdd_Call) Return(totalWeight uint64, exception error) *WeightedSignatureAggregator_TrustedAdd_Call
- func (_c *WeightedSignatureAggregator_TrustedAdd_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature)) *WeightedSignatureAggregator_TrustedAdd_Call
- func (_c *WeightedSignatureAggregator_TrustedAdd_Call) RunAndReturn(run func(signerID flow.Identifier, sig crypto.Signature) (uint64, error)) *WeightedSignatureAggregator_TrustedAdd_Call
- type WeightedSignatureAggregator_Verify_Call
- func (_c *WeightedSignatureAggregator_Verify_Call) Return(err error) *WeightedSignatureAggregator_Verify_Call
- func (_c *WeightedSignatureAggregator_Verify_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature)) *WeightedSignatureAggregator_Verify_Call
- func (_c *WeightedSignatureAggregator_Verify_Call) RunAndReturn(run func(signerID flow.Identifier, sig crypto.Signature) error) *WeightedSignatureAggregator_Verify_Call
- type Workerpool
- type Workerpool_Expecter
- type Workerpool_StopWait_Call
- type Workerpool_Submit_Call
- type Workers
- type Workers_Expecter
- type Workers_Submit_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockProducer ¶
BlockProducer is an autogenerated mock type for the BlockProducer type
func NewBlockProducer ¶ added in v0.26.1
func NewBlockProducer(t interface {
mock.TestingT
Cleanup(func())
}) *BlockProducer
NewBlockProducer creates a new instance of BlockProducer. 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 (*BlockProducer) EXPECT ¶ added in v0.46.0
func (_m *BlockProducer) EXPECT() *BlockProducer_Expecter
func (*BlockProducer) MakeBlockProposal ¶
func (_mock *BlockProducer) MakeBlockProposal(view uint64, qc *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*flow.ProposalHeader, error)
MakeBlockProposal provides a mock function for the type BlockProducer
type BlockProducer_Expecter ¶ added in v0.46.0
type BlockProducer_Expecter struct {
// contains filtered or unexported fields
}
func (*BlockProducer_Expecter) MakeBlockProposal ¶ added in v0.46.0
func (_e *BlockProducer_Expecter) MakeBlockProposal(view interface{}, qc interface{}, lastViewTC interface{}) *BlockProducer_MakeBlockProposal_Call
MakeBlockProposal is a helper method to define mock.On call
- view uint64
- qc *flow.QuorumCertificate
- lastViewTC *flow.TimeoutCertificate
type BlockProducer_MakeBlockProposal_Call ¶ added in v0.46.0
BlockProducer_MakeBlockProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeBlockProposal'
func (*BlockProducer_MakeBlockProposal_Call) Return ¶ added in v0.46.0
func (_c *BlockProducer_MakeBlockProposal_Call) Return(proposalHeader *flow.ProposalHeader, err error) *BlockProducer_MakeBlockProposal_Call
func (*BlockProducer_MakeBlockProposal_Call) Run ¶ added in v0.46.0
func (_c *BlockProducer_MakeBlockProposal_Call) Run(run func(view uint64, qc *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *BlockProducer_MakeBlockProposal_Call
func (*BlockProducer_MakeBlockProposal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *BlockProducer_MakeBlockProposal_Call) RunAndReturn(run func(view uint64, qc *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*flow.ProposalHeader, error)) *BlockProducer_MakeBlockProposal_Call
type BlockSignerDecoder ¶ added in v0.26.17
BlockSignerDecoder is an autogenerated mock type for the BlockSignerDecoder type
func NewBlockSignerDecoder ¶ added in v0.26.17
func NewBlockSignerDecoder(t interface {
mock.TestingT
Cleanup(func())
}) *BlockSignerDecoder
NewBlockSignerDecoder creates a new instance of BlockSignerDecoder. 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 (*BlockSignerDecoder) DecodeSignerIDs ¶ added in v0.26.17
func (_mock *BlockSignerDecoder) DecodeSignerIDs(header *flow.Header) (flow.IdentifierList, error)
DecodeSignerIDs provides a mock function for the type BlockSignerDecoder
func (*BlockSignerDecoder) EXPECT ¶ added in v0.46.0
func (_m *BlockSignerDecoder) EXPECT() *BlockSignerDecoder_Expecter
type BlockSignerDecoder_DecodeSignerIDs_Call ¶ added in v0.46.0
BlockSignerDecoder_DecodeSignerIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DecodeSignerIDs'
func (*BlockSignerDecoder_DecodeSignerIDs_Call) Return ¶ added in v0.46.0
func (_c *BlockSignerDecoder_DecodeSignerIDs_Call) Return(identifierList flow.IdentifierList, err error) *BlockSignerDecoder_DecodeSignerIDs_Call
func (*BlockSignerDecoder_DecodeSignerIDs_Call) Run ¶ added in v0.46.0
func (_c *BlockSignerDecoder_DecodeSignerIDs_Call) Run(run func(header *flow.Header)) *BlockSignerDecoder_DecodeSignerIDs_Call
func (*BlockSignerDecoder_DecodeSignerIDs_Call) RunAndReturn ¶ added in v0.46.0
func (_c *BlockSignerDecoder_DecodeSignerIDs_Call) RunAndReturn(run func(header *flow.Header) (flow.IdentifierList, error)) *BlockSignerDecoder_DecodeSignerIDs_Call
type BlockSignerDecoder_Expecter ¶ added in v0.46.0
type BlockSignerDecoder_Expecter struct {
// contains filtered or unexported fields
}
func (*BlockSignerDecoder_Expecter) DecodeSignerIDs ¶ added in v0.46.0
func (_e *BlockSignerDecoder_Expecter) DecodeSignerIDs(header interface{}) *BlockSignerDecoder_DecodeSignerIDs_Call
DecodeSignerIDs is a helper method to define mock.On call
- header *flow.Header
type CommunicatorConsumer ¶ added in v0.29.0
CommunicatorConsumer is an autogenerated mock type for the CommunicatorConsumer type
func NewCommunicatorConsumer ¶ added in v0.29.0
func NewCommunicatorConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *CommunicatorConsumer
NewCommunicatorConsumer creates a new instance of CommunicatorConsumer. 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 (*CommunicatorConsumer) EXPECT ¶ added in v0.46.0
func (_m *CommunicatorConsumer) EXPECT() *CommunicatorConsumer_Expecter
func (*CommunicatorConsumer) OnOwnProposal ¶ added in v0.29.0
func (_mock *CommunicatorConsumer) OnOwnProposal(proposal *flow.ProposalHeader, targetPublicationTime time.Time)
OnOwnProposal provides a mock function for the type CommunicatorConsumer
func (*CommunicatorConsumer) OnOwnTimeout ¶ added in v0.29.0
func (_mock *CommunicatorConsumer) OnOwnTimeout(timeout *model.TimeoutObject)
OnOwnTimeout provides a mock function for the type CommunicatorConsumer
func (*CommunicatorConsumer) OnOwnVote ¶ added in v0.29.0
func (_mock *CommunicatorConsumer) OnOwnVote(vote *model.Vote, recipientID flow.Identifier)
OnOwnVote provides a mock function for the type CommunicatorConsumer
type CommunicatorConsumer_Expecter ¶ added in v0.46.0
type CommunicatorConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*CommunicatorConsumer_Expecter) OnOwnProposal ¶ added in v0.46.0
func (_e *CommunicatorConsumer_Expecter) OnOwnProposal(proposal interface{}, targetPublicationTime interface{}) *CommunicatorConsumer_OnOwnProposal_Call
OnOwnProposal is a helper method to define mock.On call
- proposal *flow.ProposalHeader
- targetPublicationTime time.Time
func (*CommunicatorConsumer_Expecter) OnOwnTimeout ¶ added in v0.46.0
func (_e *CommunicatorConsumer_Expecter) OnOwnTimeout(timeout interface{}) *CommunicatorConsumer_OnOwnTimeout_Call
OnOwnTimeout is a helper method to define mock.On call
- timeout *model.TimeoutObject
func (*CommunicatorConsumer_Expecter) OnOwnVote ¶ added in v0.46.0
func (_e *CommunicatorConsumer_Expecter) OnOwnVote(vote interface{}, recipientID interface{}) *CommunicatorConsumer_OnOwnVote_Call
OnOwnVote is a helper method to define mock.On call
- vote *model.Vote
- recipientID flow.Identifier
type CommunicatorConsumer_OnOwnProposal_Call ¶ added in v0.46.0
CommunicatorConsumer_OnOwnProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnOwnProposal'
func (*CommunicatorConsumer_OnOwnProposal_Call) Return ¶ added in v0.46.0
func (_c *CommunicatorConsumer_OnOwnProposal_Call) Return() *CommunicatorConsumer_OnOwnProposal_Call
func (*CommunicatorConsumer_OnOwnProposal_Call) Run ¶ added in v0.46.0
func (_c *CommunicatorConsumer_OnOwnProposal_Call) Run(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *CommunicatorConsumer_OnOwnProposal_Call
func (*CommunicatorConsumer_OnOwnProposal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommunicatorConsumer_OnOwnProposal_Call) RunAndReturn(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *CommunicatorConsumer_OnOwnProposal_Call
type CommunicatorConsumer_OnOwnTimeout_Call ¶ added in v0.46.0
CommunicatorConsumer_OnOwnTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnOwnTimeout'
func (*CommunicatorConsumer_OnOwnTimeout_Call) Return ¶ added in v0.46.0
func (_c *CommunicatorConsumer_OnOwnTimeout_Call) Return() *CommunicatorConsumer_OnOwnTimeout_Call
func (*CommunicatorConsumer_OnOwnTimeout_Call) Run ¶ added in v0.46.0
func (_c *CommunicatorConsumer_OnOwnTimeout_Call) Run(run func(timeout *model.TimeoutObject)) *CommunicatorConsumer_OnOwnTimeout_Call
func (*CommunicatorConsumer_OnOwnTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommunicatorConsumer_OnOwnTimeout_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *CommunicatorConsumer_OnOwnTimeout_Call
type CommunicatorConsumer_OnOwnVote_Call ¶ added in v0.46.0
CommunicatorConsumer_OnOwnVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnOwnVote'
func (*CommunicatorConsumer_OnOwnVote_Call) Return ¶ added in v0.46.0
func (_c *CommunicatorConsumer_OnOwnVote_Call) Return() *CommunicatorConsumer_OnOwnVote_Call
func (*CommunicatorConsumer_OnOwnVote_Call) Run ¶ added in v0.46.0
func (_c *CommunicatorConsumer_OnOwnVote_Call) Run(run func(vote *model.Vote, recipientID flow.Identifier)) *CommunicatorConsumer_OnOwnVote_Call
func (*CommunicatorConsumer_OnOwnVote_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommunicatorConsumer_OnOwnVote_Call) RunAndReturn(run func(vote *model.Vote, recipientID flow.Identifier)) *CommunicatorConsumer_OnOwnVote_Call
type Consumer ¶
Consumer is an autogenerated mock type for the Consumer type
func NewConsumer ¶ added in v0.26.1
NewConsumer creates a new instance of Consumer. 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 (*Consumer) EXPECT ¶ added in v0.46.0
func (_m *Consumer) EXPECT() *Consumer_Expecter
func (*Consumer) OnBlockIncorporated ¶
OnBlockIncorporated provides a mock function for the type Consumer
func (*Consumer) OnCurrentViewDetails ¶ added in v0.29.6
func (_mock *Consumer) OnCurrentViewDetails(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)
OnCurrentViewDetails provides a mock function for the type Consumer
func (*Consumer) OnDoubleProposeDetected ¶
OnDoubleProposeDetected provides a mock function for the type Consumer
func (*Consumer) OnEventProcessed ¶
func (_mock *Consumer) OnEventProcessed()
OnEventProcessed provides a mock function for the type Consumer
func (*Consumer) OnFinalizedBlock ¶
OnFinalizedBlock provides a mock function for the type Consumer
func (*Consumer) OnInvalidBlockDetected ¶ added in v0.31.0
func (_mock *Consumer) OnInvalidBlockDetected(err flow.Slashable[model.InvalidProposalError])
OnInvalidBlockDetected provides a mock function for the type Consumer
func (*Consumer) OnLocalTimeout ¶ added in v0.29.0
OnLocalTimeout provides a mock function for the type Consumer
func (*Consumer) OnOwnProposal ¶ added in v0.29.0
func (_mock *Consumer) OnOwnProposal(proposal *flow.ProposalHeader, targetPublicationTime time.Time)
OnOwnProposal provides a mock function for the type Consumer
func (*Consumer) OnOwnTimeout ¶ added in v0.29.0
func (_mock *Consumer) OnOwnTimeout(timeout *model.TimeoutObject)
OnOwnTimeout provides a mock function for the type Consumer
func (*Consumer) OnOwnVote ¶ added in v0.29.0
func (_mock *Consumer) OnOwnVote(vote *model.Vote, recipientID flow.Identifier)
OnOwnVote provides a mock function for the type Consumer
func (*Consumer) OnPartialTc ¶ added in v0.29.0
func (_mock *Consumer) OnPartialTc(currentView uint64, partialTc *hotstuff.PartialTcCreated)
OnPartialTc provides a mock function for the type Consumer
func (*Consumer) OnQcTriggeredViewChange ¶
func (_mock *Consumer) OnQcTriggeredViewChange(oldView uint64, newView uint64, qc *flow.QuorumCertificate)
OnQcTriggeredViewChange provides a mock function for the type Consumer
func (*Consumer) OnReceiveProposal ¶
func (_mock *Consumer) OnReceiveProposal(currentView uint64, proposal *model.SignedProposal)
OnReceiveProposal provides a mock function for the type Consumer
func (*Consumer) OnReceiveQc ¶ added in v0.29.0
func (_mock *Consumer) OnReceiveQc(currentView uint64, qc *flow.QuorumCertificate)
OnReceiveQc provides a mock function for the type Consumer
func (*Consumer) OnReceiveTc ¶ added in v0.29.0
func (_mock *Consumer) OnReceiveTc(currentView uint64, tc *flow.TimeoutCertificate)
OnReceiveTc provides a mock function for the type Consumer
func (*Consumer) OnStartingTimeout ¶
OnStartingTimeout provides a mock function for the type Consumer
func (*Consumer) OnTcTriggeredViewChange ¶ added in v0.29.0
func (_mock *Consumer) OnTcTriggeredViewChange(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)
OnTcTriggeredViewChange provides a mock function for the type Consumer
func (*Consumer) OnViewChange ¶ added in v0.29.0
OnViewChange provides a mock function for the type Consumer
type Consumer_Expecter ¶ added in v0.46.0
type Consumer_Expecter struct {
// contains filtered or unexported fields
}
func (*Consumer_Expecter) OnBlockIncorporated ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnBlockIncorporated(block interface{}) *Consumer_OnBlockIncorporated_Call
OnBlockIncorporated is a helper method to define mock.On call
- block *model.Block
func (*Consumer_Expecter) OnCurrentViewDetails ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnCurrentViewDetails(currentView interface{}, finalizedView interface{}, currentLeader interface{}) *Consumer_OnCurrentViewDetails_Call
OnCurrentViewDetails is a helper method to define mock.On call
- currentView uint64
- finalizedView uint64
- currentLeader flow.Identifier
func (*Consumer_Expecter) OnDoubleProposeDetected ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnDoubleProposeDetected(block interface{}, block1 interface{}) *Consumer_OnDoubleProposeDetected_Call
OnDoubleProposeDetected is a helper method to define mock.On call
- block *model.Block
- block1 *model.Block
func (*Consumer_Expecter) OnEventProcessed ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnEventProcessed() *Consumer_OnEventProcessed_Call
OnEventProcessed is a helper method to define mock.On call
func (*Consumer_Expecter) OnFinalizedBlock ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnFinalizedBlock(block interface{}) *Consumer_OnFinalizedBlock_Call
OnFinalizedBlock is a helper method to define mock.On call
- block *model.Block
func (*Consumer_Expecter) OnInvalidBlockDetected ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnInvalidBlockDetected(err interface{}) *Consumer_OnInvalidBlockDetected_Call
OnInvalidBlockDetected is a helper method to define mock.On call
- err flow.Slashable[model.InvalidProposalError]
func (*Consumer_Expecter) OnLocalTimeout ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnLocalTimeout(currentView interface{}) *Consumer_OnLocalTimeout_Call
OnLocalTimeout is a helper method to define mock.On call
- currentView uint64
func (*Consumer_Expecter) OnOwnProposal ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnOwnProposal(proposal interface{}, targetPublicationTime interface{}) *Consumer_OnOwnProposal_Call
OnOwnProposal is a helper method to define mock.On call
- proposal *flow.ProposalHeader
- targetPublicationTime time.Time
func (*Consumer_Expecter) OnOwnTimeout ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnOwnTimeout(timeout interface{}) *Consumer_OnOwnTimeout_Call
OnOwnTimeout is a helper method to define mock.On call
- timeout *model.TimeoutObject
func (*Consumer_Expecter) OnOwnVote ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnOwnVote(vote interface{}, recipientID interface{}) *Consumer_OnOwnVote_Call
OnOwnVote is a helper method to define mock.On call
- vote *model.Vote
- recipientID flow.Identifier
func (*Consumer_Expecter) OnPartialTc ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnPartialTc(currentView interface{}, partialTc interface{}) *Consumer_OnPartialTc_Call
OnPartialTc is a helper method to define mock.On call
- currentView uint64
- partialTc *hotstuff.PartialTcCreated
func (*Consumer_Expecter) OnQcTriggeredViewChange ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnQcTriggeredViewChange(oldView interface{}, newView interface{}, qc interface{}) *Consumer_OnQcTriggeredViewChange_Call
OnQcTriggeredViewChange is a helper method to define mock.On call
- oldView uint64
- newView uint64
- qc *flow.QuorumCertificate
func (*Consumer_Expecter) OnReceiveProposal ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnReceiveProposal(currentView interface{}, proposal interface{}) *Consumer_OnReceiveProposal_Call
OnReceiveProposal is a helper method to define mock.On call
- currentView uint64
- proposal *model.SignedProposal
func (*Consumer_Expecter) OnReceiveQc ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnReceiveQc(currentView interface{}, qc interface{}) *Consumer_OnReceiveQc_Call
OnReceiveQc is a helper method to define mock.On call
- currentView uint64
- qc *flow.QuorumCertificate
func (*Consumer_Expecter) OnReceiveTc ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnReceiveTc(currentView interface{}, tc interface{}) *Consumer_OnReceiveTc_Call
OnReceiveTc is a helper method to define mock.On call
- currentView uint64
- tc *flow.TimeoutCertificate
func (*Consumer_Expecter) OnStart ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnStart(currentView interface{}) *Consumer_OnStart_Call
OnStart is a helper method to define mock.On call
- currentView uint64
func (*Consumer_Expecter) OnStartingTimeout ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnStartingTimeout(timerInfo interface{}) *Consumer_OnStartingTimeout_Call
OnStartingTimeout is a helper method to define mock.On call
- timerInfo model.TimerInfo
func (*Consumer_Expecter) OnTcTriggeredViewChange ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnTcTriggeredViewChange(oldView interface{}, newView interface{}, tc interface{}) *Consumer_OnTcTriggeredViewChange_Call
OnTcTriggeredViewChange is a helper method to define mock.On call
- oldView uint64
- newView uint64
- tc *flow.TimeoutCertificate
func (*Consumer_Expecter) OnViewChange ¶ added in v0.46.0
func (_e *Consumer_Expecter) OnViewChange(oldView interface{}, newView interface{}) *Consumer_OnViewChange_Call
OnViewChange is a helper method to define mock.On call
- oldView uint64
- newView uint64
type Consumer_OnBlockIncorporated_Call ¶ added in v0.46.0
Consumer_OnBlockIncorporated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBlockIncorporated'
func (*Consumer_OnBlockIncorporated_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnBlockIncorporated_Call) Return() *Consumer_OnBlockIncorporated_Call
func (*Consumer_OnBlockIncorporated_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnBlockIncorporated_Call) Run(run func(block *model.Block)) *Consumer_OnBlockIncorporated_Call
func (*Consumer_OnBlockIncorporated_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnBlockIncorporated_Call) RunAndReturn(run func(block *model.Block)) *Consumer_OnBlockIncorporated_Call
type Consumer_OnCurrentViewDetails_Call ¶ added in v0.46.0
Consumer_OnCurrentViewDetails_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnCurrentViewDetails'
func (*Consumer_OnCurrentViewDetails_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnCurrentViewDetails_Call) Return() *Consumer_OnCurrentViewDetails_Call
func (*Consumer_OnCurrentViewDetails_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnCurrentViewDetails_Call) Run(run func(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)) *Consumer_OnCurrentViewDetails_Call
func (*Consumer_OnCurrentViewDetails_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnCurrentViewDetails_Call) RunAndReturn(run func(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)) *Consumer_OnCurrentViewDetails_Call
type Consumer_OnDoubleProposeDetected_Call ¶ added in v0.46.0
Consumer_OnDoubleProposeDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDoubleProposeDetected'
func (*Consumer_OnDoubleProposeDetected_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnDoubleProposeDetected_Call) Return() *Consumer_OnDoubleProposeDetected_Call
func (*Consumer_OnDoubleProposeDetected_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnDoubleProposeDetected_Call) Run(run func(block *model.Block, block1 *model.Block)) *Consumer_OnDoubleProposeDetected_Call
func (*Consumer_OnDoubleProposeDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnDoubleProposeDetected_Call) RunAndReturn(run func(block *model.Block, block1 *model.Block)) *Consumer_OnDoubleProposeDetected_Call
type Consumer_OnEventProcessed_Call ¶ added in v0.46.0
Consumer_OnEventProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnEventProcessed'
func (*Consumer_OnEventProcessed_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnEventProcessed_Call) Return() *Consumer_OnEventProcessed_Call
func (*Consumer_OnEventProcessed_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnEventProcessed_Call) Run(run func()) *Consumer_OnEventProcessed_Call
func (*Consumer_OnEventProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnEventProcessed_Call) RunAndReturn(run func()) *Consumer_OnEventProcessed_Call
type Consumer_OnFinalizedBlock_Call ¶ added in v0.46.0
Consumer_OnFinalizedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnFinalizedBlock'
func (*Consumer_OnFinalizedBlock_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnFinalizedBlock_Call) Return() *Consumer_OnFinalizedBlock_Call
func (*Consumer_OnFinalizedBlock_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnFinalizedBlock_Call) Run(run func(block *model.Block)) *Consumer_OnFinalizedBlock_Call
func (*Consumer_OnFinalizedBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnFinalizedBlock_Call) RunAndReturn(run func(block *model.Block)) *Consumer_OnFinalizedBlock_Call
type Consumer_OnInvalidBlockDetected_Call ¶ added in v0.46.0
Consumer_OnInvalidBlockDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnInvalidBlockDetected'
func (*Consumer_OnInvalidBlockDetected_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnInvalidBlockDetected_Call) Return() *Consumer_OnInvalidBlockDetected_Call
func (*Consumer_OnInvalidBlockDetected_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnInvalidBlockDetected_Call) Run(run func(err flow.Slashable[model.InvalidProposalError])) *Consumer_OnInvalidBlockDetected_Call
func (*Consumer_OnInvalidBlockDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnInvalidBlockDetected_Call) RunAndReturn(run func(err flow.Slashable[model.InvalidProposalError])) *Consumer_OnInvalidBlockDetected_Call
type Consumer_OnLocalTimeout_Call ¶ added in v0.46.0
Consumer_OnLocalTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnLocalTimeout'
func (*Consumer_OnLocalTimeout_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnLocalTimeout_Call) Return() *Consumer_OnLocalTimeout_Call
func (*Consumer_OnLocalTimeout_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnLocalTimeout_Call) Run(run func(currentView uint64)) *Consumer_OnLocalTimeout_Call
func (*Consumer_OnLocalTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnLocalTimeout_Call) RunAndReturn(run func(currentView uint64)) *Consumer_OnLocalTimeout_Call
type Consumer_OnOwnProposal_Call ¶ added in v0.46.0
Consumer_OnOwnProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnOwnProposal'
func (*Consumer_OnOwnProposal_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnOwnProposal_Call) Return() *Consumer_OnOwnProposal_Call
func (*Consumer_OnOwnProposal_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnOwnProposal_Call) Run(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *Consumer_OnOwnProposal_Call
func (*Consumer_OnOwnProposal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnOwnProposal_Call) RunAndReturn(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *Consumer_OnOwnProposal_Call
type Consumer_OnOwnTimeout_Call ¶ added in v0.46.0
Consumer_OnOwnTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnOwnTimeout'
func (*Consumer_OnOwnTimeout_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnOwnTimeout_Call) Return() *Consumer_OnOwnTimeout_Call
func (*Consumer_OnOwnTimeout_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnOwnTimeout_Call) Run(run func(timeout *model.TimeoutObject)) *Consumer_OnOwnTimeout_Call
func (*Consumer_OnOwnTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnOwnTimeout_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *Consumer_OnOwnTimeout_Call
type Consumer_OnOwnVote_Call ¶ added in v0.46.0
Consumer_OnOwnVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnOwnVote'
func (*Consumer_OnOwnVote_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnOwnVote_Call) Return() *Consumer_OnOwnVote_Call
func (*Consumer_OnOwnVote_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnOwnVote_Call) Run(run func(vote *model.Vote, recipientID flow.Identifier)) *Consumer_OnOwnVote_Call
func (*Consumer_OnOwnVote_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnOwnVote_Call) RunAndReturn(run func(vote *model.Vote, recipientID flow.Identifier)) *Consumer_OnOwnVote_Call
type Consumer_OnPartialTc_Call ¶ added in v0.46.0
Consumer_OnPartialTc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnPartialTc'
func (*Consumer_OnPartialTc_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnPartialTc_Call) Return() *Consumer_OnPartialTc_Call
func (*Consumer_OnPartialTc_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnPartialTc_Call) Run(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *Consumer_OnPartialTc_Call
func (*Consumer_OnPartialTc_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnPartialTc_Call) RunAndReturn(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *Consumer_OnPartialTc_Call
type Consumer_OnQcTriggeredViewChange_Call ¶ added in v0.46.0
Consumer_OnQcTriggeredViewChange_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnQcTriggeredViewChange'
func (*Consumer_OnQcTriggeredViewChange_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnQcTriggeredViewChange_Call) Return() *Consumer_OnQcTriggeredViewChange_Call
func (*Consumer_OnQcTriggeredViewChange_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnQcTriggeredViewChange_Call) Run(run func(oldView uint64, newView uint64, qc *flow.QuorumCertificate)) *Consumer_OnQcTriggeredViewChange_Call
func (*Consumer_OnQcTriggeredViewChange_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnQcTriggeredViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64, qc *flow.QuorumCertificate)) *Consumer_OnQcTriggeredViewChange_Call
type Consumer_OnReceiveProposal_Call ¶ added in v0.46.0
Consumer_OnReceiveProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReceiveProposal'
func (*Consumer_OnReceiveProposal_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnReceiveProposal_Call) Return() *Consumer_OnReceiveProposal_Call
func (*Consumer_OnReceiveProposal_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnReceiveProposal_Call) Run(run func(currentView uint64, proposal *model.SignedProposal)) *Consumer_OnReceiveProposal_Call
func (*Consumer_OnReceiveProposal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnReceiveProposal_Call) RunAndReturn(run func(currentView uint64, proposal *model.SignedProposal)) *Consumer_OnReceiveProposal_Call
type Consumer_OnReceiveQc_Call ¶ added in v0.46.0
Consumer_OnReceiveQc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReceiveQc'
func (*Consumer_OnReceiveQc_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnReceiveQc_Call) Return() *Consumer_OnReceiveQc_Call
func (*Consumer_OnReceiveQc_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnReceiveQc_Call) Run(run func(currentView uint64, qc *flow.QuorumCertificate)) *Consumer_OnReceiveQc_Call
func (*Consumer_OnReceiveQc_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnReceiveQc_Call) RunAndReturn(run func(currentView uint64, qc *flow.QuorumCertificate)) *Consumer_OnReceiveQc_Call
type Consumer_OnReceiveTc_Call ¶ added in v0.46.0
Consumer_OnReceiveTc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReceiveTc'
func (*Consumer_OnReceiveTc_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnReceiveTc_Call) Return() *Consumer_OnReceiveTc_Call
func (*Consumer_OnReceiveTc_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnReceiveTc_Call) Run(run func(currentView uint64, tc *flow.TimeoutCertificate)) *Consumer_OnReceiveTc_Call
func (*Consumer_OnReceiveTc_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnReceiveTc_Call) RunAndReturn(run func(currentView uint64, tc *flow.TimeoutCertificate)) *Consumer_OnReceiveTc_Call
type Consumer_OnStart_Call ¶ added in v0.46.0
Consumer_OnStart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnStart'
func (*Consumer_OnStart_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnStart_Call) Return() *Consumer_OnStart_Call
func (*Consumer_OnStart_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnStart_Call) Run(run func(currentView uint64)) *Consumer_OnStart_Call
func (*Consumer_OnStart_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnStart_Call) RunAndReturn(run func(currentView uint64)) *Consumer_OnStart_Call
type Consumer_OnStartingTimeout_Call ¶ added in v0.46.0
Consumer_OnStartingTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnStartingTimeout'
func (*Consumer_OnStartingTimeout_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnStartingTimeout_Call) Return() *Consumer_OnStartingTimeout_Call
func (*Consumer_OnStartingTimeout_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnStartingTimeout_Call) Run(run func(timerInfo model.TimerInfo)) *Consumer_OnStartingTimeout_Call
func (*Consumer_OnStartingTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnStartingTimeout_Call) RunAndReturn(run func(timerInfo model.TimerInfo)) *Consumer_OnStartingTimeout_Call
type Consumer_OnTcTriggeredViewChange_Call ¶ added in v0.46.0
Consumer_OnTcTriggeredViewChange_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnTcTriggeredViewChange'
func (*Consumer_OnTcTriggeredViewChange_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnTcTriggeredViewChange_Call) Return() *Consumer_OnTcTriggeredViewChange_Call
func (*Consumer_OnTcTriggeredViewChange_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnTcTriggeredViewChange_Call) Run(run func(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)) *Consumer_OnTcTriggeredViewChange_Call
func (*Consumer_OnTcTriggeredViewChange_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnTcTriggeredViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)) *Consumer_OnTcTriggeredViewChange_Call
type Consumer_OnViewChange_Call ¶ added in v0.46.0
Consumer_OnViewChange_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnViewChange'
func (*Consumer_OnViewChange_Call) Return ¶ added in v0.46.0
func (_c *Consumer_OnViewChange_Call) Return() *Consumer_OnViewChange_Call
func (*Consumer_OnViewChange_Call) Run ¶ added in v0.46.0
func (_c *Consumer_OnViewChange_Call) Run(run func(oldView uint64, newView uint64)) *Consumer_OnViewChange_Call
func (*Consumer_OnViewChange_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_OnViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64)) *Consumer_OnViewChange_Call
type DKG ¶
DKG is an autogenerated mock type for the DKG type
func NewDKG ¶ added in v0.26.1
NewDKG creates a new instance of DKG. 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 (*DKG) EXPECT ¶ added in v0.46.0
func (_m *DKG) EXPECT() *DKG_Expecter
func (*DKG) Index ¶
func (_mock *DKG) Index(nodeID flow.Identifier) (uint, error)
Index provides a mock function for the type DKG
type DKG_Expecter ¶ added in v0.46.0
type DKG_Expecter struct {
// contains filtered or unexported fields
}
func (*DKG_Expecter) GroupKey ¶ added in v0.46.0
func (_e *DKG_Expecter) GroupKey() *DKG_GroupKey_Call
GroupKey is a helper method to define mock.On call
func (*DKG_Expecter) Index ¶ added in v0.46.0
func (_e *DKG_Expecter) Index(nodeID interface{}) *DKG_Index_Call
Index is a helper method to define mock.On call
- nodeID flow.Identifier
func (*DKG_Expecter) KeyShare ¶ added in v0.46.0
func (_e *DKG_Expecter) KeyShare(nodeID interface{}) *DKG_KeyShare_Call
KeyShare is a helper method to define mock.On call
- nodeID flow.Identifier
func (*DKG_Expecter) KeyShares ¶ added in v0.46.0
func (_e *DKG_Expecter) KeyShares() *DKG_KeyShares_Call
KeyShares is a helper method to define mock.On call
func (*DKG_Expecter) NodeID ¶ added in v0.46.0
func (_e *DKG_Expecter) NodeID(index interface{}) *DKG_NodeID_Call
NodeID is a helper method to define mock.On call
- index uint
func (*DKG_Expecter) Size ¶ added in v0.46.0
func (_e *DKG_Expecter) Size() *DKG_Size_Call
Size is a helper method to define mock.On call
type DKG_GroupKey_Call ¶ added in v0.46.0
DKG_GroupKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GroupKey'
func (*DKG_GroupKey_Call) Return ¶ added in v0.46.0
func (_c *DKG_GroupKey_Call) Return(publicKey crypto.PublicKey) *DKG_GroupKey_Call
func (*DKG_GroupKey_Call) Run ¶ added in v0.46.0
func (_c *DKG_GroupKey_Call) Run(run func()) *DKG_GroupKey_Call
func (*DKG_GroupKey_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DKG_GroupKey_Call) RunAndReturn(run func() crypto.PublicKey) *DKG_GroupKey_Call
type DKG_Index_Call ¶ added in v0.46.0
DKG_Index_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Index'
func (*DKG_Index_Call) Return ¶ added in v0.46.0
func (_c *DKG_Index_Call) Return(v uint, err error) *DKG_Index_Call
func (*DKG_Index_Call) Run ¶ added in v0.46.0
func (_c *DKG_Index_Call) Run(run func(nodeID flow.Identifier)) *DKG_Index_Call
func (*DKG_Index_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DKG_Index_Call) RunAndReturn(run func(nodeID flow.Identifier) (uint, error)) *DKG_Index_Call
type DKG_KeyShare_Call ¶ added in v0.46.0
type DKG_KeyShare_Call struct {
}
DKG_KeyShare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KeyShare'
func (*DKG_KeyShare_Call) Return ¶ added in v0.46.0
func (_c *DKG_KeyShare_Call) Return(publicKey crypto.PublicKey, err error) *DKG_KeyShare_Call
func (*DKG_KeyShare_Call) Run ¶ added in v0.46.0
func (_c *DKG_KeyShare_Call) Run(run func(nodeID flow.Identifier)) *DKG_KeyShare_Call
func (*DKG_KeyShare_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DKG_KeyShare_Call) RunAndReturn(run func(nodeID flow.Identifier) (crypto.PublicKey, error)) *DKG_KeyShare_Call
type DKG_KeyShares_Call ¶ added in v0.46.0
type DKG_KeyShares_Call struct {
}
DKG_KeyShares_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KeyShares'
func (*DKG_KeyShares_Call) Return ¶ added in v0.46.0
func (_c *DKG_KeyShares_Call) Return(publicKeys []crypto.PublicKey) *DKG_KeyShares_Call
func (*DKG_KeyShares_Call) Run ¶ added in v0.46.0
func (_c *DKG_KeyShares_Call) Run(run func()) *DKG_KeyShares_Call
func (*DKG_KeyShares_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DKG_KeyShares_Call) RunAndReturn(run func() []crypto.PublicKey) *DKG_KeyShares_Call
type DKG_NodeID_Call ¶ added in v0.46.0
DKG_NodeID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NodeID'
func (*DKG_NodeID_Call) Return ¶ added in v0.46.0
func (_c *DKG_NodeID_Call) Return(identifier flow.Identifier, err error) *DKG_NodeID_Call
func (*DKG_NodeID_Call) Run ¶ added in v0.46.0
func (_c *DKG_NodeID_Call) Run(run func(index uint)) *DKG_NodeID_Call
func (*DKG_NodeID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DKG_NodeID_Call) RunAndReturn(run func(index uint) (flow.Identifier, error)) *DKG_NodeID_Call
type DKG_Size_Call ¶ added in v0.46.0
DKG_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
func (*DKG_Size_Call) Return ¶ added in v0.46.0
func (_c *DKG_Size_Call) Return(v uint) *DKG_Size_Call
func (*DKG_Size_Call) Run ¶ added in v0.46.0
func (_c *DKG_Size_Call) Run(run func()) *DKG_Size_Call
func (*DKG_Size_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DKG_Size_Call) RunAndReturn(run func() uint) *DKG_Size_Call
type DynamicCommittee ¶ added in v0.29.0
DynamicCommittee is an autogenerated mock type for the DynamicCommittee type
func NewDynamicCommittee ¶ added in v0.29.0
func NewDynamicCommittee(t interface {
mock.TestingT
Cleanup(func())
}) *DynamicCommittee
NewDynamicCommittee creates a new instance of DynamicCommittee. 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 (*DynamicCommittee) DKG ¶ added in v0.29.0
func (_mock *DynamicCommittee) DKG(view uint64) (hotstuff.DKG, error)
DKG provides a mock function for the type DynamicCommittee
func (*DynamicCommittee) EXPECT ¶ added in v0.46.0
func (_m *DynamicCommittee) EXPECT() *DynamicCommittee_Expecter
func (*DynamicCommittee) IdentitiesByBlock ¶ added in v0.29.0
func (_mock *DynamicCommittee) IdentitiesByBlock(blockID flow.Identifier) (flow.IdentityList, error)
IdentitiesByBlock provides a mock function for the type DynamicCommittee
func (*DynamicCommittee) IdentitiesByEpoch ¶ added in v0.29.0
func (_mock *DynamicCommittee) IdentitiesByEpoch(view uint64) (flow.IdentitySkeletonList, error)
IdentitiesByEpoch provides a mock function for the type DynamicCommittee
func (*DynamicCommittee) IdentityByBlock ¶ added in v0.29.0
func (_mock *DynamicCommittee) IdentityByBlock(blockID flow.Identifier, participantID flow.Identifier) (*flow.Identity, error)
IdentityByBlock provides a mock function for the type DynamicCommittee
func (*DynamicCommittee) IdentityByEpoch ¶ added in v0.29.0
func (_mock *DynamicCommittee) IdentityByEpoch(view uint64, participantID flow.Identifier) (*flow.IdentitySkeleton, error)
IdentityByEpoch provides a mock function for the type DynamicCommittee
func (*DynamicCommittee) LeaderForView ¶ added in v0.29.0
func (_mock *DynamicCommittee) LeaderForView(view uint64) (flow.Identifier, error)
LeaderForView provides a mock function for the type DynamicCommittee
func (*DynamicCommittee) QuorumThresholdForView ¶ added in v0.29.0
func (_mock *DynamicCommittee) QuorumThresholdForView(view uint64) (uint64, error)
QuorumThresholdForView provides a mock function for the type DynamicCommittee
func (*DynamicCommittee) Self ¶ added in v0.29.0
func (_mock *DynamicCommittee) Self() flow.Identifier
Self provides a mock function for the type DynamicCommittee
func (*DynamicCommittee) TimeoutThresholdForView ¶ added in v0.29.0
func (_mock *DynamicCommittee) TimeoutThresholdForView(view uint64) (uint64, error)
TimeoutThresholdForView provides a mock function for the type DynamicCommittee
type DynamicCommittee_DKG_Call ¶ added in v0.46.0
DynamicCommittee_DKG_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DKG'
func (*DynamicCommittee_DKG_Call) Return ¶ added in v0.46.0
func (_c *DynamicCommittee_DKG_Call) Return(dKG hotstuff.DKG, err error) *DynamicCommittee_DKG_Call
func (*DynamicCommittee_DKG_Call) Run ¶ added in v0.46.0
func (_c *DynamicCommittee_DKG_Call) Run(run func(view uint64)) *DynamicCommittee_DKG_Call
func (*DynamicCommittee_DKG_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DynamicCommittee_DKG_Call) RunAndReturn(run func(view uint64) (hotstuff.DKG, error)) *DynamicCommittee_DKG_Call
type DynamicCommittee_Expecter ¶ added in v0.46.0
type DynamicCommittee_Expecter struct {
// contains filtered or unexported fields
}
func (*DynamicCommittee_Expecter) DKG ¶ added in v0.46.0
func (_e *DynamicCommittee_Expecter) DKG(view interface{}) *DynamicCommittee_DKG_Call
DKG is a helper method to define mock.On call
- view uint64
func (*DynamicCommittee_Expecter) IdentitiesByBlock ¶ added in v0.46.0
func (_e *DynamicCommittee_Expecter) IdentitiesByBlock(blockID interface{}) *DynamicCommittee_IdentitiesByBlock_Call
IdentitiesByBlock is a helper method to define mock.On call
- blockID flow.Identifier
func (*DynamicCommittee_Expecter) IdentitiesByEpoch ¶ added in v0.46.0
func (_e *DynamicCommittee_Expecter) IdentitiesByEpoch(view interface{}) *DynamicCommittee_IdentitiesByEpoch_Call
IdentitiesByEpoch is a helper method to define mock.On call
- view uint64
func (*DynamicCommittee_Expecter) IdentityByBlock ¶ added in v0.46.0
func (_e *DynamicCommittee_Expecter) IdentityByBlock(blockID interface{}, participantID interface{}) *DynamicCommittee_IdentityByBlock_Call
IdentityByBlock is a helper method to define mock.On call
- blockID flow.Identifier
- participantID flow.Identifier
func (*DynamicCommittee_Expecter) IdentityByEpoch ¶ added in v0.46.0
func (_e *DynamicCommittee_Expecter) IdentityByEpoch(view interface{}, participantID interface{}) *DynamicCommittee_IdentityByEpoch_Call
IdentityByEpoch is a helper method to define mock.On call
- view uint64
- participantID flow.Identifier
func (*DynamicCommittee_Expecter) LeaderForView ¶ added in v0.46.0
func (_e *DynamicCommittee_Expecter) LeaderForView(view interface{}) *DynamicCommittee_LeaderForView_Call
LeaderForView is a helper method to define mock.On call
- view uint64
func (*DynamicCommittee_Expecter) QuorumThresholdForView ¶ added in v0.46.0
func (_e *DynamicCommittee_Expecter) QuorumThresholdForView(view interface{}) *DynamicCommittee_QuorumThresholdForView_Call
QuorumThresholdForView is a helper method to define mock.On call
- view uint64
func (*DynamicCommittee_Expecter) Self ¶ added in v0.46.0
func (_e *DynamicCommittee_Expecter) Self() *DynamicCommittee_Self_Call
Self is a helper method to define mock.On call
func (*DynamicCommittee_Expecter) TimeoutThresholdForView ¶ added in v0.46.0
func (_e *DynamicCommittee_Expecter) TimeoutThresholdForView(view interface{}) *DynamicCommittee_TimeoutThresholdForView_Call
TimeoutThresholdForView is a helper method to define mock.On call
- view uint64
type DynamicCommittee_IdentitiesByBlock_Call ¶ added in v0.46.0
DynamicCommittee_IdentitiesByBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IdentitiesByBlock'
func (*DynamicCommittee_IdentitiesByBlock_Call) Return ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentitiesByBlock_Call) Return(v flow.IdentityList, err error) *DynamicCommittee_IdentitiesByBlock_Call
func (*DynamicCommittee_IdentitiesByBlock_Call) Run ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentitiesByBlock_Call) Run(run func(blockID flow.Identifier)) *DynamicCommittee_IdentitiesByBlock_Call
func (*DynamicCommittee_IdentitiesByBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentitiesByBlock_Call) RunAndReturn(run func(blockID flow.Identifier) (flow.IdentityList, error)) *DynamicCommittee_IdentitiesByBlock_Call
type DynamicCommittee_IdentitiesByEpoch_Call ¶ added in v0.46.0
DynamicCommittee_IdentitiesByEpoch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IdentitiesByEpoch'
func (*DynamicCommittee_IdentitiesByEpoch_Call) Return ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentitiesByEpoch_Call) Return(v flow.IdentitySkeletonList, err error) *DynamicCommittee_IdentitiesByEpoch_Call
func (*DynamicCommittee_IdentitiesByEpoch_Call) Run ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentitiesByEpoch_Call) Run(run func(view uint64)) *DynamicCommittee_IdentitiesByEpoch_Call
func (*DynamicCommittee_IdentitiesByEpoch_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentitiesByEpoch_Call) RunAndReturn(run func(view uint64) (flow.IdentitySkeletonList, error)) *DynamicCommittee_IdentitiesByEpoch_Call
type DynamicCommittee_IdentityByBlock_Call ¶ added in v0.46.0
DynamicCommittee_IdentityByBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IdentityByBlock'
func (*DynamicCommittee_IdentityByBlock_Call) Return ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentityByBlock_Call) Return(identity *flow.Identity, err error) *DynamicCommittee_IdentityByBlock_Call
func (*DynamicCommittee_IdentityByBlock_Call) Run ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentityByBlock_Call) Run(run func(blockID flow.Identifier, participantID flow.Identifier)) *DynamicCommittee_IdentityByBlock_Call
func (*DynamicCommittee_IdentityByBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentityByBlock_Call) RunAndReturn(run func(blockID flow.Identifier, participantID flow.Identifier) (*flow.Identity, error)) *DynamicCommittee_IdentityByBlock_Call
type DynamicCommittee_IdentityByEpoch_Call ¶ added in v0.46.0
DynamicCommittee_IdentityByEpoch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IdentityByEpoch'
func (*DynamicCommittee_IdentityByEpoch_Call) Return ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentityByEpoch_Call) Return(identitySkeleton *flow.IdentitySkeleton, err error) *DynamicCommittee_IdentityByEpoch_Call
func (*DynamicCommittee_IdentityByEpoch_Call) Run ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentityByEpoch_Call) Run(run func(view uint64, participantID flow.Identifier)) *DynamicCommittee_IdentityByEpoch_Call
func (*DynamicCommittee_IdentityByEpoch_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DynamicCommittee_IdentityByEpoch_Call) RunAndReturn(run func(view uint64, participantID flow.Identifier) (*flow.IdentitySkeleton, error)) *DynamicCommittee_IdentityByEpoch_Call
type DynamicCommittee_LeaderForView_Call ¶ added in v0.46.0
DynamicCommittee_LeaderForView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LeaderForView'
func (*DynamicCommittee_LeaderForView_Call) Return ¶ added in v0.46.0
func (_c *DynamicCommittee_LeaderForView_Call) Return(identifier flow.Identifier, err error) *DynamicCommittee_LeaderForView_Call
func (*DynamicCommittee_LeaderForView_Call) Run ¶ added in v0.46.0
func (_c *DynamicCommittee_LeaderForView_Call) Run(run func(view uint64)) *DynamicCommittee_LeaderForView_Call
func (*DynamicCommittee_LeaderForView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DynamicCommittee_LeaderForView_Call) RunAndReturn(run func(view uint64) (flow.Identifier, error)) *DynamicCommittee_LeaderForView_Call
type DynamicCommittee_QuorumThresholdForView_Call ¶ added in v0.46.0
DynamicCommittee_QuorumThresholdForView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuorumThresholdForView'
func (*DynamicCommittee_QuorumThresholdForView_Call) Return ¶ added in v0.46.0
func (_c *DynamicCommittee_QuorumThresholdForView_Call) Return(v uint64, err error) *DynamicCommittee_QuorumThresholdForView_Call
func (*DynamicCommittee_QuorumThresholdForView_Call) Run ¶ added in v0.46.0
func (_c *DynamicCommittee_QuorumThresholdForView_Call) Run(run func(view uint64)) *DynamicCommittee_QuorumThresholdForView_Call
func (*DynamicCommittee_QuorumThresholdForView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DynamicCommittee_QuorumThresholdForView_Call) RunAndReturn(run func(view uint64) (uint64, error)) *DynamicCommittee_QuorumThresholdForView_Call
type DynamicCommittee_Self_Call ¶ added in v0.46.0
DynamicCommittee_Self_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Self'
func (*DynamicCommittee_Self_Call) Return ¶ added in v0.46.0
func (_c *DynamicCommittee_Self_Call) Return(identifier flow.Identifier) *DynamicCommittee_Self_Call
func (*DynamicCommittee_Self_Call) Run ¶ added in v0.46.0
func (_c *DynamicCommittee_Self_Call) Run(run func()) *DynamicCommittee_Self_Call
func (*DynamicCommittee_Self_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DynamicCommittee_Self_Call) RunAndReturn(run func() flow.Identifier) *DynamicCommittee_Self_Call
type DynamicCommittee_TimeoutThresholdForView_Call ¶ added in v0.46.0
DynamicCommittee_TimeoutThresholdForView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TimeoutThresholdForView'
func (*DynamicCommittee_TimeoutThresholdForView_Call) Return ¶ added in v0.46.0
func (_c *DynamicCommittee_TimeoutThresholdForView_Call) Return(v uint64, err error) *DynamicCommittee_TimeoutThresholdForView_Call
func (*DynamicCommittee_TimeoutThresholdForView_Call) Run ¶ added in v0.46.0
func (_c *DynamicCommittee_TimeoutThresholdForView_Call) Run(run func(view uint64)) *DynamicCommittee_TimeoutThresholdForView_Call
func (*DynamicCommittee_TimeoutThresholdForView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *DynamicCommittee_TimeoutThresholdForView_Call) RunAndReturn(run func(view uint64) (uint64, error)) *DynamicCommittee_TimeoutThresholdForView_Call
type EventHandler ¶
EventHandler is an autogenerated mock type for the EventHandler type
func NewEventHandler ¶ added in v0.26.1
func NewEventHandler(t interface {
mock.TestingT
Cleanup(func())
}) *EventHandler
NewEventHandler creates a new instance of EventHandler. 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 (*EventHandler) EXPECT ¶ added in v0.46.0
func (_m *EventHandler) EXPECT() *EventHandler_Expecter
func (*EventHandler) OnLocalTimeout ¶
func (_mock *EventHandler) OnLocalTimeout() error
OnLocalTimeout provides a mock function for the type EventHandler
func (*EventHandler) OnPartialTcCreated ¶ added in v0.29.0
func (_mock *EventHandler) OnPartialTcCreated(partialTC *hotstuff.PartialTcCreated) error
OnPartialTcCreated provides a mock function for the type EventHandler
func (*EventHandler) OnReceiveProposal ¶
func (_mock *EventHandler) OnReceiveProposal(proposal *model.SignedProposal) error
OnReceiveProposal provides a mock function for the type EventHandler
func (*EventHandler) OnReceiveQc ¶ added in v0.29.0
func (_mock *EventHandler) OnReceiveQc(qc *flow.QuorumCertificate) error
OnReceiveQc provides a mock function for the type EventHandler
func (*EventHandler) OnReceiveTc ¶ added in v0.29.0
func (_mock *EventHandler) OnReceiveTc(tc *flow.TimeoutCertificate) error
OnReceiveTc provides a mock function for the type EventHandler
func (*EventHandler) Start ¶
func (_mock *EventHandler) Start(ctx context.Context) error
Start provides a mock function for the type EventHandler
func (*EventHandler) TimeoutChannel ¶
func (_mock *EventHandler) TimeoutChannel() <-chan time.Time
TimeoutChannel provides a mock function for the type EventHandler
type EventHandler_Expecter ¶ added in v0.46.0
type EventHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*EventHandler_Expecter) OnLocalTimeout ¶ added in v0.46.0
func (_e *EventHandler_Expecter) OnLocalTimeout() *EventHandler_OnLocalTimeout_Call
OnLocalTimeout is a helper method to define mock.On call
func (*EventHandler_Expecter) OnPartialTcCreated ¶ added in v0.46.0
func (_e *EventHandler_Expecter) OnPartialTcCreated(partialTC interface{}) *EventHandler_OnPartialTcCreated_Call
OnPartialTcCreated is a helper method to define mock.On call
- partialTC *hotstuff.PartialTcCreated
func (*EventHandler_Expecter) OnReceiveProposal ¶ added in v0.46.0
func (_e *EventHandler_Expecter) OnReceiveProposal(proposal interface{}) *EventHandler_OnReceiveProposal_Call
OnReceiveProposal is a helper method to define mock.On call
- proposal *model.SignedProposal
func (*EventHandler_Expecter) OnReceiveQc ¶ added in v0.46.0
func (_e *EventHandler_Expecter) OnReceiveQc(qc interface{}) *EventHandler_OnReceiveQc_Call
OnReceiveQc is a helper method to define mock.On call
- qc *flow.QuorumCertificate
func (*EventHandler_Expecter) OnReceiveTc ¶ added in v0.46.0
func (_e *EventHandler_Expecter) OnReceiveTc(tc interface{}) *EventHandler_OnReceiveTc_Call
OnReceiveTc is a helper method to define mock.On call
- tc *flow.TimeoutCertificate
func (*EventHandler_Expecter) Start ¶ added in v0.46.0
func (_e *EventHandler_Expecter) Start(ctx interface{}) *EventHandler_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*EventHandler_Expecter) TimeoutChannel ¶ added in v0.46.0
func (_e *EventHandler_Expecter) TimeoutChannel() *EventHandler_TimeoutChannel_Call
TimeoutChannel is a helper method to define mock.On call
type EventHandler_OnLocalTimeout_Call ¶ added in v0.46.0
EventHandler_OnLocalTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnLocalTimeout'
func (*EventHandler_OnLocalTimeout_Call) Return ¶ added in v0.46.0
func (_c *EventHandler_OnLocalTimeout_Call) Return(err error) *EventHandler_OnLocalTimeout_Call
func (*EventHandler_OnLocalTimeout_Call) Run ¶ added in v0.46.0
func (_c *EventHandler_OnLocalTimeout_Call) Run(run func()) *EventHandler_OnLocalTimeout_Call
func (*EventHandler_OnLocalTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventHandler_OnLocalTimeout_Call) RunAndReturn(run func() error) *EventHandler_OnLocalTimeout_Call
type EventHandler_OnPartialTcCreated_Call ¶ added in v0.46.0
EventHandler_OnPartialTcCreated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnPartialTcCreated'
func (*EventHandler_OnPartialTcCreated_Call) Return ¶ added in v0.46.0
func (_c *EventHandler_OnPartialTcCreated_Call) Return(err error) *EventHandler_OnPartialTcCreated_Call
func (*EventHandler_OnPartialTcCreated_Call) Run ¶ added in v0.46.0
func (_c *EventHandler_OnPartialTcCreated_Call) Run(run func(partialTC *hotstuff.PartialTcCreated)) *EventHandler_OnPartialTcCreated_Call
func (*EventHandler_OnPartialTcCreated_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventHandler_OnPartialTcCreated_Call) RunAndReturn(run func(partialTC *hotstuff.PartialTcCreated) error) *EventHandler_OnPartialTcCreated_Call
type EventHandler_OnReceiveProposal_Call ¶ added in v0.46.0
EventHandler_OnReceiveProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReceiveProposal'
func (*EventHandler_OnReceiveProposal_Call) Return ¶ added in v0.46.0
func (_c *EventHandler_OnReceiveProposal_Call) Return(err error) *EventHandler_OnReceiveProposal_Call
func (*EventHandler_OnReceiveProposal_Call) Run ¶ added in v0.46.0
func (_c *EventHandler_OnReceiveProposal_Call) Run(run func(proposal *model.SignedProposal)) *EventHandler_OnReceiveProposal_Call
func (*EventHandler_OnReceiveProposal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventHandler_OnReceiveProposal_Call) RunAndReturn(run func(proposal *model.SignedProposal) error) *EventHandler_OnReceiveProposal_Call
type EventHandler_OnReceiveQc_Call ¶ added in v0.46.0
EventHandler_OnReceiveQc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReceiveQc'
func (*EventHandler_OnReceiveQc_Call) Return ¶ added in v0.46.0
func (_c *EventHandler_OnReceiveQc_Call) Return(err error) *EventHandler_OnReceiveQc_Call
func (*EventHandler_OnReceiveQc_Call) Run ¶ added in v0.46.0
func (_c *EventHandler_OnReceiveQc_Call) Run(run func(qc *flow.QuorumCertificate)) *EventHandler_OnReceiveQc_Call
func (*EventHandler_OnReceiveQc_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventHandler_OnReceiveQc_Call) RunAndReturn(run func(qc *flow.QuorumCertificate) error) *EventHandler_OnReceiveQc_Call
type EventHandler_OnReceiveTc_Call ¶ added in v0.46.0
EventHandler_OnReceiveTc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReceiveTc'
func (*EventHandler_OnReceiveTc_Call) Return ¶ added in v0.46.0
func (_c *EventHandler_OnReceiveTc_Call) Return(err error) *EventHandler_OnReceiveTc_Call
func (*EventHandler_OnReceiveTc_Call) Run ¶ added in v0.46.0
func (_c *EventHandler_OnReceiveTc_Call) Run(run func(tc *flow.TimeoutCertificate)) *EventHandler_OnReceiveTc_Call
func (*EventHandler_OnReceiveTc_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventHandler_OnReceiveTc_Call) RunAndReturn(run func(tc *flow.TimeoutCertificate) error) *EventHandler_OnReceiveTc_Call
type EventHandler_Start_Call ¶ added in v0.46.0
EventHandler_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*EventHandler_Start_Call) Return ¶ added in v0.46.0
func (_c *EventHandler_Start_Call) Return(err error) *EventHandler_Start_Call
func (*EventHandler_Start_Call) Run ¶ added in v0.46.0
func (_c *EventHandler_Start_Call) Run(run func(ctx context.Context)) *EventHandler_Start_Call
func (*EventHandler_Start_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventHandler_Start_Call) RunAndReturn(run func(ctx context.Context) error) *EventHandler_Start_Call
type EventHandler_TimeoutChannel_Call ¶ added in v0.46.0
EventHandler_TimeoutChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TimeoutChannel'
func (*EventHandler_TimeoutChannel_Call) Return ¶ added in v0.46.0
func (_c *EventHandler_TimeoutChannel_Call) Return(timeCh <-chan time.Time) *EventHandler_TimeoutChannel_Call
func (*EventHandler_TimeoutChannel_Call) Run ¶ added in v0.46.0
func (_c *EventHandler_TimeoutChannel_Call) Run(run func()) *EventHandler_TimeoutChannel_Call
func (*EventHandler_TimeoutChannel_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventHandler_TimeoutChannel_Call) RunAndReturn(run func() <-chan time.Time) *EventHandler_TimeoutChannel_Call
type EventLoop ¶ added in v0.23.9
EventLoop is an autogenerated mock type for the EventLoop type
func NewEventLoop ¶ added in v0.26.1
NewEventLoop creates a new instance of EventLoop. 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 (*EventLoop) Done ¶ added in v0.23.9
func (_mock *EventLoop) Done() <-chan struct{}
Done provides a mock function for the type EventLoop
func (*EventLoop) EXPECT ¶ added in v0.46.0
func (_m *EventLoop) EXPECT() *EventLoop_Expecter
func (*EventLoop) OnNewQcDiscovered ¶ added in v0.29.0
func (_mock *EventLoop) OnNewQcDiscovered(certificate *flow.QuorumCertificate)
OnNewQcDiscovered provides a mock function for the type EventLoop
func (*EventLoop) OnNewTcDiscovered ¶ added in v0.29.0
func (_mock *EventLoop) OnNewTcDiscovered(certificate *flow.TimeoutCertificate)
OnNewTcDiscovered provides a mock function for the type EventLoop
func (*EventLoop) OnPartialTcCreated ¶ added in v0.29.0
func (_mock *EventLoop) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)
OnPartialTcCreated provides a mock function for the type EventLoop
func (*EventLoop) OnQcConstructedFromVotes ¶ added in v0.29.0
func (_mock *EventLoop) OnQcConstructedFromVotes(quorumCertificate *flow.QuorumCertificate)
OnQcConstructedFromVotes provides a mock function for the type EventLoop
func (*EventLoop) OnTcConstructedFromTimeouts ¶ added in v0.29.0
func (_mock *EventLoop) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate)
OnTcConstructedFromTimeouts provides a mock function for the type EventLoop
func (*EventLoop) OnTimeoutProcessed ¶ added in v0.31.0
func (_mock *EventLoop) OnTimeoutProcessed(timeout *model.TimeoutObject)
OnTimeoutProcessed provides a mock function for the type EventLoop
func (*EventLoop) OnVoteProcessed ¶ added in v0.31.0
OnVoteProcessed provides a mock function for the type EventLoop
func (*EventLoop) Ready ¶ added in v0.23.9
func (_mock *EventLoop) Ready() <-chan struct{}
Ready provides a mock function for the type EventLoop
func (*EventLoop) Start ¶ added in v0.23.9
func (_mock *EventLoop) Start(signalerContext irrecoverable.SignalerContext)
Start provides a mock function for the type EventLoop
func (*EventLoop) SubmitProposal ¶ added in v0.23.9
func (_mock *EventLoop) SubmitProposal(proposal *model.SignedProposal)
SubmitProposal provides a mock function for the type EventLoop
type EventLoop_Done_Call ¶ added in v0.46.0
EventLoop_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*EventLoop_Done_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_Done_Call) Return(valCh <-chan struct{}) *EventLoop_Done_Call
func (*EventLoop_Done_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_Done_Call) Run(run func()) *EventLoop_Done_Call
func (*EventLoop_Done_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_Done_Call) RunAndReturn(run func() <-chan struct{}) *EventLoop_Done_Call
type EventLoop_Expecter ¶ added in v0.46.0
type EventLoop_Expecter struct {
// contains filtered or unexported fields
}
func (*EventLoop_Expecter) Done ¶ added in v0.46.0
func (_e *EventLoop_Expecter) Done() *EventLoop_Done_Call
Done is a helper method to define mock.On call
func (*EventLoop_Expecter) OnNewQcDiscovered ¶ added in v0.46.0
func (_e *EventLoop_Expecter) OnNewQcDiscovered(certificate interface{}) *EventLoop_OnNewQcDiscovered_Call
OnNewQcDiscovered is a helper method to define mock.On call
- certificate *flow.QuorumCertificate
func (*EventLoop_Expecter) OnNewTcDiscovered ¶ added in v0.46.0
func (_e *EventLoop_Expecter) OnNewTcDiscovered(certificate interface{}) *EventLoop_OnNewTcDiscovered_Call
OnNewTcDiscovered is a helper method to define mock.On call
- certificate *flow.TimeoutCertificate
func (*EventLoop_Expecter) OnPartialTcCreated ¶ added in v0.46.0
func (_e *EventLoop_Expecter) OnPartialTcCreated(view interface{}, newestQC interface{}, lastViewTC interface{}) *EventLoop_OnPartialTcCreated_Call
OnPartialTcCreated is a helper method to define mock.On call
- view uint64
- newestQC *flow.QuorumCertificate
- lastViewTC *flow.TimeoutCertificate
func (*EventLoop_Expecter) OnQcConstructedFromVotes ¶ added in v0.46.0
func (_e *EventLoop_Expecter) OnQcConstructedFromVotes(quorumCertificate interface{}) *EventLoop_OnQcConstructedFromVotes_Call
OnQcConstructedFromVotes is a helper method to define mock.On call
- quorumCertificate *flow.QuorumCertificate
func (*EventLoop_Expecter) OnTcConstructedFromTimeouts ¶ added in v0.46.0
func (_e *EventLoop_Expecter) OnTcConstructedFromTimeouts(certificate interface{}) *EventLoop_OnTcConstructedFromTimeouts_Call
OnTcConstructedFromTimeouts is a helper method to define mock.On call
- certificate *flow.TimeoutCertificate
func (*EventLoop_Expecter) OnTimeoutProcessed ¶ added in v0.46.0
func (_e *EventLoop_Expecter) OnTimeoutProcessed(timeout interface{}) *EventLoop_OnTimeoutProcessed_Call
OnTimeoutProcessed is a helper method to define mock.On call
- timeout *model.TimeoutObject
func (*EventLoop_Expecter) OnVoteProcessed ¶ added in v0.46.0
func (_e *EventLoop_Expecter) OnVoteProcessed(vote interface{}) *EventLoop_OnVoteProcessed_Call
OnVoteProcessed is a helper method to define mock.On call
- vote *model.Vote
func (*EventLoop_Expecter) Ready ¶ added in v0.46.0
func (_e *EventLoop_Expecter) Ready() *EventLoop_Ready_Call
Ready is a helper method to define mock.On call
func (*EventLoop_Expecter) Start ¶ added in v0.46.0
func (_e *EventLoop_Expecter) Start(signalerContext interface{}) *EventLoop_Start_Call
Start is a helper method to define mock.On call
- signalerContext irrecoverable.SignalerContext
func (*EventLoop_Expecter) SubmitProposal ¶ added in v0.46.0
func (_e *EventLoop_Expecter) SubmitProposal(proposal interface{}) *EventLoop_SubmitProposal_Call
SubmitProposal is a helper method to define mock.On call
- proposal *model.SignedProposal
type EventLoop_OnNewQcDiscovered_Call ¶ added in v0.46.0
EventLoop_OnNewQcDiscovered_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnNewQcDiscovered'
func (*EventLoop_OnNewQcDiscovered_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_OnNewQcDiscovered_Call) Return() *EventLoop_OnNewQcDiscovered_Call
func (*EventLoop_OnNewQcDiscovered_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_OnNewQcDiscovered_Call) Run(run func(certificate *flow.QuorumCertificate)) *EventLoop_OnNewQcDiscovered_Call
func (*EventLoop_OnNewQcDiscovered_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_OnNewQcDiscovered_Call) RunAndReturn(run func(certificate *flow.QuorumCertificate)) *EventLoop_OnNewQcDiscovered_Call
type EventLoop_OnNewTcDiscovered_Call ¶ added in v0.46.0
EventLoop_OnNewTcDiscovered_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnNewTcDiscovered'
func (*EventLoop_OnNewTcDiscovered_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_OnNewTcDiscovered_Call) Return() *EventLoop_OnNewTcDiscovered_Call
func (*EventLoop_OnNewTcDiscovered_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_OnNewTcDiscovered_Call) Run(run func(certificate *flow.TimeoutCertificate)) *EventLoop_OnNewTcDiscovered_Call
func (*EventLoop_OnNewTcDiscovered_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_OnNewTcDiscovered_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *EventLoop_OnNewTcDiscovered_Call
type EventLoop_OnPartialTcCreated_Call ¶ added in v0.46.0
EventLoop_OnPartialTcCreated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnPartialTcCreated'
func (*EventLoop_OnPartialTcCreated_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_OnPartialTcCreated_Call) Return() *EventLoop_OnPartialTcCreated_Call
func (*EventLoop_OnPartialTcCreated_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_OnPartialTcCreated_Call) Run(run func(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *EventLoop_OnPartialTcCreated_Call
func (*EventLoop_OnPartialTcCreated_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_OnPartialTcCreated_Call) RunAndReturn(run func(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *EventLoop_OnPartialTcCreated_Call
type EventLoop_OnQcConstructedFromVotes_Call ¶ added in v0.46.0
EventLoop_OnQcConstructedFromVotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnQcConstructedFromVotes'
func (*EventLoop_OnQcConstructedFromVotes_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_OnQcConstructedFromVotes_Call) Return() *EventLoop_OnQcConstructedFromVotes_Call
func (*EventLoop_OnQcConstructedFromVotes_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_OnQcConstructedFromVotes_Call) Run(run func(quorumCertificate *flow.QuorumCertificate)) *EventLoop_OnQcConstructedFromVotes_Call
func (*EventLoop_OnQcConstructedFromVotes_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_OnQcConstructedFromVotes_Call) RunAndReturn(run func(quorumCertificate *flow.QuorumCertificate)) *EventLoop_OnQcConstructedFromVotes_Call
type EventLoop_OnTcConstructedFromTimeouts_Call ¶ added in v0.46.0
EventLoop_OnTcConstructedFromTimeouts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnTcConstructedFromTimeouts'
func (*EventLoop_OnTcConstructedFromTimeouts_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_OnTcConstructedFromTimeouts_Call) Return() *EventLoop_OnTcConstructedFromTimeouts_Call
func (*EventLoop_OnTcConstructedFromTimeouts_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_OnTcConstructedFromTimeouts_Call) Run(run func(certificate *flow.TimeoutCertificate)) *EventLoop_OnTcConstructedFromTimeouts_Call
func (*EventLoop_OnTcConstructedFromTimeouts_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_OnTcConstructedFromTimeouts_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *EventLoop_OnTcConstructedFromTimeouts_Call
type EventLoop_OnTimeoutProcessed_Call ¶ added in v0.46.0
EventLoop_OnTimeoutProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnTimeoutProcessed'
func (*EventLoop_OnTimeoutProcessed_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_OnTimeoutProcessed_Call) Return() *EventLoop_OnTimeoutProcessed_Call
func (*EventLoop_OnTimeoutProcessed_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_OnTimeoutProcessed_Call) Run(run func(timeout *model.TimeoutObject)) *EventLoop_OnTimeoutProcessed_Call
func (*EventLoop_OnTimeoutProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_OnTimeoutProcessed_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *EventLoop_OnTimeoutProcessed_Call
type EventLoop_OnVoteProcessed_Call ¶ added in v0.46.0
EventLoop_OnVoteProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnVoteProcessed'
func (*EventLoop_OnVoteProcessed_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_OnVoteProcessed_Call) Return() *EventLoop_OnVoteProcessed_Call
func (*EventLoop_OnVoteProcessed_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_OnVoteProcessed_Call) Run(run func(vote *model.Vote)) *EventLoop_OnVoteProcessed_Call
func (*EventLoop_OnVoteProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_OnVoteProcessed_Call) RunAndReturn(run func(vote *model.Vote)) *EventLoop_OnVoteProcessed_Call
type EventLoop_Ready_Call ¶ added in v0.46.0
EventLoop_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*EventLoop_Ready_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_Ready_Call) Return(valCh <-chan struct{}) *EventLoop_Ready_Call
func (*EventLoop_Ready_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_Ready_Call) Run(run func()) *EventLoop_Ready_Call
func (*EventLoop_Ready_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_Ready_Call) RunAndReturn(run func() <-chan struct{}) *EventLoop_Ready_Call
type EventLoop_Start_Call ¶ added in v0.46.0
EventLoop_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*EventLoop_Start_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_Start_Call) Return() *EventLoop_Start_Call
func (*EventLoop_Start_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *EventLoop_Start_Call
func (*EventLoop_Start_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *EventLoop_Start_Call
type EventLoop_SubmitProposal_Call ¶ added in v0.46.0
EventLoop_SubmitProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubmitProposal'
func (*EventLoop_SubmitProposal_Call) Return ¶ added in v0.46.0
func (_c *EventLoop_SubmitProposal_Call) Return() *EventLoop_SubmitProposal_Call
func (*EventLoop_SubmitProposal_Call) Run ¶ added in v0.46.0
func (_c *EventLoop_SubmitProposal_Call) Run(run func(proposal *model.SignedProposal)) *EventLoop_SubmitProposal_Call
func (*EventLoop_SubmitProposal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EventLoop_SubmitProposal_Call) RunAndReturn(run func(proposal *model.SignedProposal)) *EventLoop_SubmitProposal_Call
type FinalizationConsumer ¶
FinalizationConsumer is an autogenerated mock type for the FinalizationConsumer type
func NewFinalizationConsumer ¶ added in v0.26.1
func NewFinalizationConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *FinalizationConsumer
NewFinalizationConsumer creates a new instance of FinalizationConsumer. 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 (*FinalizationConsumer) EXPECT ¶ added in v0.46.0
func (_m *FinalizationConsumer) EXPECT() *FinalizationConsumer_Expecter
func (*FinalizationConsumer) OnBlockIncorporated ¶
func (_mock *FinalizationConsumer) OnBlockIncorporated(block *model.Block)
OnBlockIncorporated provides a mock function for the type FinalizationConsumer
func (*FinalizationConsumer) OnFinalizedBlock ¶
func (_mock *FinalizationConsumer) OnFinalizedBlock(block *model.Block)
OnFinalizedBlock provides a mock function for the type FinalizationConsumer
type FinalizationConsumer_Expecter ¶ added in v0.46.0
type FinalizationConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*FinalizationConsumer_Expecter) OnBlockIncorporated ¶ added in v0.46.0
func (_e *FinalizationConsumer_Expecter) OnBlockIncorporated(block interface{}) *FinalizationConsumer_OnBlockIncorporated_Call
OnBlockIncorporated is a helper method to define mock.On call
- block *model.Block
func (*FinalizationConsumer_Expecter) OnFinalizedBlock ¶ added in v0.46.0
func (_e *FinalizationConsumer_Expecter) OnFinalizedBlock(block interface{}) *FinalizationConsumer_OnFinalizedBlock_Call
OnFinalizedBlock is a helper method to define mock.On call
- block *model.Block
type FinalizationConsumer_OnBlockIncorporated_Call ¶ added in v0.46.0
FinalizationConsumer_OnBlockIncorporated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBlockIncorporated'
func (*FinalizationConsumer_OnBlockIncorporated_Call) Run ¶ added in v0.46.0
func (_c *FinalizationConsumer_OnBlockIncorporated_Call) Run(run func(block *model.Block)) *FinalizationConsumer_OnBlockIncorporated_Call
func (*FinalizationConsumer_OnBlockIncorporated_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FinalizationConsumer_OnBlockIncorporated_Call) RunAndReturn(run func(block *model.Block)) *FinalizationConsumer_OnBlockIncorporated_Call
type FinalizationConsumer_OnFinalizedBlock_Call ¶ added in v0.46.0
FinalizationConsumer_OnFinalizedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnFinalizedBlock'
func (*FinalizationConsumer_OnFinalizedBlock_Call) Return ¶ added in v0.46.0
func (_c *FinalizationConsumer_OnFinalizedBlock_Call) Return() *FinalizationConsumer_OnFinalizedBlock_Call
func (*FinalizationConsumer_OnFinalizedBlock_Call) Run ¶ added in v0.46.0
func (_c *FinalizationConsumer_OnFinalizedBlock_Call) Run(run func(block *model.Block)) *FinalizationConsumer_OnFinalizedBlock_Call
func (*FinalizationConsumer_OnFinalizedBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FinalizationConsumer_OnFinalizedBlock_Call) RunAndReturn(run func(block *model.Block)) *FinalizationConsumer_OnFinalizedBlock_Call
type FinalizationRegistrar ¶ added in v0.45.0
FinalizationRegistrar is an autogenerated mock type for the FinalizationRegistrar type
func NewFinalizationRegistrar ¶ added in v0.45.0
func NewFinalizationRegistrar(t interface {
mock.TestingT
Cleanup(func())
}) *FinalizationRegistrar
NewFinalizationRegistrar creates a new instance of FinalizationRegistrar. 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 (*FinalizationRegistrar) AddOnBlockFinalizedConsumer ¶ added in v0.45.0
func (_mock *FinalizationRegistrar) AddOnBlockFinalizedConsumer(consumer func(block *model.Block))
AddOnBlockFinalizedConsumer provides a mock function for the type FinalizationRegistrar
func (*FinalizationRegistrar) AddOnBlockIncorporatedConsumer ¶ added in v0.45.0
func (_mock *FinalizationRegistrar) AddOnBlockIncorporatedConsumer(consumer func(block *model.Block))
AddOnBlockIncorporatedConsumer provides a mock function for the type FinalizationRegistrar
func (*FinalizationRegistrar) EXPECT ¶ added in v0.46.0
func (_m *FinalizationRegistrar) EXPECT() *FinalizationRegistrar_Expecter
type FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call ¶ added in v0.46.0
FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOnBlockFinalizedConsumer'
func (*FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) Run ¶ added in v0.46.0
func (_c *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) Run(run func(consumer func(block *model.Block))) *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call
func (*FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) RunAndReturn(run func(consumer func(block *model.Block))) *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call
type FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call ¶ added in v0.46.0
FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddOnBlockIncorporatedConsumer'
func (*FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) Run ¶ added in v0.46.0
func (_c *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) Run(run func(consumer func(block *model.Block))) *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call
func (*FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) RunAndReturn(run func(consumer func(block *model.Block))) *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call
type FinalizationRegistrar_Expecter ¶ added in v0.46.0
type FinalizationRegistrar_Expecter struct {
// contains filtered or unexported fields
}
func (*FinalizationRegistrar_Expecter) AddOnBlockFinalizedConsumer ¶ added in v0.46.0
func (_e *FinalizationRegistrar_Expecter) AddOnBlockFinalizedConsumer(consumer interface{}) *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call
AddOnBlockFinalizedConsumer is a helper method to define mock.On call
- consumer func(block *model.Block)
func (*FinalizationRegistrar_Expecter) AddOnBlockIncorporatedConsumer ¶ added in v0.46.0
func (_e *FinalizationRegistrar_Expecter) AddOnBlockIncorporatedConsumer(consumer interface{}) *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call
AddOnBlockIncorporatedConsumer is a helper method to define mock.On call
- consumer func(block *model.Block)
type FollowerConsumer ¶ added in v0.31.0
FollowerConsumer is an autogenerated mock type for the FollowerConsumer type
func NewFollowerConsumer ¶ added in v0.31.0
func NewFollowerConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *FollowerConsumer
NewFollowerConsumer creates a new instance of FollowerConsumer. 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 (*FollowerConsumer) EXPECT ¶ added in v0.46.0
func (_m *FollowerConsumer) EXPECT() *FollowerConsumer_Expecter
func (*FollowerConsumer) OnBlockIncorporated ¶ added in v0.31.0
func (_mock *FollowerConsumer) OnBlockIncorporated(block *model.Block)
OnBlockIncorporated provides a mock function for the type FollowerConsumer
func (*FollowerConsumer) OnDoubleProposeDetected ¶ added in v0.31.0
func (_mock *FollowerConsumer) OnDoubleProposeDetected(block *model.Block, block1 *model.Block)
OnDoubleProposeDetected provides a mock function for the type FollowerConsumer
func (*FollowerConsumer) OnFinalizedBlock ¶ added in v0.31.0
func (_mock *FollowerConsumer) OnFinalizedBlock(block *model.Block)
OnFinalizedBlock provides a mock function for the type FollowerConsumer
func (*FollowerConsumer) OnInvalidBlockDetected ¶ added in v0.31.0
func (_mock *FollowerConsumer) OnInvalidBlockDetected(err flow.Slashable[model.InvalidProposalError])
OnInvalidBlockDetected provides a mock function for the type FollowerConsumer
type FollowerConsumer_Expecter ¶ added in v0.46.0
type FollowerConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*FollowerConsumer_Expecter) OnBlockIncorporated ¶ added in v0.46.0
func (_e *FollowerConsumer_Expecter) OnBlockIncorporated(block interface{}) *FollowerConsumer_OnBlockIncorporated_Call
OnBlockIncorporated is a helper method to define mock.On call
- block *model.Block
func (*FollowerConsumer_Expecter) OnDoubleProposeDetected ¶ added in v0.46.0
func (_e *FollowerConsumer_Expecter) OnDoubleProposeDetected(block interface{}, block1 interface{}) *FollowerConsumer_OnDoubleProposeDetected_Call
OnDoubleProposeDetected is a helper method to define mock.On call
- block *model.Block
- block1 *model.Block
func (*FollowerConsumer_Expecter) OnFinalizedBlock ¶ added in v0.46.0
func (_e *FollowerConsumer_Expecter) OnFinalizedBlock(block interface{}) *FollowerConsumer_OnFinalizedBlock_Call
OnFinalizedBlock is a helper method to define mock.On call
- block *model.Block
func (*FollowerConsumer_Expecter) OnInvalidBlockDetected ¶ added in v0.46.0
func (_e *FollowerConsumer_Expecter) OnInvalidBlockDetected(err interface{}) *FollowerConsumer_OnInvalidBlockDetected_Call
OnInvalidBlockDetected is a helper method to define mock.On call
- err flow.Slashable[model.InvalidProposalError]
type FollowerConsumer_OnBlockIncorporated_Call ¶ added in v0.46.0
FollowerConsumer_OnBlockIncorporated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBlockIncorporated'
func (*FollowerConsumer_OnBlockIncorporated_Call) Return ¶ added in v0.46.0
func (_c *FollowerConsumer_OnBlockIncorporated_Call) Return() *FollowerConsumer_OnBlockIncorporated_Call
func (*FollowerConsumer_OnBlockIncorporated_Call) Run ¶ added in v0.46.0
func (_c *FollowerConsumer_OnBlockIncorporated_Call) Run(run func(block *model.Block)) *FollowerConsumer_OnBlockIncorporated_Call
func (*FollowerConsumer_OnBlockIncorporated_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerConsumer_OnBlockIncorporated_Call) RunAndReturn(run func(block *model.Block)) *FollowerConsumer_OnBlockIncorporated_Call
type FollowerConsumer_OnDoubleProposeDetected_Call ¶ added in v0.46.0
FollowerConsumer_OnDoubleProposeDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDoubleProposeDetected'
func (*FollowerConsumer_OnDoubleProposeDetected_Call) Run ¶ added in v0.46.0
func (_c *FollowerConsumer_OnDoubleProposeDetected_Call) Run(run func(block *model.Block, block1 *model.Block)) *FollowerConsumer_OnDoubleProposeDetected_Call
func (*FollowerConsumer_OnDoubleProposeDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerConsumer_OnDoubleProposeDetected_Call) RunAndReturn(run func(block *model.Block, block1 *model.Block)) *FollowerConsumer_OnDoubleProposeDetected_Call
type FollowerConsumer_OnFinalizedBlock_Call ¶ added in v0.46.0
FollowerConsumer_OnFinalizedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnFinalizedBlock'
func (*FollowerConsumer_OnFinalizedBlock_Call) Return ¶ added in v0.46.0
func (_c *FollowerConsumer_OnFinalizedBlock_Call) Return() *FollowerConsumer_OnFinalizedBlock_Call
func (*FollowerConsumer_OnFinalizedBlock_Call) Run ¶ added in v0.46.0
func (_c *FollowerConsumer_OnFinalizedBlock_Call) Run(run func(block *model.Block)) *FollowerConsumer_OnFinalizedBlock_Call
func (*FollowerConsumer_OnFinalizedBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerConsumer_OnFinalizedBlock_Call) RunAndReturn(run func(block *model.Block)) *FollowerConsumer_OnFinalizedBlock_Call
type FollowerConsumer_OnInvalidBlockDetected_Call ¶ added in v0.46.0
FollowerConsumer_OnInvalidBlockDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnInvalidBlockDetected'
func (*FollowerConsumer_OnInvalidBlockDetected_Call) Return ¶ added in v0.46.0
func (_c *FollowerConsumer_OnInvalidBlockDetected_Call) Return() *FollowerConsumer_OnInvalidBlockDetected_Call
func (*FollowerConsumer_OnInvalidBlockDetected_Call) Run ¶ added in v0.46.0
func (_c *FollowerConsumer_OnInvalidBlockDetected_Call) Run(run func(err flow.Slashable[model.InvalidProposalError])) *FollowerConsumer_OnInvalidBlockDetected_Call
func (*FollowerConsumer_OnInvalidBlockDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerConsumer_OnInvalidBlockDetected_Call) RunAndReturn(run func(err flow.Slashable[model.InvalidProposalError])) *FollowerConsumer_OnInvalidBlockDetected_Call
type Forks ¶
Forks is an autogenerated mock type for the Forks type
func NewForks ¶ added in v0.26.1
NewForks creates a new instance of Forks. 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 (*Forks) AddCertifiedBlock ¶ added in v0.31.0
func (_mock *Forks) AddCertifiedBlock(certifiedBlock *model.CertifiedBlock) error
AddCertifiedBlock provides a mock function for the type Forks
func (*Forks) AddValidatedBlock ¶ added in v0.31.0
AddValidatedBlock provides a mock function for the type Forks
func (*Forks) EXPECT ¶ added in v0.46.0
func (_m *Forks) EXPECT() *Forks_Expecter
func (*Forks) FinalityProof ¶ added in v0.31.0
func (_mock *Forks) FinalityProof() (*hotstuff.FinalityProof, bool)
FinalityProof provides a mock function for the type Forks
func (*Forks) FinalizedBlock ¶
FinalizedBlock provides a mock function for the type Forks
func (*Forks) FinalizedView ¶
FinalizedView provides a mock function for the type Forks
type Forks_AddCertifiedBlock_Call ¶ added in v0.46.0
Forks_AddCertifiedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCertifiedBlock'
func (*Forks_AddCertifiedBlock_Call) Return ¶ added in v0.46.0
func (_c *Forks_AddCertifiedBlock_Call) Return(err error) *Forks_AddCertifiedBlock_Call
func (*Forks_AddCertifiedBlock_Call) Run ¶ added in v0.46.0
func (_c *Forks_AddCertifiedBlock_Call) Run(run func(certifiedBlock *model.CertifiedBlock)) *Forks_AddCertifiedBlock_Call
func (*Forks_AddCertifiedBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Forks_AddCertifiedBlock_Call) RunAndReturn(run func(certifiedBlock *model.CertifiedBlock) error) *Forks_AddCertifiedBlock_Call
type Forks_AddValidatedBlock_Call ¶ added in v0.46.0
Forks_AddValidatedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddValidatedBlock'
func (*Forks_AddValidatedBlock_Call) Return ¶ added in v0.46.0
func (_c *Forks_AddValidatedBlock_Call) Return(err error) *Forks_AddValidatedBlock_Call
func (*Forks_AddValidatedBlock_Call) Run ¶ added in v0.46.0
func (_c *Forks_AddValidatedBlock_Call) Run(run func(proposal *model.Block)) *Forks_AddValidatedBlock_Call
func (*Forks_AddValidatedBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Forks_AddValidatedBlock_Call) RunAndReturn(run func(proposal *model.Block) error) *Forks_AddValidatedBlock_Call
type Forks_Expecter ¶ added in v0.46.0
type Forks_Expecter struct {
// contains filtered or unexported fields
}
func (*Forks_Expecter) AddCertifiedBlock ¶ added in v0.46.0
func (_e *Forks_Expecter) AddCertifiedBlock(certifiedBlock interface{}) *Forks_AddCertifiedBlock_Call
AddCertifiedBlock is a helper method to define mock.On call
- certifiedBlock *model.CertifiedBlock
func (*Forks_Expecter) AddValidatedBlock ¶ added in v0.46.0
func (_e *Forks_Expecter) AddValidatedBlock(proposal interface{}) *Forks_AddValidatedBlock_Call
AddValidatedBlock is a helper method to define mock.On call
- proposal *model.Block
func (*Forks_Expecter) FinalityProof ¶ added in v0.46.0
func (_e *Forks_Expecter) FinalityProof() *Forks_FinalityProof_Call
FinalityProof is a helper method to define mock.On call
func (*Forks_Expecter) FinalizedBlock ¶ added in v0.46.0
func (_e *Forks_Expecter) FinalizedBlock() *Forks_FinalizedBlock_Call
FinalizedBlock is a helper method to define mock.On call
func (*Forks_Expecter) FinalizedView ¶ added in v0.46.0
func (_e *Forks_Expecter) FinalizedView() *Forks_FinalizedView_Call
FinalizedView is a helper method to define mock.On call
func (*Forks_Expecter) GetBlock ¶ added in v0.46.0
func (_e *Forks_Expecter) GetBlock(blockID interface{}) *Forks_GetBlock_Call
GetBlock is a helper method to define mock.On call
- blockID flow.Identifier
func (*Forks_Expecter) GetBlocksForView ¶ added in v0.46.0
func (_e *Forks_Expecter) GetBlocksForView(view interface{}) *Forks_GetBlocksForView_Call
GetBlocksForView is a helper method to define mock.On call
- view uint64
type Forks_FinalityProof_Call ¶ added in v0.46.0
Forks_FinalityProof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalityProof'
func (*Forks_FinalityProof_Call) Return ¶ added in v0.46.0
func (_c *Forks_FinalityProof_Call) Return(finalityProof *hotstuff.FinalityProof, b bool) *Forks_FinalityProof_Call
func (*Forks_FinalityProof_Call) Run ¶ added in v0.46.0
func (_c *Forks_FinalityProof_Call) Run(run func()) *Forks_FinalityProof_Call
func (*Forks_FinalityProof_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Forks_FinalityProof_Call) RunAndReturn(run func() (*hotstuff.FinalityProof, bool)) *Forks_FinalityProof_Call
type Forks_FinalizedBlock_Call ¶ added in v0.46.0
Forks_FinalizedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalizedBlock'
func (*Forks_FinalizedBlock_Call) Return ¶ added in v0.46.0
func (_c *Forks_FinalizedBlock_Call) Return(block *model.Block) *Forks_FinalizedBlock_Call
func (*Forks_FinalizedBlock_Call) Run ¶ added in v0.46.0
func (_c *Forks_FinalizedBlock_Call) Run(run func()) *Forks_FinalizedBlock_Call
func (*Forks_FinalizedBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Forks_FinalizedBlock_Call) RunAndReturn(run func() *model.Block) *Forks_FinalizedBlock_Call
type Forks_FinalizedView_Call ¶ added in v0.46.0
Forks_FinalizedView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalizedView'
func (*Forks_FinalizedView_Call) Return ¶ added in v0.46.0
func (_c *Forks_FinalizedView_Call) Return(v uint64) *Forks_FinalizedView_Call
func (*Forks_FinalizedView_Call) Run ¶ added in v0.46.0
func (_c *Forks_FinalizedView_Call) Run(run func()) *Forks_FinalizedView_Call
func (*Forks_FinalizedView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Forks_FinalizedView_Call) RunAndReturn(run func() uint64) *Forks_FinalizedView_Call
type Forks_GetBlock_Call ¶ added in v0.46.0
Forks_GetBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlock'
func (*Forks_GetBlock_Call) Return ¶ added in v0.46.0
func (_c *Forks_GetBlock_Call) Return(block *model.Block, b bool) *Forks_GetBlock_Call
func (*Forks_GetBlock_Call) Run ¶ added in v0.46.0
func (_c *Forks_GetBlock_Call) Run(run func(blockID flow.Identifier)) *Forks_GetBlock_Call
func (*Forks_GetBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Forks_GetBlock_Call) RunAndReturn(run func(blockID flow.Identifier) (*model.Block, bool)) *Forks_GetBlock_Call
type Forks_GetBlocksForView_Call ¶ added in v0.46.0
Forks_GetBlocksForView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlocksForView'
func (*Forks_GetBlocksForView_Call) Return ¶ added in v0.46.0
func (_c *Forks_GetBlocksForView_Call) Return(blocks []*model.Block) *Forks_GetBlocksForView_Call
func (*Forks_GetBlocksForView_Call) Run ¶ added in v0.46.0
func (_c *Forks_GetBlocksForView_Call) Run(run func(view uint64)) *Forks_GetBlocksForView_Call
func (*Forks_GetBlocksForView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Forks_GetBlocksForView_Call) RunAndReturn(run func(view uint64) []*model.Block) *Forks_GetBlocksForView_Call
type PaceMaker ¶
PaceMaker is an autogenerated mock type for the PaceMaker type
func NewPaceMaker ¶ added in v0.26.1
NewPaceMaker creates a new instance of PaceMaker. 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 (*PaceMaker) EXPECT ¶ added in v0.46.0
func (_m *PaceMaker) EXPECT() *PaceMaker_Expecter
func (*PaceMaker) LastViewTC ¶ added in v0.29.0
func (_mock *PaceMaker) LastViewTC() *flow.TimeoutCertificate
LastViewTC provides a mock function for the type PaceMaker
func (*PaceMaker) NewestQC ¶ added in v0.29.0
func (_mock *PaceMaker) NewestQC() *flow.QuorumCertificate
NewestQC provides a mock function for the type PaceMaker
func (*PaceMaker) ProcessQC ¶ added in v0.29.0
func (_mock *PaceMaker) ProcessQC(qc *flow.QuorumCertificate) (*model.NewViewEvent, error)
ProcessQC provides a mock function for the type PaceMaker
func (*PaceMaker) ProcessTC ¶ added in v0.29.0
func (_mock *PaceMaker) ProcessTC(tc *flow.TimeoutCertificate) (*model.NewViewEvent, error)
ProcessTC provides a mock function for the type PaceMaker
func (*PaceMaker) TargetPublicationTime ¶ added in v0.31.0
func (_mock *PaceMaker) TargetPublicationTime(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier) time.Time
TargetPublicationTime provides a mock function for the type PaceMaker
func (*PaceMaker) TimeoutChannel ¶
TimeoutChannel provides a mock function for the type PaceMaker
type PaceMaker_CurView_Call ¶ added in v0.46.0
PaceMaker_CurView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurView'
func (*PaceMaker_CurView_Call) Return ¶ added in v0.46.0
func (_c *PaceMaker_CurView_Call) Return(v uint64) *PaceMaker_CurView_Call
func (*PaceMaker_CurView_Call) Run ¶ added in v0.46.0
func (_c *PaceMaker_CurView_Call) Run(run func()) *PaceMaker_CurView_Call
func (*PaceMaker_CurView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PaceMaker_CurView_Call) RunAndReturn(run func() uint64) *PaceMaker_CurView_Call
type PaceMaker_Expecter ¶ added in v0.46.0
type PaceMaker_Expecter struct {
// contains filtered or unexported fields
}
func (*PaceMaker_Expecter) CurView ¶ added in v0.46.0
func (_e *PaceMaker_Expecter) CurView() *PaceMaker_CurView_Call
CurView is a helper method to define mock.On call
func (*PaceMaker_Expecter) LastViewTC ¶ added in v0.46.0
func (_e *PaceMaker_Expecter) LastViewTC() *PaceMaker_LastViewTC_Call
LastViewTC is a helper method to define mock.On call
func (*PaceMaker_Expecter) NewestQC ¶ added in v0.46.0
func (_e *PaceMaker_Expecter) NewestQC() *PaceMaker_NewestQC_Call
NewestQC is a helper method to define mock.On call
func (*PaceMaker_Expecter) ProcessQC ¶ added in v0.46.0
func (_e *PaceMaker_Expecter) ProcessQC(qc interface{}) *PaceMaker_ProcessQC_Call
ProcessQC is a helper method to define mock.On call
- qc *flow.QuorumCertificate
func (*PaceMaker_Expecter) ProcessTC ¶ added in v0.46.0
func (_e *PaceMaker_Expecter) ProcessTC(tc interface{}) *PaceMaker_ProcessTC_Call
ProcessTC is a helper method to define mock.On call
- tc *flow.TimeoutCertificate
func (*PaceMaker_Expecter) Start ¶ added in v0.46.0
func (_e *PaceMaker_Expecter) Start(ctx interface{}) *PaceMaker_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*PaceMaker_Expecter) TargetPublicationTime ¶ added in v0.46.0
func (_e *PaceMaker_Expecter) TargetPublicationTime(proposalView interface{}, timeViewEntered interface{}, parentBlockId interface{}) *PaceMaker_TargetPublicationTime_Call
TargetPublicationTime is a helper method to define mock.On call
- proposalView uint64
- timeViewEntered time.Time
- parentBlockId flow.Identifier
func (*PaceMaker_Expecter) TimeoutChannel ¶ added in v0.46.0
func (_e *PaceMaker_Expecter) TimeoutChannel() *PaceMaker_TimeoutChannel_Call
TimeoutChannel is a helper method to define mock.On call
type PaceMaker_LastViewTC_Call ¶ added in v0.46.0
PaceMaker_LastViewTC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastViewTC'
func (*PaceMaker_LastViewTC_Call) Return ¶ added in v0.46.0
func (_c *PaceMaker_LastViewTC_Call) Return(timeoutCertificate *flow.TimeoutCertificate) *PaceMaker_LastViewTC_Call
func (*PaceMaker_LastViewTC_Call) Run ¶ added in v0.46.0
func (_c *PaceMaker_LastViewTC_Call) Run(run func()) *PaceMaker_LastViewTC_Call
func (*PaceMaker_LastViewTC_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PaceMaker_LastViewTC_Call) RunAndReturn(run func() *flow.TimeoutCertificate) *PaceMaker_LastViewTC_Call
type PaceMaker_NewestQC_Call ¶ added in v0.46.0
PaceMaker_NewestQC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewestQC'
func (*PaceMaker_NewestQC_Call) Return ¶ added in v0.46.0
func (_c *PaceMaker_NewestQC_Call) Return(quorumCertificate *flow.QuorumCertificate) *PaceMaker_NewestQC_Call
func (*PaceMaker_NewestQC_Call) Run ¶ added in v0.46.0
func (_c *PaceMaker_NewestQC_Call) Run(run func()) *PaceMaker_NewestQC_Call
func (*PaceMaker_NewestQC_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PaceMaker_NewestQC_Call) RunAndReturn(run func() *flow.QuorumCertificate) *PaceMaker_NewestQC_Call
type PaceMaker_ProcessQC_Call ¶ added in v0.46.0
PaceMaker_ProcessQC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessQC'
func (*PaceMaker_ProcessQC_Call) Return ¶ added in v0.46.0
func (_c *PaceMaker_ProcessQC_Call) Return(newViewEvent *model.NewViewEvent, err error) *PaceMaker_ProcessQC_Call
func (*PaceMaker_ProcessQC_Call) Run ¶ added in v0.46.0
func (_c *PaceMaker_ProcessQC_Call) Run(run func(qc *flow.QuorumCertificate)) *PaceMaker_ProcessQC_Call
func (*PaceMaker_ProcessQC_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PaceMaker_ProcessQC_Call) RunAndReturn(run func(qc *flow.QuorumCertificate) (*model.NewViewEvent, error)) *PaceMaker_ProcessQC_Call
type PaceMaker_ProcessTC_Call ¶ added in v0.46.0
PaceMaker_ProcessTC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessTC'
func (*PaceMaker_ProcessTC_Call) Return ¶ added in v0.46.0
func (_c *PaceMaker_ProcessTC_Call) Return(newViewEvent *model.NewViewEvent, err error) *PaceMaker_ProcessTC_Call
func (*PaceMaker_ProcessTC_Call) Run ¶ added in v0.46.0
func (_c *PaceMaker_ProcessTC_Call) Run(run func(tc *flow.TimeoutCertificate)) *PaceMaker_ProcessTC_Call
func (*PaceMaker_ProcessTC_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PaceMaker_ProcessTC_Call) RunAndReturn(run func(tc *flow.TimeoutCertificate) (*model.NewViewEvent, error)) *PaceMaker_ProcessTC_Call
type PaceMaker_Start_Call ¶ added in v0.46.0
PaceMaker_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*PaceMaker_Start_Call) Return ¶ added in v0.46.0
func (_c *PaceMaker_Start_Call) Return() *PaceMaker_Start_Call
func (*PaceMaker_Start_Call) Run ¶ added in v0.46.0
func (_c *PaceMaker_Start_Call) Run(run func(ctx context.Context)) *PaceMaker_Start_Call
func (*PaceMaker_Start_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PaceMaker_Start_Call) RunAndReturn(run func(ctx context.Context)) *PaceMaker_Start_Call
type PaceMaker_TargetPublicationTime_Call ¶ added in v0.46.0
PaceMaker_TargetPublicationTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TargetPublicationTime'
func (*PaceMaker_TargetPublicationTime_Call) Return ¶ added in v0.46.0
func (_c *PaceMaker_TargetPublicationTime_Call) Return(time1 time.Time) *PaceMaker_TargetPublicationTime_Call
func (*PaceMaker_TargetPublicationTime_Call) Run ¶ added in v0.46.0
func (_c *PaceMaker_TargetPublicationTime_Call) Run(run func(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier)) *PaceMaker_TargetPublicationTime_Call
func (*PaceMaker_TargetPublicationTime_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PaceMaker_TargetPublicationTime_Call) RunAndReturn(run func(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier) time.Time) *PaceMaker_TargetPublicationTime_Call
type PaceMaker_TimeoutChannel_Call ¶ added in v0.46.0
PaceMaker_TimeoutChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TimeoutChannel'
func (*PaceMaker_TimeoutChannel_Call) Return ¶ added in v0.46.0
func (_c *PaceMaker_TimeoutChannel_Call) Return(timeCh <-chan time.Time) *PaceMaker_TimeoutChannel_Call
func (*PaceMaker_TimeoutChannel_Call) Run ¶ added in v0.46.0
func (_c *PaceMaker_TimeoutChannel_Call) Run(run func()) *PaceMaker_TimeoutChannel_Call
func (*PaceMaker_TimeoutChannel_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PaceMaker_TimeoutChannel_Call) RunAndReturn(run func() <-chan time.Time) *PaceMaker_TimeoutChannel_Call
type Packer ¶ added in v0.23.9
Packer is an autogenerated mock type for the Packer type
func NewPacker ¶ added in v0.26.1
NewPacker creates a new instance of Packer. 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 (*Packer) EXPECT ¶ added in v0.46.0
func (_m *Packer) EXPECT() *Packer_Expecter
func (*Packer) Unpack ¶ added in v0.23.9
func (_mock *Packer) Unpack(signerIdentities flow.IdentitySkeletonList, sigData []byte) (*hotstuff.BlockSignatureData, error)
Unpack provides a mock function for the type Packer
type Packer_Expecter ¶ added in v0.46.0
type Packer_Expecter struct {
// contains filtered or unexported fields
}
func (*Packer_Expecter) Pack ¶ added in v0.46.0
func (_e *Packer_Expecter) Pack(view interface{}, sig interface{}) *Packer_Pack_Call
Pack is a helper method to define mock.On call
- view uint64
- sig *hotstuff.BlockSignatureData
func (*Packer_Expecter) Unpack ¶ added in v0.46.0
func (_e *Packer_Expecter) Unpack(signerIdentities interface{}, sigData interface{}) *Packer_Unpack_Call
Unpack is a helper method to define mock.On call
- signerIdentities flow.IdentitySkeletonList
- sigData []byte
type Packer_Pack_Call ¶ added in v0.46.0
Packer_Pack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pack'
func (*Packer_Pack_Call) Return ¶ added in v0.46.0
func (_c *Packer_Pack_Call) Return(signerIndices []byte, sigData []byte, err error) *Packer_Pack_Call
func (*Packer_Pack_Call) Run ¶ added in v0.46.0
func (_c *Packer_Pack_Call) Run(run func(view uint64, sig *hotstuff.BlockSignatureData)) *Packer_Pack_Call
func (*Packer_Pack_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Packer_Pack_Call) RunAndReturn(run func(view uint64, sig *hotstuff.BlockSignatureData) ([]byte, []byte, error)) *Packer_Pack_Call
type Packer_Unpack_Call ¶ added in v0.46.0
Packer_Unpack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unpack'
func (*Packer_Unpack_Call) Return ¶ added in v0.46.0
func (_c *Packer_Unpack_Call) Return(blockSignatureData *hotstuff.BlockSignatureData, err error) *Packer_Unpack_Call
func (*Packer_Unpack_Call) Run ¶ added in v0.46.0
func (_c *Packer_Unpack_Call) Run(run func(signerIdentities flow.IdentitySkeletonList, sigData []byte)) *Packer_Unpack_Call
func (*Packer_Unpack_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Packer_Unpack_Call) RunAndReturn(run func(signerIdentities flow.IdentitySkeletonList, sigData []byte) (*hotstuff.BlockSignatureData, error)) *Packer_Unpack_Call
type ParticipantConsumer ¶ added in v0.31.0
ParticipantConsumer is an autogenerated mock type for the ParticipantConsumer type
func NewParticipantConsumer ¶ added in v0.31.0
func NewParticipantConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *ParticipantConsumer
NewParticipantConsumer creates a new instance of ParticipantConsumer. 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 (*ParticipantConsumer) EXPECT ¶ added in v0.46.0
func (_m *ParticipantConsumer) EXPECT() *ParticipantConsumer_Expecter
func (*ParticipantConsumer) OnCurrentViewDetails ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnCurrentViewDetails(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)
OnCurrentViewDetails provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnEventProcessed ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnEventProcessed()
OnEventProcessed provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnLocalTimeout ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnLocalTimeout(currentView uint64)
OnLocalTimeout provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnPartialTc ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnPartialTc(currentView uint64, partialTc *hotstuff.PartialTcCreated)
OnPartialTc provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnQcTriggeredViewChange ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnQcTriggeredViewChange(oldView uint64, newView uint64, qc *flow.QuorumCertificate)
OnQcTriggeredViewChange provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnReceiveProposal ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnReceiveProposal(currentView uint64, proposal *model.SignedProposal)
OnReceiveProposal provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnReceiveQc ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnReceiveQc(currentView uint64, qc *flow.QuorumCertificate)
OnReceiveQc provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnReceiveTc ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnReceiveTc(currentView uint64, tc *flow.TimeoutCertificate)
OnReceiveTc provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnStart ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnStart(currentView uint64)
OnStart provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnStartingTimeout ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnStartingTimeout(timerInfo model.TimerInfo)
OnStartingTimeout provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnTcTriggeredViewChange ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnTcTriggeredViewChange(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)
OnTcTriggeredViewChange provides a mock function for the type ParticipantConsumer
func (*ParticipantConsumer) OnViewChange ¶ added in v0.31.0
func (_mock *ParticipantConsumer) OnViewChange(oldView uint64, newView uint64)
OnViewChange provides a mock function for the type ParticipantConsumer
type ParticipantConsumer_Expecter ¶ added in v0.46.0
type ParticipantConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*ParticipantConsumer_Expecter) OnCurrentViewDetails ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnCurrentViewDetails(currentView interface{}, finalizedView interface{}, currentLeader interface{}) *ParticipantConsumer_OnCurrentViewDetails_Call
OnCurrentViewDetails is a helper method to define mock.On call
- currentView uint64
- finalizedView uint64
- currentLeader flow.Identifier
func (*ParticipantConsumer_Expecter) OnEventProcessed ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnEventProcessed() *ParticipantConsumer_OnEventProcessed_Call
OnEventProcessed is a helper method to define mock.On call
func (*ParticipantConsumer_Expecter) OnLocalTimeout ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnLocalTimeout(currentView interface{}) *ParticipantConsumer_OnLocalTimeout_Call
OnLocalTimeout is a helper method to define mock.On call
- currentView uint64
func (*ParticipantConsumer_Expecter) OnPartialTc ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnPartialTc(currentView interface{}, partialTc interface{}) *ParticipantConsumer_OnPartialTc_Call
OnPartialTc is a helper method to define mock.On call
- currentView uint64
- partialTc *hotstuff.PartialTcCreated
func (*ParticipantConsumer_Expecter) OnQcTriggeredViewChange ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnQcTriggeredViewChange(oldView interface{}, newView interface{}, qc interface{}) *ParticipantConsumer_OnQcTriggeredViewChange_Call
OnQcTriggeredViewChange is a helper method to define mock.On call
- oldView uint64
- newView uint64
- qc *flow.QuorumCertificate
func (*ParticipantConsumer_Expecter) OnReceiveProposal ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnReceiveProposal(currentView interface{}, proposal interface{}) *ParticipantConsumer_OnReceiveProposal_Call
OnReceiveProposal is a helper method to define mock.On call
- currentView uint64
- proposal *model.SignedProposal
func (*ParticipantConsumer_Expecter) OnReceiveQc ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnReceiveQc(currentView interface{}, qc interface{}) *ParticipantConsumer_OnReceiveQc_Call
OnReceiveQc is a helper method to define mock.On call
- currentView uint64
- qc *flow.QuorumCertificate
func (*ParticipantConsumer_Expecter) OnReceiveTc ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnReceiveTc(currentView interface{}, tc interface{}) *ParticipantConsumer_OnReceiveTc_Call
OnReceiveTc is a helper method to define mock.On call
- currentView uint64
- tc *flow.TimeoutCertificate
func (*ParticipantConsumer_Expecter) OnStart ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnStart(currentView interface{}) *ParticipantConsumer_OnStart_Call
OnStart is a helper method to define mock.On call
- currentView uint64
func (*ParticipantConsumer_Expecter) OnStartingTimeout ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnStartingTimeout(timerInfo interface{}) *ParticipantConsumer_OnStartingTimeout_Call
OnStartingTimeout is a helper method to define mock.On call
- timerInfo model.TimerInfo
func (*ParticipantConsumer_Expecter) OnTcTriggeredViewChange ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnTcTriggeredViewChange(oldView interface{}, newView interface{}, tc interface{}) *ParticipantConsumer_OnTcTriggeredViewChange_Call
OnTcTriggeredViewChange is a helper method to define mock.On call
- oldView uint64
- newView uint64
- tc *flow.TimeoutCertificate
func (*ParticipantConsumer_Expecter) OnViewChange ¶ added in v0.46.0
func (_e *ParticipantConsumer_Expecter) OnViewChange(oldView interface{}, newView interface{}) *ParticipantConsumer_OnViewChange_Call
OnViewChange is a helper method to define mock.On call
- oldView uint64
- newView uint64
type ParticipantConsumer_OnCurrentViewDetails_Call ¶ added in v0.46.0
ParticipantConsumer_OnCurrentViewDetails_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnCurrentViewDetails'
func (*ParticipantConsumer_OnCurrentViewDetails_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnCurrentViewDetails_Call) Run(run func(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)) *ParticipantConsumer_OnCurrentViewDetails_Call
func (*ParticipantConsumer_OnCurrentViewDetails_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnCurrentViewDetails_Call) RunAndReturn(run func(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)) *ParticipantConsumer_OnCurrentViewDetails_Call
type ParticipantConsumer_OnEventProcessed_Call ¶ added in v0.46.0
ParticipantConsumer_OnEventProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnEventProcessed'
func (*ParticipantConsumer_OnEventProcessed_Call) Return ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnEventProcessed_Call) Return() *ParticipantConsumer_OnEventProcessed_Call
func (*ParticipantConsumer_OnEventProcessed_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnEventProcessed_Call) Run(run func()) *ParticipantConsumer_OnEventProcessed_Call
func (*ParticipantConsumer_OnEventProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnEventProcessed_Call) RunAndReturn(run func()) *ParticipantConsumer_OnEventProcessed_Call
type ParticipantConsumer_OnLocalTimeout_Call ¶ added in v0.46.0
ParticipantConsumer_OnLocalTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnLocalTimeout'
func (*ParticipantConsumer_OnLocalTimeout_Call) Return ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnLocalTimeout_Call) Return() *ParticipantConsumer_OnLocalTimeout_Call
func (*ParticipantConsumer_OnLocalTimeout_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnLocalTimeout_Call) Run(run func(currentView uint64)) *ParticipantConsumer_OnLocalTimeout_Call
func (*ParticipantConsumer_OnLocalTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnLocalTimeout_Call) RunAndReturn(run func(currentView uint64)) *ParticipantConsumer_OnLocalTimeout_Call
type ParticipantConsumer_OnPartialTc_Call ¶ added in v0.46.0
ParticipantConsumer_OnPartialTc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnPartialTc'
func (*ParticipantConsumer_OnPartialTc_Call) Return ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnPartialTc_Call) Return() *ParticipantConsumer_OnPartialTc_Call
func (*ParticipantConsumer_OnPartialTc_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnPartialTc_Call) Run(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *ParticipantConsumer_OnPartialTc_Call
func (*ParticipantConsumer_OnPartialTc_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnPartialTc_Call) RunAndReturn(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *ParticipantConsumer_OnPartialTc_Call
type ParticipantConsumer_OnQcTriggeredViewChange_Call ¶ added in v0.46.0
ParticipantConsumer_OnQcTriggeredViewChange_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnQcTriggeredViewChange'
func (*ParticipantConsumer_OnQcTriggeredViewChange_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnQcTriggeredViewChange_Call) Run(run func(oldView uint64, newView uint64, qc *flow.QuorumCertificate)) *ParticipantConsumer_OnQcTriggeredViewChange_Call
func (*ParticipantConsumer_OnQcTriggeredViewChange_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnQcTriggeredViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64, qc *flow.QuorumCertificate)) *ParticipantConsumer_OnQcTriggeredViewChange_Call
type ParticipantConsumer_OnReceiveProposal_Call ¶ added in v0.46.0
ParticipantConsumer_OnReceiveProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReceiveProposal'
func (*ParticipantConsumer_OnReceiveProposal_Call) Return ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnReceiveProposal_Call) Return() *ParticipantConsumer_OnReceiveProposal_Call
func (*ParticipantConsumer_OnReceiveProposal_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnReceiveProposal_Call) Run(run func(currentView uint64, proposal *model.SignedProposal)) *ParticipantConsumer_OnReceiveProposal_Call
func (*ParticipantConsumer_OnReceiveProposal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnReceiveProposal_Call) RunAndReturn(run func(currentView uint64, proposal *model.SignedProposal)) *ParticipantConsumer_OnReceiveProposal_Call
type ParticipantConsumer_OnReceiveQc_Call ¶ added in v0.46.0
ParticipantConsumer_OnReceiveQc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReceiveQc'
func (*ParticipantConsumer_OnReceiveQc_Call) Return ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnReceiveQc_Call) Return() *ParticipantConsumer_OnReceiveQc_Call
func (*ParticipantConsumer_OnReceiveQc_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnReceiveQc_Call) Run(run func(currentView uint64, qc *flow.QuorumCertificate)) *ParticipantConsumer_OnReceiveQc_Call
func (*ParticipantConsumer_OnReceiveQc_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnReceiveQc_Call) RunAndReturn(run func(currentView uint64, qc *flow.QuorumCertificate)) *ParticipantConsumer_OnReceiveQc_Call
type ParticipantConsumer_OnReceiveTc_Call ¶ added in v0.46.0
ParticipantConsumer_OnReceiveTc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnReceiveTc'
func (*ParticipantConsumer_OnReceiveTc_Call) Return ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnReceiveTc_Call) Return() *ParticipantConsumer_OnReceiveTc_Call
func (*ParticipantConsumer_OnReceiveTc_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnReceiveTc_Call) Run(run func(currentView uint64, tc *flow.TimeoutCertificate)) *ParticipantConsumer_OnReceiveTc_Call
func (*ParticipantConsumer_OnReceiveTc_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnReceiveTc_Call) RunAndReturn(run func(currentView uint64, tc *flow.TimeoutCertificate)) *ParticipantConsumer_OnReceiveTc_Call
type ParticipantConsumer_OnStart_Call ¶ added in v0.46.0
ParticipantConsumer_OnStart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnStart'
func (*ParticipantConsumer_OnStart_Call) Return ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnStart_Call) Return() *ParticipantConsumer_OnStart_Call
func (*ParticipantConsumer_OnStart_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnStart_Call) Run(run func(currentView uint64)) *ParticipantConsumer_OnStart_Call
func (*ParticipantConsumer_OnStart_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnStart_Call) RunAndReturn(run func(currentView uint64)) *ParticipantConsumer_OnStart_Call
type ParticipantConsumer_OnStartingTimeout_Call ¶ added in v0.46.0
ParticipantConsumer_OnStartingTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnStartingTimeout'
func (*ParticipantConsumer_OnStartingTimeout_Call) Return ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnStartingTimeout_Call) Return() *ParticipantConsumer_OnStartingTimeout_Call
func (*ParticipantConsumer_OnStartingTimeout_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnStartingTimeout_Call) Run(run func(timerInfo model.TimerInfo)) *ParticipantConsumer_OnStartingTimeout_Call
func (*ParticipantConsumer_OnStartingTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnStartingTimeout_Call) RunAndReturn(run func(timerInfo model.TimerInfo)) *ParticipantConsumer_OnStartingTimeout_Call
type ParticipantConsumer_OnTcTriggeredViewChange_Call ¶ added in v0.46.0
ParticipantConsumer_OnTcTriggeredViewChange_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnTcTriggeredViewChange'
func (*ParticipantConsumer_OnTcTriggeredViewChange_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnTcTriggeredViewChange_Call) Run(run func(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)) *ParticipantConsumer_OnTcTriggeredViewChange_Call
func (*ParticipantConsumer_OnTcTriggeredViewChange_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnTcTriggeredViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)) *ParticipantConsumer_OnTcTriggeredViewChange_Call
type ParticipantConsumer_OnViewChange_Call ¶ added in v0.46.0
ParticipantConsumer_OnViewChange_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnViewChange'
func (*ParticipantConsumer_OnViewChange_Call) Return ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnViewChange_Call) Return() *ParticipantConsumer_OnViewChange_Call
func (*ParticipantConsumer_OnViewChange_Call) Run ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnViewChange_Call) Run(run func(oldView uint64, newView uint64)) *ParticipantConsumer_OnViewChange_Call
func (*ParticipantConsumer_OnViewChange_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantConsumer_OnViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64)) *ParticipantConsumer_OnViewChange_Call
type Persister ¶
Persister is an autogenerated mock type for the Persister type
func NewPersister ¶ added in v0.26.1
NewPersister creates a new instance of Persister. 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 (*Persister) EXPECT ¶ added in v0.46.0
func (_m *Persister) EXPECT() *Persister_Expecter
func (*Persister) GetLivenessData ¶ added in v0.29.0
func (_mock *Persister) GetLivenessData() (*hotstuff.LivenessData, error)
GetLivenessData provides a mock function for the type Persister
func (*Persister) GetSafetyData ¶ added in v0.29.0
func (_mock *Persister) GetSafetyData() (*hotstuff.SafetyData, error)
GetSafetyData provides a mock function for the type Persister
func (*Persister) PutLivenessData ¶ added in v0.29.0
func (_mock *Persister) PutLivenessData(livenessData *hotstuff.LivenessData) error
PutLivenessData provides a mock function for the type Persister
func (*Persister) PutSafetyData ¶ added in v0.29.0
func (_mock *Persister) PutSafetyData(safetyData *hotstuff.SafetyData) error
PutSafetyData provides a mock function for the type Persister
type PersisterReader ¶ added in v0.41.0
PersisterReader is an autogenerated mock type for the PersisterReader type
func NewPersisterReader ¶ added in v0.41.0
func NewPersisterReader(t interface {
mock.TestingT
Cleanup(func())
}) *PersisterReader
NewPersisterReader creates a new instance of PersisterReader. 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 (*PersisterReader) EXPECT ¶ added in v0.46.0
func (_m *PersisterReader) EXPECT() *PersisterReader_Expecter
func (*PersisterReader) GetLivenessData ¶ added in v0.41.0
func (_mock *PersisterReader) GetLivenessData() (*hotstuff.LivenessData, error)
GetLivenessData provides a mock function for the type PersisterReader
func (*PersisterReader) GetSafetyData ¶ added in v0.41.0
func (_mock *PersisterReader) GetSafetyData() (*hotstuff.SafetyData, error)
GetSafetyData provides a mock function for the type PersisterReader
type PersisterReader_Expecter ¶ added in v0.46.0
type PersisterReader_Expecter struct {
// contains filtered or unexported fields
}
func (*PersisterReader_Expecter) GetLivenessData ¶ added in v0.46.0
func (_e *PersisterReader_Expecter) GetLivenessData() *PersisterReader_GetLivenessData_Call
GetLivenessData is a helper method to define mock.On call
func (*PersisterReader_Expecter) GetSafetyData ¶ added in v0.46.0
func (_e *PersisterReader_Expecter) GetSafetyData() *PersisterReader_GetSafetyData_Call
GetSafetyData is a helper method to define mock.On call
type PersisterReader_GetLivenessData_Call ¶ added in v0.46.0
PersisterReader_GetLivenessData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLivenessData'
func (*PersisterReader_GetLivenessData_Call) Return ¶ added in v0.46.0
func (_c *PersisterReader_GetLivenessData_Call) Return(livenessData *hotstuff.LivenessData, err error) *PersisterReader_GetLivenessData_Call
func (*PersisterReader_GetLivenessData_Call) Run ¶ added in v0.46.0
func (_c *PersisterReader_GetLivenessData_Call) Run(run func()) *PersisterReader_GetLivenessData_Call
func (*PersisterReader_GetLivenessData_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PersisterReader_GetLivenessData_Call) RunAndReturn(run func() (*hotstuff.LivenessData, error)) *PersisterReader_GetLivenessData_Call
type PersisterReader_GetSafetyData_Call ¶ added in v0.46.0
PersisterReader_GetSafetyData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSafetyData'
func (*PersisterReader_GetSafetyData_Call) Return ¶ added in v0.46.0
func (_c *PersisterReader_GetSafetyData_Call) Return(safetyData *hotstuff.SafetyData, err error) *PersisterReader_GetSafetyData_Call
func (*PersisterReader_GetSafetyData_Call) Run ¶ added in v0.46.0
func (_c *PersisterReader_GetSafetyData_Call) Run(run func()) *PersisterReader_GetSafetyData_Call
func (*PersisterReader_GetSafetyData_Call) RunAndReturn ¶ added in v0.46.0
func (_c *PersisterReader_GetSafetyData_Call) RunAndReturn(run func() (*hotstuff.SafetyData, error)) *PersisterReader_GetSafetyData_Call
type Persister_Expecter ¶ added in v0.46.0
type Persister_Expecter struct {
// contains filtered or unexported fields
}
func (*Persister_Expecter) GetLivenessData ¶ added in v0.46.0
func (_e *Persister_Expecter) GetLivenessData() *Persister_GetLivenessData_Call
GetLivenessData is a helper method to define mock.On call
func (*Persister_Expecter) GetSafetyData ¶ added in v0.46.0
func (_e *Persister_Expecter) GetSafetyData() *Persister_GetSafetyData_Call
GetSafetyData is a helper method to define mock.On call
func (*Persister_Expecter) PutLivenessData ¶ added in v0.46.0
func (_e *Persister_Expecter) PutLivenessData(livenessData interface{}) *Persister_PutLivenessData_Call
PutLivenessData is a helper method to define mock.On call
- livenessData *hotstuff.LivenessData
func (*Persister_Expecter) PutSafetyData ¶ added in v0.46.0
func (_e *Persister_Expecter) PutSafetyData(safetyData interface{}) *Persister_PutSafetyData_Call
PutSafetyData is a helper method to define mock.On call
- safetyData *hotstuff.SafetyData
type Persister_GetLivenessData_Call ¶ added in v0.46.0
Persister_GetLivenessData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLivenessData'
func (*Persister_GetLivenessData_Call) Return ¶ added in v0.46.0
func (_c *Persister_GetLivenessData_Call) Return(livenessData *hotstuff.LivenessData, err error) *Persister_GetLivenessData_Call
func (*Persister_GetLivenessData_Call) Run ¶ added in v0.46.0
func (_c *Persister_GetLivenessData_Call) Run(run func()) *Persister_GetLivenessData_Call
func (*Persister_GetLivenessData_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Persister_GetLivenessData_Call) RunAndReturn(run func() (*hotstuff.LivenessData, error)) *Persister_GetLivenessData_Call
type Persister_GetSafetyData_Call ¶ added in v0.46.0
Persister_GetSafetyData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSafetyData'
func (*Persister_GetSafetyData_Call) Return ¶ added in v0.46.0
func (_c *Persister_GetSafetyData_Call) Return(safetyData *hotstuff.SafetyData, err error) *Persister_GetSafetyData_Call
func (*Persister_GetSafetyData_Call) Run ¶ added in v0.46.0
func (_c *Persister_GetSafetyData_Call) Run(run func()) *Persister_GetSafetyData_Call
func (*Persister_GetSafetyData_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Persister_GetSafetyData_Call) RunAndReturn(run func() (*hotstuff.SafetyData, error)) *Persister_GetSafetyData_Call
type Persister_PutLivenessData_Call ¶ added in v0.46.0
Persister_PutLivenessData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutLivenessData'
func (*Persister_PutLivenessData_Call) Return ¶ added in v0.46.0
func (_c *Persister_PutLivenessData_Call) Return(err error) *Persister_PutLivenessData_Call
func (*Persister_PutLivenessData_Call) Run ¶ added in v0.46.0
func (_c *Persister_PutLivenessData_Call) Run(run func(livenessData *hotstuff.LivenessData)) *Persister_PutLivenessData_Call
func (*Persister_PutLivenessData_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Persister_PutLivenessData_Call) RunAndReturn(run func(livenessData *hotstuff.LivenessData) error) *Persister_PutLivenessData_Call
type Persister_PutSafetyData_Call ¶ added in v0.46.0
Persister_PutSafetyData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutSafetyData'
func (*Persister_PutSafetyData_Call) Return ¶ added in v0.46.0
func (_c *Persister_PutSafetyData_Call) Return(err error) *Persister_PutSafetyData_Call
func (*Persister_PutSafetyData_Call) Run ¶ added in v0.46.0
func (_c *Persister_PutSafetyData_Call) Run(run func(safetyData *hotstuff.SafetyData)) *Persister_PutSafetyData_Call
func (*Persister_PutSafetyData_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Persister_PutSafetyData_Call) RunAndReturn(run func(safetyData *hotstuff.SafetyData) error) *Persister_PutSafetyData_Call
type ProposalDurationProvider ¶ added in v0.31.0
ProposalDurationProvider is an autogenerated mock type for the ProposalDurationProvider type
func NewProposalDurationProvider ¶ added in v0.31.0
func NewProposalDurationProvider(t interface {
mock.TestingT
Cleanup(func())
}) *ProposalDurationProvider
NewProposalDurationProvider creates a new instance of ProposalDurationProvider. 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 (*ProposalDurationProvider) EXPECT ¶ added in v0.46.0
func (_m *ProposalDurationProvider) EXPECT() *ProposalDurationProvider_Expecter
func (*ProposalDurationProvider) TargetPublicationTime ¶ added in v0.31.0
func (_mock *ProposalDurationProvider) TargetPublicationTime(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier) time.Time
TargetPublicationTime provides a mock function for the type ProposalDurationProvider
type ProposalDurationProvider_Expecter ¶ added in v0.46.0
type ProposalDurationProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*ProposalDurationProvider_Expecter) TargetPublicationTime ¶ added in v0.46.0
func (_e *ProposalDurationProvider_Expecter) TargetPublicationTime(proposalView interface{}, timeViewEntered interface{}, parentBlockId interface{}) *ProposalDurationProvider_TargetPublicationTime_Call
TargetPublicationTime is a helper method to define mock.On call
- proposalView uint64
- timeViewEntered time.Time
- parentBlockId flow.Identifier
type ProposalDurationProvider_TargetPublicationTime_Call ¶ added in v0.46.0
ProposalDurationProvider_TargetPublicationTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TargetPublicationTime'
func (*ProposalDurationProvider_TargetPublicationTime_Call) Return ¶ added in v0.46.0
func (_c *ProposalDurationProvider_TargetPublicationTime_Call) Return(time1 time.Time) *ProposalDurationProvider_TargetPublicationTime_Call
func (*ProposalDurationProvider_TargetPublicationTime_Call) Run ¶ added in v0.46.0
func (_c *ProposalDurationProvider_TargetPublicationTime_Call) Run(run func(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier)) *ProposalDurationProvider_TargetPublicationTime_Call
func (*ProposalDurationProvider_TargetPublicationTime_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProposalDurationProvider_TargetPublicationTime_Call) RunAndReturn(run func(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier) time.Time) *ProposalDurationProvider_TargetPublicationTime_Call
type ProposalViolationConsumer ¶ added in v0.31.0
ProposalViolationConsumer is an autogenerated mock type for the ProposalViolationConsumer type
func NewProposalViolationConsumer ¶ added in v0.31.0
func NewProposalViolationConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *ProposalViolationConsumer
NewProposalViolationConsumer creates a new instance of ProposalViolationConsumer. 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 (*ProposalViolationConsumer) EXPECT ¶ added in v0.46.0
func (_m *ProposalViolationConsumer) EXPECT() *ProposalViolationConsumer_Expecter
func (*ProposalViolationConsumer) OnDoubleProposeDetected ¶ added in v0.31.0
func (_mock *ProposalViolationConsumer) OnDoubleProposeDetected(block *model.Block, block1 *model.Block)
OnDoubleProposeDetected provides a mock function for the type ProposalViolationConsumer
func (*ProposalViolationConsumer) OnInvalidBlockDetected ¶ added in v0.31.0
func (_mock *ProposalViolationConsumer) OnInvalidBlockDetected(err flow.Slashable[model.InvalidProposalError])
OnInvalidBlockDetected provides a mock function for the type ProposalViolationConsumer
type ProposalViolationConsumer_Expecter ¶ added in v0.46.0
type ProposalViolationConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*ProposalViolationConsumer_Expecter) OnDoubleProposeDetected ¶ added in v0.46.0
func (_e *ProposalViolationConsumer_Expecter) OnDoubleProposeDetected(block interface{}, block1 interface{}) *ProposalViolationConsumer_OnDoubleProposeDetected_Call
OnDoubleProposeDetected is a helper method to define mock.On call
- block *model.Block
- block1 *model.Block
func (*ProposalViolationConsumer_Expecter) OnInvalidBlockDetected ¶ added in v0.46.0
func (_e *ProposalViolationConsumer_Expecter) OnInvalidBlockDetected(err interface{}) *ProposalViolationConsumer_OnInvalidBlockDetected_Call
OnInvalidBlockDetected is a helper method to define mock.On call
- err flow.Slashable[model.InvalidProposalError]
type ProposalViolationConsumer_OnDoubleProposeDetected_Call ¶ added in v0.46.0
ProposalViolationConsumer_OnDoubleProposeDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDoubleProposeDetected'
func (*ProposalViolationConsumer_OnDoubleProposeDetected_Call) Run ¶ added in v0.46.0
func (_c *ProposalViolationConsumer_OnDoubleProposeDetected_Call) Run(run func(block *model.Block, block1 *model.Block)) *ProposalViolationConsumer_OnDoubleProposeDetected_Call
func (*ProposalViolationConsumer_OnDoubleProposeDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProposalViolationConsumer_OnDoubleProposeDetected_Call) RunAndReturn(run func(block *model.Block, block1 *model.Block)) *ProposalViolationConsumer_OnDoubleProposeDetected_Call
type ProposalViolationConsumer_OnInvalidBlockDetected_Call ¶ added in v0.46.0
ProposalViolationConsumer_OnInvalidBlockDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnInvalidBlockDetected'
func (*ProposalViolationConsumer_OnInvalidBlockDetected_Call) Run ¶ added in v0.46.0
func (_c *ProposalViolationConsumer_OnInvalidBlockDetected_Call) Run(run func(err flow.Slashable[model.InvalidProposalError])) *ProposalViolationConsumer_OnInvalidBlockDetected_Call
func (*ProposalViolationConsumer_OnInvalidBlockDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProposalViolationConsumer_OnInvalidBlockDetected_Call) RunAndReturn(run func(err flow.Slashable[model.InvalidProposalError])) *ProposalViolationConsumer_OnInvalidBlockDetected_Call
type RandomBeaconInspector ¶ added in v0.23.9
RandomBeaconInspector is an autogenerated mock type for the RandomBeaconInspector type
func NewRandomBeaconInspector ¶ added in v0.26.1
func NewRandomBeaconInspector(t interface {
mock.TestingT
Cleanup(func())
}) *RandomBeaconInspector
NewRandomBeaconInspector creates a new instance of RandomBeaconInspector. 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 (*RandomBeaconInspector) EXPECT ¶ added in v0.46.0
func (_m *RandomBeaconInspector) EXPECT() *RandomBeaconInspector_Expecter
func (*RandomBeaconInspector) EnoughShares ¶ added in v0.23.9
func (_mock *RandomBeaconInspector) EnoughShares() bool
EnoughShares provides a mock function for the type RandomBeaconInspector
func (*RandomBeaconInspector) Reconstruct ¶ added in v0.23.9
func (_mock *RandomBeaconInspector) Reconstruct() (crypto.Signature, error)
Reconstruct provides a mock function for the type RandomBeaconInspector
func (*RandomBeaconInspector) TrustedAdd ¶ added in v0.23.9
func (_mock *RandomBeaconInspector) TrustedAdd(signerIndex int, share crypto.Signature) (bool, error)
TrustedAdd provides a mock function for the type RandomBeaconInspector
type RandomBeaconInspector_EnoughShares_Call ¶ added in v0.46.0
type RandomBeaconInspector_EnoughShares_Call struct {
}
RandomBeaconInspector_EnoughShares_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnoughShares'
func (*RandomBeaconInspector_EnoughShares_Call) Return ¶ added in v0.46.0
func (_c *RandomBeaconInspector_EnoughShares_Call) Return(b bool) *RandomBeaconInspector_EnoughShares_Call
func (*RandomBeaconInspector_EnoughShares_Call) Run ¶ added in v0.46.0
func (_c *RandomBeaconInspector_EnoughShares_Call) Run(run func()) *RandomBeaconInspector_EnoughShares_Call
func (*RandomBeaconInspector_EnoughShares_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RandomBeaconInspector_EnoughShares_Call) RunAndReturn(run func() bool) *RandomBeaconInspector_EnoughShares_Call
type RandomBeaconInspector_Expecter ¶ added in v0.46.0
type RandomBeaconInspector_Expecter struct {
// contains filtered or unexported fields
}
func (*RandomBeaconInspector_Expecter) EnoughShares ¶ added in v0.46.0
func (_e *RandomBeaconInspector_Expecter) EnoughShares() *RandomBeaconInspector_EnoughShares_Call
EnoughShares is a helper method to define mock.On call
func (*RandomBeaconInspector_Expecter) Reconstruct ¶ added in v0.46.0
func (_e *RandomBeaconInspector_Expecter) Reconstruct() *RandomBeaconInspector_Reconstruct_Call
Reconstruct is a helper method to define mock.On call
func (*RandomBeaconInspector_Expecter) TrustedAdd ¶ added in v0.46.0
func (_e *RandomBeaconInspector_Expecter) TrustedAdd(signerIndex interface{}, share interface{}) *RandomBeaconInspector_TrustedAdd_Call
TrustedAdd is a helper method to define mock.On call
- signerIndex int
- share crypto.Signature
func (*RandomBeaconInspector_Expecter) Verify ¶ added in v0.46.0
func (_e *RandomBeaconInspector_Expecter) Verify(signerIndex interface{}, share interface{}) *RandomBeaconInspector_Verify_Call
Verify is a helper method to define mock.On call
- signerIndex int
- share crypto.Signature
type RandomBeaconInspector_Reconstruct_Call ¶ added in v0.46.0
RandomBeaconInspector_Reconstruct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reconstruct'
func (*RandomBeaconInspector_Reconstruct_Call) Return ¶ added in v0.46.0
func (_c *RandomBeaconInspector_Reconstruct_Call) Return(signature crypto.Signature, err error) *RandomBeaconInspector_Reconstruct_Call
func (*RandomBeaconInspector_Reconstruct_Call) Run ¶ added in v0.46.0
func (_c *RandomBeaconInspector_Reconstruct_Call) Run(run func()) *RandomBeaconInspector_Reconstruct_Call
func (*RandomBeaconInspector_Reconstruct_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RandomBeaconInspector_Reconstruct_Call) RunAndReturn(run func() (crypto.Signature, error)) *RandomBeaconInspector_Reconstruct_Call
type RandomBeaconInspector_TrustedAdd_Call ¶ added in v0.46.0
RandomBeaconInspector_TrustedAdd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrustedAdd'
func (*RandomBeaconInspector_TrustedAdd_Call) Return ¶ added in v0.46.0
func (_c *RandomBeaconInspector_TrustedAdd_Call) Return(enoughshares bool, exception error) *RandomBeaconInspector_TrustedAdd_Call
func (*RandomBeaconInspector_TrustedAdd_Call) Run ¶ added in v0.46.0
func (_c *RandomBeaconInspector_TrustedAdd_Call) Run(run func(signerIndex int, share crypto.Signature)) *RandomBeaconInspector_TrustedAdd_Call
func (*RandomBeaconInspector_TrustedAdd_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RandomBeaconInspector_TrustedAdd_Call) RunAndReturn(run func(signerIndex int, share crypto.Signature) (bool, error)) *RandomBeaconInspector_TrustedAdd_Call
type RandomBeaconInspector_Verify_Call ¶ added in v0.46.0
RandomBeaconInspector_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'
func (*RandomBeaconInspector_Verify_Call) Return ¶ added in v0.46.0
func (_c *RandomBeaconInspector_Verify_Call) Return(err error) *RandomBeaconInspector_Verify_Call
func (*RandomBeaconInspector_Verify_Call) Run ¶ added in v0.46.0
func (_c *RandomBeaconInspector_Verify_Call) Run(run func(signerIndex int, share crypto.Signature)) *RandomBeaconInspector_Verify_Call
func (*RandomBeaconInspector_Verify_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RandomBeaconInspector_Verify_Call) RunAndReturn(run func(signerIndex int, share crypto.Signature) error) *RandomBeaconInspector_Verify_Call
type RandomBeaconReconstructor ¶ added in v0.23.9
RandomBeaconReconstructor is an autogenerated mock type for the RandomBeaconReconstructor type
func NewRandomBeaconReconstructor ¶ added in v0.26.1
func NewRandomBeaconReconstructor(t interface {
mock.TestingT
Cleanup(func())
}) *RandomBeaconReconstructor
NewRandomBeaconReconstructor creates a new instance of RandomBeaconReconstructor. 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 (*RandomBeaconReconstructor) EXPECT ¶ added in v0.46.0
func (_m *RandomBeaconReconstructor) EXPECT() *RandomBeaconReconstructor_Expecter
func (*RandomBeaconReconstructor) EnoughShares ¶ added in v0.23.9
func (_mock *RandomBeaconReconstructor) EnoughShares() bool
EnoughShares provides a mock function for the type RandomBeaconReconstructor
func (*RandomBeaconReconstructor) Reconstruct ¶ added in v0.23.9
func (_mock *RandomBeaconReconstructor) Reconstruct() (crypto.Signature, error)
Reconstruct provides a mock function for the type RandomBeaconReconstructor
func (*RandomBeaconReconstructor) TrustedAdd ¶ added in v0.23.9
func (_mock *RandomBeaconReconstructor) TrustedAdd(signerID flow.Identifier, sig crypto.Signature) (bool, error)
TrustedAdd provides a mock function for the type RandomBeaconReconstructor
func (*RandomBeaconReconstructor) Verify ¶ added in v0.23.9
func (_mock *RandomBeaconReconstructor) Verify(signerID flow.Identifier, sig crypto.Signature) error
Verify provides a mock function for the type RandomBeaconReconstructor
type RandomBeaconReconstructor_EnoughShares_Call ¶ added in v0.46.0
type RandomBeaconReconstructor_EnoughShares_Call struct {
}
RandomBeaconReconstructor_EnoughShares_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnoughShares'
func (*RandomBeaconReconstructor_EnoughShares_Call) Return ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_EnoughShares_Call) Return(b bool) *RandomBeaconReconstructor_EnoughShares_Call
func (*RandomBeaconReconstructor_EnoughShares_Call) Run ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_EnoughShares_Call) Run(run func()) *RandomBeaconReconstructor_EnoughShares_Call
func (*RandomBeaconReconstructor_EnoughShares_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_EnoughShares_Call) RunAndReturn(run func() bool) *RandomBeaconReconstructor_EnoughShares_Call
type RandomBeaconReconstructor_Expecter ¶ added in v0.46.0
type RandomBeaconReconstructor_Expecter struct {
// contains filtered or unexported fields
}
func (*RandomBeaconReconstructor_Expecter) EnoughShares ¶ added in v0.46.0
func (_e *RandomBeaconReconstructor_Expecter) EnoughShares() *RandomBeaconReconstructor_EnoughShares_Call
EnoughShares is a helper method to define mock.On call
func (*RandomBeaconReconstructor_Expecter) Reconstruct ¶ added in v0.46.0
func (_e *RandomBeaconReconstructor_Expecter) Reconstruct() *RandomBeaconReconstructor_Reconstruct_Call
Reconstruct is a helper method to define mock.On call
func (*RandomBeaconReconstructor_Expecter) TrustedAdd ¶ added in v0.46.0
func (_e *RandomBeaconReconstructor_Expecter) TrustedAdd(signerID interface{}, sig interface{}) *RandomBeaconReconstructor_TrustedAdd_Call
TrustedAdd is a helper method to define mock.On call
- signerID flow.Identifier
- sig crypto.Signature
func (*RandomBeaconReconstructor_Expecter) Verify ¶ added in v0.46.0
func (_e *RandomBeaconReconstructor_Expecter) Verify(signerID interface{}, sig interface{}) *RandomBeaconReconstructor_Verify_Call
Verify is a helper method to define mock.On call
- signerID flow.Identifier
- sig crypto.Signature
type RandomBeaconReconstructor_Reconstruct_Call ¶ added in v0.46.0
RandomBeaconReconstructor_Reconstruct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reconstruct'
func (*RandomBeaconReconstructor_Reconstruct_Call) Return ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_Reconstruct_Call) Return(signature crypto.Signature, err error) *RandomBeaconReconstructor_Reconstruct_Call
func (*RandomBeaconReconstructor_Reconstruct_Call) Run ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_Reconstruct_Call) Run(run func()) *RandomBeaconReconstructor_Reconstruct_Call
func (*RandomBeaconReconstructor_Reconstruct_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_Reconstruct_Call) RunAndReturn(run func() (crypto.Signature, error)) *RandomBeaconReconstructor_Reconstruct_Call
type RandomBeaconReconstructor_TrustedAdd_Call ¶ added in v0.46.0
RandomBeaconReconstructor_TrustedAdd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrustedAdd'
func (*RandomBeaconReconstructor_TrustedAdd_Call) Return ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_TrustedAdd_Call) Return(EnoughShares bool, err error) *RandomBeaconReconstructor_TrustedAdd_Call
func (*RandomBeaconReconstructor_TrustedAdd_Call) Run ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_TrustedAdd_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature)) *RandomBeaconReconstructor_TrustedAdd_Call
func (*RandomBeaconReconstructor_TrustedAdd_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_TrustedAdd_Call) RunAndReturn(run func(signerID flow.Identifier, sig crypto.Signature) (bool, error)) *RandomBeaconReconstructor_TrustedAdd_Call
type RandomBeaconReconstructor_Verify_Call ¶ added in v0.46.0
RandomBeaconReconstructor_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'
func (*RandomBeaconReconstructor_Verify_Call) Return ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_Verify_Call) Return(err error) *RandomBeaconReconstructor_Verify_Call
func (*RandomBeaconReconstructor_Verify_Call) Run ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_Verify_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature)) *RandomBeaconReconstructor_Verify_Call
func (*RandomBeaconReconstructor_Verify_Call) RunAndReturn ¶ added in v0.46.0
func (_c *RandomBeaconReconstructor_Verify_Call) RunAndReturn(run func(signerID flow.Identifier, sig crypto.Signature) error) *RandomBeaconReconstructor_Verify_Call
type Replicas ¶ added in v0.29.0
Replicas is an autogenerated mock type for the Replicas type
func NewReplicas ¶ added in v0.29.0
NewReplicas creates a new instance of Replicas. 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 (*Replicas) EXPECT ¶ added in v0.46.0
func (_m *Replicas) EXPECT() *Replicas_Expecter
func (*Replicas) IdentitiesByEpoch ¶ added in v0.29.0
func (_mock *Replicas) IdentitiesByEpoch(view uint64) (flow.IdentitySkeletonList, error)
IdentitiesByEpoch provides a mock function for the type Replicas
func (*Replicas) IdentityByEpoch ¶ added in v0.29.0
func (_mock *Replicas) IdentityByEpoch(view uint64, participantID flow.Identifier) (*flow.IdentitySkeleton, error)
IdentityByEpoch provides a mock function for the type Replicas
func (*Replicas) LeaderForView ¶ added in v0.29.0
func (_mock *Replicas) LeaderForView(view uint64) (flow.Identifier, error)
LeaderForView provides a mock function for the type Replicas
func (*Replicas) QuorumThresholdForView ¶ added in v0.29.0
QuorumThresholdForView provides a mock function for the type Replicas
func (*Replicas) Self ¶ added in v0.29.0
func (_mock *Replicas) Self() flow.Identifier
Self provides a mock function for the type Replicas
type Replicas_DKG_Call ¶ added in v0.46.0
Replicas_DKG_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DKG'
func (*Replicas_DKG_Call) Return ¶ added in v0.46.0
func (_c *Replicas_DKG_Call) Return(dKG hotstuff.DKG, err error) *Replicas_DKG_Call
func (*Replicas_DKG_Call) Run ¶ added in v0.46.0
func (_c *Replicas_DKG_Call) Run(run func(view uint64)) *Replicas_DKG_Call
func (*Replicas_DKG_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Replicas_DKG_Call) RunAndReturn(run func(view uint64) (hotstuff.DKG, error)) *Replicas_DKG_Call
type Replicas_Expecter ¶ added in v0.46.0
type Replicas_Expecter struct {
// contains filtered or unexported fields
}
func (*Replicas_Expecter) DKG ¶ added in v0.46.0
func (_e *Replicas_Expecter) DKG(view interface{}) *Replicas_DKG_Call
DKG is a helper method to define mock.On call
- view uint64
func (*Replicas_Expecter) IdentitiesByEpoch ¶ added in v0.46.0
func (_e *Replicas_Expecter) IdentitiesByEpoch(view interface{}) *Replicas_IdentitiesByEpoch_Call
IdentitiesByEpoch is a helper method to define mock.On call
- view uint64
func (*Replicas_Expecter) IdentityByEpoch ¶ added in v0.46.0
func (_e *Replicas_Expecter) IdentityByEpoch(view interface{}, participantID interface{}) *Replicas_IdentityByEpoch_Call
IdentityByEpoch is a helper method to define mock.On call
- view uint64
- participantID flow.Identifier
func (*Replicas_Expecter) LeaderForView ¶ added in v0.46.0
func (_e *Replicas_Expecter) LeaderForView(view interface{}) *Replicas_LeaderForView_Call
LeaderForView is a helper method to define mock.On call
- view uint64
func (*Replicas_Expecter) QuorumThresholdForView ¶ added in v0.46.0
func (_e *Replicas_Expecter) QuorumThresholdForView(view interface{}) *Replicas_QuorumThresholdForView_Call
QuorumThresholdForView is a helper method to define mock.On call
- view uint64
func (*Replicas_Expecter) Self ¶ added in v0.46.0
func (_e *Replicas_Expecter) Self() *Replicas_Self_Call
Self is a helper method to define mock.On call
func (*Replicas_Expecter) TimeoutThresholdForView ¶ added in v0.46.0
func (_e *Replicas_Expecter) TimeoutThresholdForView(view interface{}) *Replicas_TimeoutThresholdForView_Call
TimeoutThresholdForView is a helper method to define mock.On call
- view uint64
type Replicas_IdentitiesByEpoch_Call ¶ added in v0.46.0
Replicas_IdentitiesByEpoch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IdentitiesByEpoch'
func (*Replicas_IdentitiesByEpoch_Call) Return ¶ added in v0.46.0
func (_c *Replicas_IdentitiesByEpoch_Call) Return(v flow.IdentitySkeletonList, err error) *Replicas_IdentitiesByEpoch_Call
func (*Replicas_IdentitiesByEpoch_Call) Run ¶ added in v0.46.0
func (_c *Replicas_IdentitiesByEpoch_Call) Run(run func(view uint64)) *Replicas_IdentitiesByEpoch_Call
func (*Replicas_IdentitiesByEpoch_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Replicas_IdentitiesByEpoch_Call) RunAndReturn(run func(view uint64) (flow.IdentitySkeletonList, error)) *Replicas_IdentitiesByEpoch_Call
type Replicas_IdentityByEpoch_Call ¶ added in v0.46.0
Replicas_IdentityByEpoch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IdentityByEpoch'
func (*Replicas_IdentityByEpoch_Call) Return ¶ added in v0.46.0
func (_c *Replicas_IdentityByEpoch_Call) Return(identitySkeleton *flow.IdentitySkeleton, err error) *Replicas_IdentityByEpoch_Call
func (*Replicas_IdentityByEpoch_Call) Run ¶ added in v0.46.0
func (_c *Replicas_IdentityByEpoch_Call) Run(run func(view uint64, participantID flow.Identifier)) *Replicas_IdentityByEpoch_Call
func (*Replicas_IdentityByEpoch_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Replicas_IdentityByEpoch_Call) RunAndReturn(run func(view uint64, participantID flow.Identifier) (*flow.IdentitySkeleton, error)) *Replicas_IdentityByEpoch_Call
type Replicas_LeaderForView_Call ¶ added in v0.46.0
Replicas_LeaderForView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LeaderForView'
func (*Replicas_LeaderForView_Call) Return ¶ added in v0.46.0
func (_c *Replicas_LeaderForView_Call) Return(identifier flow.Identifier, err error) *Replicas_LeaderForView_Call
func (*Replicas_LeaderForView_Call) Run ¶ added in v0.46.0
func (_c *Replicas_LeaderForView_Call) Run(run func(view uint64)) *Replicas_LeaderForView_Call
func (*Replicas_LeaderForView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Replicas_LeaderForView_Call) RunAndReturn(run func(view uint64) (flow.Identifier, error)) *Replicas_LeaderForView_Call
type Replicas_QuorumThresholdForView_Call ¶ added in v0.46.0
Replicas_QuorumThresholdForView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuorumThresholdForView'
func (*Replicas_QuorumThresholdForView_Call) Return ¶ added in v0.46.0
func (_c *Replicas_QuorumThresholdForView_Call) Return(v uint64, err error) *Replicas_QuorumThresholdForView_Call
func (*Replicas_QuorumThresholdForView_Call) Run ¶ added in v0.46.0
func (_c *Replicas_QuorumThresholdForView_Call) Run(run func(view uint64)) *Replicas_QuorumThresholdForView_Call
func (*Replicas_QuorumThresholdForView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Replicas_QuorumThresholdForView_Call) RunAndReturn(run func(view uint64) (uint64, error)) *Replicas_QuorumThresholdForView_Call
type Replicas_Self_Call ¶ added in v0.46.0
Replicas_Self_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Self'
func (*Replicas_Self_Call) Return ¶ added in v0.46.0
func (_c *Replicas_Self_Call) Return(identifier flow.Identifier) *Replicas_Self_Call
func (*Replicas_Self_Call) Run ¶ added in v0.46.0
func (_c *Replicas_Self_Call) Run(run func()) *Replicas_Self_Call
func (*Replicas_Self_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Replicas_Self_Call) RunAndReturn(run func() flow.Identifier) *Replicas_Self_Call
type Replicas_TimeoutThresholdForView_Call ¶ added in v0.46.0
Replicas_TimeoutThresholdForView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TimeoutThresholdForView'
func (*Replicas_TimeoutThresholdForView_Call) Return ¶ added in v0.46.0
func (_c *Replicas_TimeoutThresholdForView_Call) Return(v uint64, err error) *Replicas_TimeoutThresholdForView_Call
func (*Replicas_TimeoutThresholdForView_Call) Run ¶ added in v0.46.0
func (_c *Replicas_TimeoutThresholdForView_Call) Run(run func(view uint64)) *Replicas_TimeoutThresholdForView_Call
func (*Replicas_TimeoutThresholdForView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Replicas_TimeoutThresholdForView_Call) RunAndReturn(run func(view uint64) (uint64, error)) *Replicas_TimeoutThresholdForView_Call
type SafetyRules ¶ added in v0.29.0
SafetyRules is an autogenerated mock type for the SafetyRules type
func NewSafetyRules ¶ added in v0.29.0
func NewSafetyRules(t interface {
mock.TestingT
Cleanup(func())
}) *SafetyRules
NewSafetyRules creates a new instance of SafetyRules. 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 (*SafetyRules) EXPECT ¶ added in v0.46.0
func (_m *SafetyRules) EXPECT() *SafetyRules_Expecter
func (*SafetyRules) ProduceTimeout ¶ added in v0.29.0
func (_mock *SafetyRules) ProduceTimeout(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*model.TimeoutObject, error)
ProduceTimeout provides a mock function for the type SafetyRules
func (*SafetyRules) ProduceVote ¶ added in v0.29.0
func (_mock *SafetyRules) ProduceVote(proposal *model.SignedProposal, curView uint64) (*model.Vote, error)
ProduceVote provides a mock function for the type SafetyRules
func (*SafetyRules) SignOwnProposal ¶ added in v0.38.0
SignOwnProposal provides a mock function for the type SafetyRules
type SafetyRules_Expecter ¶ added in v0.46.0
type SafetyRules_Expecter struct {
// contains filtered or unexported fields
}
func (*SafetyRules_Expecter) ProduceTimeout ¶ added in v0.46.0
func (_e *SafetyRules_Expecter) ProduceTimeout(curView interface{}, newestQC interface{}, lastViewTC interface{}) *SafetyRules_ProduceTimeout_Call
ProduceTimeout is a helper method to define mock.On call
- curView uint64
- newestQC *flow.QuorumCertificate
- lastViewTC *flow.TimeoutCertificate
func (*SafetyRules_Expecter) ProduceVote ¶ added in v0.46.0
func (_e *SafetyRules_Expecter) ProduceVote(proposal interface{}, curView interface{}) *SafetyRules_ProduceVote_Call
ProduceVote is a helper method to define mock.On call
- proposal *model.SignedProposal
- curView uint64
func (*SafetyRules_Expecter) SignOwnProposal ¶ added in v0.46.0
func (_e *SafetyRules_Expecter) SignOwnProposal(unsignedProposal interface{}) *SafetyRules_SignOwnProposal_Call
SignOwnProposal is a helper method to define mock.On call
- unsignedProposal *model.Proposal
type SafetyRules_ProduceTimeout_Call ¶ added in v0.46.0
SafetyRules_ProduceTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProduceTimeout'
func (*SafetyRules_ProduceTimeout_Call) Return ¶ added in v0.46.0
func (_c *SafetyRules_ProduceTimeout_Call) Return(timeoutObject *model.TimeoutObject, err error) *SafetyRules_ProduceTimeout_Call
func (*SafetyRules_ProduceTimeout_Call) Run ¶ added in v0.46.0
func (_c *SafetyRules_ProduceTimeout_Call) Run(run func(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *SafetyRules_ProduceTimeout_Call
func (*SafetyRules_ProduceTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *SafetyRules_ProduceTimeout_Call) RunAndReturn(run func(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*model.TimeoutObject, error)) *SafetyRules_ProduceTimeout_Call
type SafetyRules_ProduceVote_Call ¶ added in v0.46.0
SafetyRules_ProduceVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProduceVote'
func (*SafetyRules_ProduceVote_Call) Return ¶ added in v0.46.0
func (_c *SafetyRules_ProduceVote_Call) Return(vote *model.Vote, err error) *SafetyRules_ProduceVote_Call
func (*SafetyRules_ProduceVote_Call) Run ¶ added in v0.46.0
func (_c *SafetyRules_ProduceVote_Call) Run(run func(proposal *model.SignedProposal, curView uint64)) *SafetyRules_ProduceVote_Call
func (*SafetyRules_ProduceVote_Call) RunAndReturn ¶ added in v0.46.0
func (_c *SafetyRules_ProduceVote_Call) RunAndReturn(run func(proposal *model.SignedProposal, curView uint64) (*model.Vote, error)) *SafetyRules_ProduceVote_Call
type SafetyRules_SignOwnProposal_Call ¶ added in v0.46.0
SafetyRules_SignOwnProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignOwnProposal'
func (*SafetyRules_SignOwnProposal_Call) Return ¶ added in v0.46.0
func (_c *SafetyRules_SignOwnProposal_Call) Return(vote *model.Vote, err error) *SafetyRules_SignOwnProposal_Call
func (*SafetyRules_SignOwnProposal_Call) Run ¶ added in v0.46.0
func (_c *SafetyRules_SignOwnProposal_Call) Run(run func(unsignedProposal *model.Proposal)) *SafetyRules_SignOwnProposal_Call
func (*SafetyRules_SignOwnProposal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *SafetyRules_SignOwnProposal_Call) RunAndReturn(run func(unsignedProposal *model.Proposal) (*model.Vote, error)) *SafetyRules_SignOwnProposal_Call
type Signer ¶
Signer is an autogenerated mock type for the Signer type
func NewSigner ¶ added in v0.26.1
NewSigner creates a new instance of Signer. 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 (*Signer) CreateTimeout ¶ added in v0.29.0
func (_mock *Signer) CreateTimeout(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*model.TimeoutObject, error)
CreateTimeout provides a mock function for the type Signer
func (*Signer) CreateVote ¶
CreateVote provides a mock function for the type Signer
func (*Signer) EXPECT ¶ added in v0.46.0
func (_m *Signer) EXPECT() *Signer_Expecter
type Signer_CreateTimeout_Call ¶ added in v0.46.0
Signer_CreateTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTimeout'
func (*Signer_CreateTimeout_Call) Return ¶ added in v0.46.0
func (_c *Signer_CreateTimeout_Call) Return(timeoutObject *model.TimeoutObject, err error) *Signer_CreateTimeout_Call
func (*Signer_CreateTimeout_Call) Run ¶ added in v0.46.0
func (_c *Signer_CreateTimeout_Call) Run(run func(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *Signer_CreateTimeout_Call
func (*Signer_CreateTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Signer_CreateTimeout_Call) RunAndReturn(run func(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*model.TimeoutObject, error)) *Signer_CreateTimeout_Call
type Signer_CreateVote_Call ¶ added in v0.46.0
Signer_CreateVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateVote'
func (*Signer_CreateVote_Call) Return ¶ added in v0.46.0
func (_c *Signer_CreateVote_Call) Return(vote *model.Vote, err error) *Signer_CreateVote_Call
func (*Signer_CreateVote_Call) Run ¶ added in v0.46.0
func (_c *Signer_CreateVote_Call) Run(run func(block *model.Block)) *Signer_CreateVote_Call
func (*Signer_CreateVote_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Signer_CreateVote_Call) RunAndReturn(run func(block *model.Block) (*model.Vote, error)) *Signer_CreateVote_Call
type Signer_Expecter ¶ added in v0.46.0
type Signer_Expecter struct {
// contains filtered or unexported fields
}
func (*Signer_Expecter) CreateTimeout ¶ added in v0.46.0
func (_e *Signer_Expecter) CreateTimeout(curView interface{}, newestQC interface{}, lastViewTC interface{}) *Signer_CreateTimeout_Call
CreateTimeout is a helper method to define mock.On call
- curView uint64
- newestQC *flow.QuorumCertificate
- lastViewTC *flow.TimeoutCertificate
func (*Signer_Expecter) CreateVote ¶ added in v0.46.0
func (_e *Signer_Expecter) CreateVote(block interface{}) *Signer_CreateVote_Call
CreateVote is a helper method to define mock.On call
- block *model.Block
type TimeoutAggregationConsumer ¶ added in v0.31.0
TimeoutAggregationConsumer is an autogenerated mock type for the TimeoutAggregationConsumer type
func NewTimeoutAggregationConsumer ¶ added in v0.31.0
func NewTimeoutAggregationConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutAggregationConsumer
NewTimeoutAggregationConsumer creates a new instance of TimeoutAggregationConsumer. 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 (*TimeoutAggregationConsumer) EXPECT ¶ added in v0.46.0
func (_m *TimeoutAggregationConsumer) EXPECT() *TimeoutAggregationConsumer_Expecter
func (*TimeoutAggregationConsumer) OnDoubleTimeoutDetected ¶ added in v0.31.0
func (_mock *TimeoutAggregationConsumer) OnDoubleTimeoutDetected(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)
OnDoubleTimeoutDetected provides a mock function for the type TimeoutAggregationConsumer
func (*TimeoutAggregationConsumer) OnInvalidTimeoutDetected ¶ added in v0.31.0
func (_mock *TimeoutAggregationConsumer) OnInvalidTimeoutDetected(err model.InvalidTimeoutError)
OnInvalidTimeoutDetected provides a mock function for the type TimeoutAggregationConsumer
func (*TimeoutAggregationConsumer) OnNewQcDiscovered ¶ added in v0.31.0
func (_mock *TimeoutAggregationConsumer) OnNewQcDiscovered(certificate *flow.QuorumCertificate)
OnNewQcDiscovered provides a mock function for the type TimeoutAggregationConsumer
func (*TimeoutAggregationConsumer) OnNewTcDiscovered ¶ added in v0.31.0
func (_mock *TimeoutAggregationConsumer) OnNewTcDiscovered(certificate *flow.TimeoutCertificate)
OnNewTcDiscovered provides a mock function for the type TimeoutAggregationConsumer
func (*TimeoutAggregationConsumer) OnPartialTcCreated ¶ added in v0.31.0
func (_mock *TimeoutAggregationConsumer) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)
OnPartialTcCreated provides a mock function for the type TimeoutAggregationConsumer
func (*TimeoutAggregationConsumer) OnTcConstructedFromTimeouts ¶ added in v0.31.0
func (_mock *TimeoutAggregationConsumer) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate)
OnTcConstructedFromTimeouts provides a mock function for the type TimeoutAggregationConsumer
func (*TimeoutAggregationConsumer) OnTimeoutProcessed ¶ added in v0.31.0
func (_mock *TimeoutAggregationConsumer) OnTimeoutProcessed(timeout *model.TimeoutObject)
OnTimeoutProcessed provides a mock function for the type TimeoutAggregationConsumer
type TimeoutAggregationConsumer_Expecter ¶ added in v0.46.0
type TimeoutAggregationConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutAggregationConsumer_Expecter) OnDoubleTimeoutDetected ¶ added in v0.46.0
func (_e *TimeoutAggregationConsumer_Expecter) OnDoubleTimeoutDetected(timeoutObject interface{}, timeoutObject1 interface{}) *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call
OnDoubleTimeoutDetected is a helper method to define mock.On call
- timeoutObject *model.TimeoutObject
- timeoutObject1 *model.TimeoutObject
func (*TimeoutAggregationConsumer_Expecter) OnInvalidTimeoutDetected ¶ added in v0.46.0
func (_e *TimeoutAggregationConsumer_Expecter) OnInvalidTimeoutDetected(err interface{}) *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call
OnInvalidTimeoutDetected is a helper method to define mock.On call
- err model.InvalidTimeoutError
func (*TimeoutAggregationConsumer_Expecter) OnNewQcDiscovered ¶ added in v0.46.0
func (_e *TimeoutAggregationConsumer_Expecter) OnNewQcDiscovered(certificate interface{}) *TimeoutAggregationConsumer_OnNewQcDiscovered_Call
OnNewQcDiscovered is a helper method to define mock.On call
- certificate *flow.QuorumCertificate
func (*TimeoutAggregationConsumer_Expecter) OnNewTcDiscovered ¶ added in v0.46.0
func (_e *TimeoutAggregationConsumer_Expecter) OnNewTcDiscovered(certificate interface{}) *TimeoutAggregationConsumer_OnNewTcDiscovered_Call
OnNewTcDiscovered is a helper method to define mock.On call
- certificate *flow.TimeoutCertificate
func (*TimeoutAggregationConsumer_Expecter) OnPartialTcCreated ¶ added in v0.46.0
func (_e *TimeoutAggregationConsumer_Expecter) OnPartialTcCreated(view interface{}, newestQC interface{}, lastViewTC interface{}) *TimeoutAggregationConsumer_OnPartialTcCreated_Call
OnPartialTcCreated is a helper method to define mock.On call
- view uint64
- newestQC *flow.QuorumCertificate
- lastViewTC *flow.TimeoutCertificate
func (*TimeoutAggregationConsumer_Expecter) OnTcConstructedFromTimeouts ¶ added in v0.46.0
func (_e *TimeoutAggregationConsumer_Expecter) OnTcConstructedFromTimeouts(certificate interface{}) *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call
OnTcConstructedFromTimeouts is a helper method to define mock.On call
- certificate *flow.TimeoutCertificate
func (*TimeoutAggregationConsumer_Expecter) OnTimeoutProcessed ¶ added in v0.46.0
func (_e *TimeoutAggregationConsumer_Expecter) OnTimeoutProcessed(timeout interface{}) *TimeoutAggregationConsumer_OnTimeoutProcessed_Call
OnTimeoutProcessed is a helper method to define mock.On call
- timeout *model.TimeoutObject
type TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call ¶ added in v0.46.0
TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDoubleTimeoutDetected'
func (*TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) Run(run func(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)) *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call
func (*TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) RunAndReturn(run func(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)) *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call
type TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call ¶ added in v0.46.0
TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnInvalidTimeoutDetected'
func (*TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) Run(run func(err model.InvalidTimeoutError)) *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call
func (*TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) RunAndReturn(run func(err model.InvalidTimeoutError)) *TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call
type TimeoutAggregationConsumer_OnNewQcDiscovered_Call ¶ added in v0.46.0
TimeoutAggregationConsumer_OnNewQcDiscovered_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnNewQcDiscovered'
func (*TimeoutAggregationConsumer_OnNewQcDiscovered_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnNewQcDiscovered_Call) Run(run func(certificate *flow.QuorumCertificate)) *TimeoutAggregationConsumer_OnNewQcDiscovered_Call
func (*TimeoutAggregationConsumer_OnNewQcDiscovered_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnNewQcDiscovered_Call) RunAndReturn(run func(certificate *flow.QuorumCertificate)) *TimeoutAggregationConsumer_OnNewQcDiscovered_Call
type TimeoutAggregationConsumer_OnNewTcDiscovered_Call ¶ added in v0.46.0
TimeoutAggregationConsumer_OnNewTcDiscovered_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnNewTcDiscovered'
func (*TimeoutAggregationConsumer_OnNewTcDiscovered_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnNewTcDiscovered_Call) Run(run func(certificate *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnNewTcDiscovered_Call
func (*TimeoutAggregationConsumer_OnNewTcDiscovered_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnNewTcDiscovered_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnNewTcDiscovered_Call
type TimeoutAggregationConsumer_OnPartialTcCreated_Call ¶ added in v0.46.0
TimeoutAggregationConsumer_OnPartialTcCreated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnPartialTcCreated'
func (*TimeoutAggregationConsumer_OnPartialTcCreated_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnPartialTcCreated_Call) Run(run func(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnPartialTcCreated_Call
func (*TimeoutAggregationConsumer_OnPartialTcCreated_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnPartialTcCreated_Call) RunAndReturn(run func(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnPartialTcCreated_Call
type TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call ¶ added in v0.46.0
TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnTcConstructedFromTimeouts'
func (*TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) Run(run func(certificate *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call
func (*TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call
type TimeoutAggregationConsumer_OnTimeoutProcessed_Call ¶ added in v0.46.0
TimeoutAggregationConsumer_OnTimeoutProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnTimeoutProcessed'
func (*TimeoutAggregationConsumer_OnTimeoutProcessed_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnTimeoutProcessed_Call) Run(run func(timeout *model.TimeoutObject)) *TimeoutAggregationConsumer_OnTimeoutProcessed_Call
func (*TimeoutAggregationConsumer_OnTimeoutProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregationConsumer_OnTimeoutProcessed_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *TimeoutAggregationConsumer_OnTimeoutProcessed_Call
type TimeoutAggregationViolationConsumer ¶ added in v0.31.0
TimeoutAggregationViolationConsumer is an autogenerated mock type for the TimeoutAggregationViolationConsumer type
func NewTimeoutAggregationViolationConsumer ¶ added in v0.31.0
func NewTimeoutAggregationViolationConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutAggregationViolationConsumer
NewTimeoutAggregationViolationConsumer creates a new instance of TimeoutAggregationViolationConsumer. 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 (*TimeoutAggregationViolationConsumer) EXPECT ¶ added in v0.46.0
func (_m *TimeoutAggregationViolationConsumer) EXPECT() *TimeoutAggregationViolationConsumer_Expecter
func (*TimeoutAggregationViolationConsumer) OnDoubleTimeoutDetected ¶ added in v0.31.0
func (_mock *TimeoutAggregationViolationConsumer) OnDoubleTimeoutDetected(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)
OnDoubleTimeoutDetected provides a mock function for the type TimeoutAggregationViolationConsumer
func (*TimeoutAggregationViolationConsumer) OnInvalidTimeoutDetected ¶ added in v0.31.0
func (_mock *TimeoutAggregationViolationConsumer) OnInvalidTimeoutDetected(err model.InvalidTimeoutError)
OnInvalidTimeoutDetected provides a mock function for the type TimeoutAggregationViolationConsumer
type TimeoutAggregationViolationConsumer_Expecter ¶ added in v0.46.0
type TimeoutAggregationViolationConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutAggregationViolationConsumer_Expecter) OnDoubleTimeoutDetected ¶ added in v0.46.0
func (_e *TimeoutAggregationViolationConsumer_Expecter) OnDoubleTimeoutDetected(timeoutObject interface{}, timeoutObject1 interface{}) *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call
OnDoubleTimeoutDetected is a helper method to define mock.On call
- timeoutObject *model.TimeoutObject
- timeoutObject1 *model.TimeoutObject
func (*TimeoutAggregationViolationConsumer_Expecter) OnInvalidTimeoutDetected ¶ added in v0.46.0
func (_e *TimeoutAggregationViolationConsumer_Expecter) OnInvalidTimeoutDetected(err interface{}) *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call
OnInvalidTimeoutDetected is a helper method to define mock.On call
- err model.InvalidTimeoutError
type TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call ¶ added in v0.46.0
TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDoubleTimeoutDetected'
func (*TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) Run(run func(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)) *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call
func (*TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) RunAndReturn(run func(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)) *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call
type TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call ¶ added in v0.46.0
TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnInvalidTimeoutDetected'
func (*TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call) RunAndReturn(run func(err model.InvalidTimeoutError)) *TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call
type TimeoutAggregator ¶ added in v0.29.0
TimeoutAggregator is an autogenerated mock type for the TimeoutAggregator type
func NewTimeoutAggregator ¶ added in v0.29.0
func NewTimeoutAggregator(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutAggregator
NewTimeoutAggregator creates a new instance of TimeoutAggregator. 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 (*TimeoutAggregator) AddTimeout ¶ added in v0.29.0
func (_mock *TimeoutAggregator) AddTimeout(timeoutObject *model.TimeoutObject)
AddTimeout provides a mock function for the type TimeoutAggregator
func (*TimeoutAggregator) Done ¶ added in v0.29.0
func (_mock *TimeoutAggregator) Done() <-chan struct{}
Done provides a mock function for the type TimeoutAggregator
func (*TimeoutAggregator) EXPECT ¶ added in v0.46.0
func (_m *TimeoutAggregator) EXPECT() *TimeoutAggregator_Expecter
func (*TimeoutAggregator) PruneUpToView ¶ added in v0.29.0
func (_mock *TimeoutAggregator) PruneUpToView(lowestRetainedView uint64)
PruneUpToView provides a mock function for the type TimeoutAggregator
func (*TimeoutAggregator) Ready ¶ added in v0.29.0
func (_mock *TimeoutAggregator) Ready() <-chan struct{}
Ready provides a mock function for the type TimeoutAggregator
func (*TimeoutAggregator) Start ¶ added in v0.29.0
func (_mock *TimeoutAggregator) Start(signalerContext irrecoverable.SignalerContext)
Start provides a mock function for the type TimeoutAggregator
type TimeoutAggregator_AddTimeout_Call ¶ added in v0.46.0
TimeoutAggregator_AddTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTimeout'
func (*TimeoutAggregator_AddTimeout_Call) Return ¶ added in v0.46.0
func (_c *TimeoutAggregator_AddTimeout_Call) Return() *TimeoutAggregator_AddTimeout_Call
func (*TimeoutAggregator_AddTimeout_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregator_AddTimeout_Call) Run(run func(timeoutObject *model.TimeoutObject)) *TimeoutAggregator_AddTimeout_Call
func (*TimeoutAggregator_AddTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregator_AddTimeout_Call) RunAndReturn(run func(timeoutObject *model.TimeoutObject)) *TimeoutAggregator_AddTimeout_Call
type TimeoutAggregator_Done_Call ¶ added in v0.46.0
TimeoutAggregator_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*TimeoutAggregator_Done_Call) Return ¶ added in v0.46.0
func (_c *TimeoutAggregator_Done_Call) Return(valCh <-chan struct{}) *TimeoutAggregator_Done_Call
func (*TimeoutAggregator_Done_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregator_Done_Call) Run(run func()) *TimeoutAggregator_Done_Call
func (*TimeoutAggregator_Done_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregator_Done_Call) RunAndReturn(run func() <-chan struct{}) *TimeoutAggregator_Done_Call
type TimeoutAggregator_Expecter ¶ added in v0.46.0
type TimeoutAggregator_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutAggregator_Expecter) AddTimeout ¶ added in v0.46.0
func (_e *TimeoutAggregator_Expecter) AddTimeout(timeoutObject interface{}) *TimeoutAggregator_AddTimeout_Call
AddTimeout is a helper method to define mock.On call
- timeoutObject *model.TimeoutObject
func (*TimeoutAggregator_Expecter) Done ¶ added in v0.46.0
func (_e *TimeoutAggregator_Expecter) Done() *TimeoutAggregator_Done_Call
Done is a helper method to define mock.On call
func (*TimeoutAggregator_Expecter) PruneUpToView ¶ added in v0.46.0
func (_e *TimeoutAggregator_Expecter) PruneUpToView(lowestRetainedView interface{}) *TimeoutAggregator_PruneUpToView_Call
PruneUpToView is a helper method to define mock.On call
- lowestRetainedView uint64
func (*TimeoutAggregator_Expecter) Ready ¶ added in v0.46.0
func (_e *TimeoutAggregator_Expecter) Ready() *TimeoutAggregator_Ready_Call
Ready is a helper method to define mock.On call
func (*TimeoutAggregator_Expecter) Start ¶ added in v0.46.0
func (_e *TimeoutAggregator_Expecter) Start(signalerContext interface{}) *TimeoutAggregator_Start_Call
Start is a helper method to define mock.On call
- signalerContext irrecoverable.SignalerContext
type TimeoutAggregator_PruneUpToView_Call ¶ added in v0.46.0
TimeoutAggregator_PruneUpToView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PruneUpToView'
func (*TimeoutAggregator_PruneUpToView_Call) Return ¶ added in v0.46.0
func (_c *TimeoutAggregator_PruneUpToView_Call) Return() *TimeoutAggregator_PruneUpToView_Call
func (*TimeoutAggregator_PruneUpToView_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregator_PruneUpToView_Call) Run(run func(lowestRetainedView uint64)) *TimeoutAggregator_PruneUpToView_Call
func (*TimeoutAggregator_PruneUpToView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregator_PruneUpToView_Call) RunAndReturn(run func(lowestRetainedView uint64)) *TimeoutAggregator_PruneUpToView_Call
type TimeoutAggregator_Ready_Call ¶ added in v0.46.0
TimeoutAggregator_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*TimeoutAggregator_Ready_Call) Return ¶ added in v0.46.0
func (_c *TimeoutAggregator_Ready_Call) Return(valCh <-chan struct{}) *TimeoutAggregator_Ready_Call
func (*TimeoutAggregator_Ready_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregator_Ready_Call) Run(run func()) *TimeoutAggregator_Ready_Call
func (*TimeoutAggregator_Ready_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregator_Ready_Call) RunAndReturn(run func() <-chan struct{}) *TimeoutAggregator_Ready_Call
type TimeoutAggregator_Start_Call ¶ added in v0.46.0
TimeoutAggregator_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*TimeoutAggregator_Start_Call) Return ¶ added in v0.46.0
func (_c *TimeoutAggregator_Start_Call) Return() *TimeoutAggregator_Start_Call
func (*TimeoutAggregator_Start_Call) Run ¶ added in v0.46.0
func (_c *TimeoutAggregator_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *TimeoutAggregator_Start_Call
func (*TimeoutAggregator_Start_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutAggregator_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *TimeoutAggregator_Start_Call
type TimeoutCollector ¶ added in v0.29.0
TimeoutCollector is an autogenerated mock type for the TimeoutCollector type
func NewTimeoutCollector ¶ added in v0.29.0
func NewTimeoutCollector(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutCollector
NewTimeoutCollector creates a new instance of TimeoutCollector. 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 (*TimeoutCollector) AddTimeout ¶ added in v0.29.0
func (_mock *TimeoutCollector) AddTimeout(timeoutObject *model.TimeoutObject) error
AddTimeout provides a mock function for the type TimeoutCollector
func (*TimeoutCollector) EXPECT ¶ added in v0.46.0
func (_m *TimeoutCollector) EXPECT() *TimeoutCollector_Expecter
func (*TimeoutCollector) View ¶ added in v0.29.0
func (_mock *TimeoutCollector) View() uint64
View provides a mock function for the type TimeoutCollector
type TimeoutCollectorConsumer ¶ added in v0.29.0
TimeoutCollectorConsumer is an autogenerated mock type for the TimeoutCollectorConsumer type
func NewTimeoutCollectorConsumer ¶ added in v0.29.0
func NewTimeoutCollectorConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutCollectorConsumer
NewTimeoutCollectorConsumer creates a new instance of TimeoutCollectorConsumer. 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 (*TimeoutCollectorConsumer) EXPECT ¶ added in v0.46.0
func (_m *TimeoutCollectorConsumer) EXPECT() *TimeoutCollectorConsumer_Expecter
func (*TimeoutCollectorConsumer) OnNewQcDiscovered ¶ added in v0.29.0
func (_mock *TimeoutCollectorConsumer) OnNewQcDiscovered(certificate *flow.QuorumCertificate)
OnNewQcDiscovered provides a mock function for the type TimeoutCollectorConsumer
func (*TimeoutCollectorConsumer) OnNewTcDiscovered ¶ added in v0.29.0
func (_mock *TimeoutCollectorConsumer) OnNewTcDiscovered(certificate *flow.TimeoutCertificate)
OnNewTcDiscovered provides a mock function for the type TimeoutCollectorConsumer
func (*TimeoutCollectorConsumer) OnPartialTcCreated ¶ added in v0.29.0
func (_mock *TimeoutCollectorConsumer) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)
OnPartialTcCreated provides a mock function for the type TimeoutCollectorConsumer
func (*TimeoutCollectorConsumer) OnTcConstructedFromTimeouts ¶ added in v0.29.0
func (_mock *TimeoutCollectorConsumer) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate)
OnTcConstructedFromTimeouts provides a mock function for the type TimeoutCollectorConsumer
func (*TimeoutCollectorConsumer) OnTimeoutProcessed ¶ added in v0.31.0
func (_mock *TimeoutCollectorConsumer) OnTimeoutProcessed(timeout *model.TimeoutObject)
OnTimeoutProcessed provides a mock function for the type TimeoutCollectorConsumer
type TimeoutCollectorConsumer_Expecter ¶ added in v0.46.0
type TimeoutCollectorConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutCollectorConsumer_Expecter) OnNewQcDiscovered ¶ added in v0.46.0
func (_e *TimeoutCollectorConsumer_Expecter) OnNewQcDiscovered(certificate interface{}) *TimeoutCollectorConsumer_OnNewQcDiscovered_Call
OnNewQcDiscovered is a helper method to define mock.On call
- certificate *flow.QuorumCertificate
func (*TimeoutCollectorConsumer_Expecter) OnNewTcDiscovered ¶ added in v0.46.0
func (_e *TimeoutCollectorConsumer_Expecter) OnNewTcDiscovered(certificate interface{}) *TimeoutCollectorConsumer_OnNewTcDiscovered_Call
OnNewTcDiscovered is a helper method to define mock.On call
- certificate *flow.TimeoutCertificate
func (*TimeoutCollectorConsumer_Expecter) OnPartialTcCreated ¶ added in v0.46.0
func (_e *TimeoutCollectorConsumer_Expecter) OnPartialTcCreated(view interface{}, newestQC interface{}, lastViewTC interface{}) *TimeoutCollectorConsumer_OnPartialTcCreated_Call
OnPartialTcCreated is a helper method to define mock.On call
- view uint64
- newestQC *flow.QuorumCertificate
- lastViewTC *flow.TimeoutCertificate
func (*TimeoutCollectorConsumer_Expecter) OnTcConstructedFromTimeouts ¶ added in v0.46.0
func (_e *TimeoutCollectorConsumer_Expecter) OnTcConstructedFromTimeouts(certificate interface{}) *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call
OnTcConstructedFromTimeouts is a helper method to define mock.On call
- certificate *flow.TimeoutCertificate
func (*TimeoutCollectorConsumer_Expecter) OnTimeoutProcessed ¶ added in v0.46.0
func (_e *TimeoutCollectorConsumer_Expecter) OnTimeoutProcessed(timeout interface{}) *TimeoutCollectorConsumer_OnTimeoutProcessed_Call
OnTimeoutProcessed is a helper method to define mock.On call
- timeout *model.TimeoutObject
type TimeoutCollectorConsumer_OnNewQcDiscovered_Call ¶ added in v0.46.0
TimeoutCollectorConsumer_OnNewQcDiscovered_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnNewQcDiscovered'
func (*TimeoutCollectorConsumer_OnNewQcDiscovered_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnNewQcDiscovered_Call) Run(run func(certificate *flow.QuorumCertificate)) *TimeoutCollectorConsumer_OnNewQcDiscovered_Call
func (*TimeoutCollectorConsumer_OnNewQcDiscovered_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnNewQcDiscovered_Call) RunAndReturn(run func(certificate *flow.QuorumCertificate)) *TimeoutCollectorConsumer_OnNewQcDiscovered_Call
type TimeoutCollectorConsumer_OnNewTcDiscovered_Call ¶ added in v0.46.0
TimeoutCollectorConsumer_OnNewTcDiscovered_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnNewTcDiscovered'
func (*TimeoutCollectorConsumer_OnNewTcDiscovered_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnNewTcDiscovered_Call) Run(run func(certificate *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnNewTcDiscovered_Call
func (*TimeoutCollectorConsumer_OnNewTcDiscovered_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnNewTcDiscovered_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnNewTcDiscovered_Call
type TimeoutCollectorConsumer_OnPartialTcCreated_Call ¶ added in v0.46.0
TimeoutCollectorConsumer_OnPartialTcCreated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnPartialTcCreated'
func (*TimeoutCollectorConsumer_OnPartialTcCreated_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnPartialTcCreated_Call) Run(run func(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnPartialTcCreated_Call
func (*TimeoutCollectorConsumer_OnPartialTcCreated_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnPartialTcCreated_Call) RunAndReturn(run func(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnPartialTcCreated_Call
type TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call ¶ added in v0.46.0
TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnTcConstructedFromTimeouts'
func (*TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) Run(run func(certificate *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call
func (*TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) RunAndReturn(run func(certificate *flow.TimeoutCertificate)) *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call
type TimeoutCollectorConsumer_OnTimeoutProcessed_Call ¶ added in v0.46.0
TimeoutCollectorConsumer_OnTimeoutProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnTimeoutProcessed'
func (*TimeoutCollectorConsumer_OnTimeoutProcessed_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnTimeoutProcessed_Call) Run(run func(timeout *model.TimeoutObject)) *TimeoutCollectorConsumer_OnTimeoutProcessed_Call
func (*TimeoutCollectorConsumer_OnTimeoutProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollectorConsumer_OnTimeoutProcessed_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *TimeoutCollectorConsumer_OnTimeoutProcessed_Call
type TimeoutCollectorFactory ¶ added in v0.29.0
TimeoutCollectorFactory is an autogenerated mock type for the TimeoutCollectorFactory type
func NewTimeoutCollectorFactory ¶ added in v0.29.0
func NewTimeoutCollectorFactory(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutCollectorFactory
NewTimeoutCollectorFactory creates a new instance of TimeoutCollectorFactory. 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 (*TimeoutCollectorFactory) Create ¶ added in v0.29.0
func (_mock *TimeoutCollectorFactory) Create(view uint64) (hotstuff.TimeoutCollector, error)
Create provides a mock function for the type TimeoutCollectorFactory
func (*TimeoutCollectorFactory) EXPECT ¶ added in v0.46.0
func (_m *TimeoutCollectorFactory) EXPECT() *TimeoutCollectorFactory_Expecter
type TimeoutCollectorFactory_Create_Call ¶ added in v0.46.0
TimeoutCollectorFactory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*TimeoutCollectorFactory_Create_Call) Return ¶ added in v0.46.0
func (_c *TimeoutCollectorFactory_Create_Call) Return(timeoutCollector hotstuff.TimeoutCollector, err error) *TimeoutCollectorFactory_Create_Call
func (*TimeoutCollectorFactory_Create_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollectorFactory_Create_Call) Run(run func(view uint64)) *TimeoutCollectorFactory_Create_Call
func (*TimeoutCollectorFactory_Create_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollectorFactory_Create_Call) RunAndReturn(run func(view uint64) (hotstuff.TimeoutCollector, error)) *TimeoutCollectorFactory_Create_Call
type TimeoutCollectorFactory_Expecter ¶ added in v0.46.0
type TimeoutCollectorFactory_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutCollectorFactory_Expecter) Create ¶ added in v0.46.0
func (_e *TimeoutCollectorFactory_Expecter) Create(view interface{}) *TimeoutCollectorFactory_Create_Call
Create is a helper method to define mock.On call
- view uint64
type TimeoutCollector_AddTimeout_Call ¶ added in v0.46.0
TimeoutCollector_AddTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTimeout'
func (*TimeoutCollector_AddTimeout_Call) Return ¶ added in v0.46.0
func (_c *TimeoutCollector_AddTimeout_Call) Return(err error) *TimeoutCollector_AddTimeout_Call
func (*TimeoutCollector_AddTimeout_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollector_AddTimeout_Call) Run(run func(timeoutObject *model.TimeoutObject)) *TimeoutCollector_AddTimeout_Call
func (*TimeoutCollector_AddTimeout_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollector_AddTimeout_Call) RunAndReturn(run func(timeoutObject *model.TimeoutObject) error) *TimeoutCollector_AddTimeout_Call
type TimeoutCollector_Expecter ¶ added in v0.46.0
type TimeoutCollector_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutCollector_Expecter) AddTimeout ¶ added in v0.46.0
func (_e *TimeoutCollector_Expecter) AddTimeout(timeoutObject interface{}) *TimeoutCollector_AddTimeout_Call
AddTimeout is a helper method to define mock.On call
- timeoutObject *model.TimeoutObject
func (*TimeoutCollector_Expecter) View ¶ added in v0.46.0
func (_e *TimeoutCollector_Expecter) View() *TimeoutCollector_View_Call
View is a helper method to define mock.On call
type TimeoutCollector_View_Call ¶ added in v0.46.0
TimeoutCollector_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'
func (*TimeoutCollector_View_Call) Return ¶ added in v0.46.0
func (_c *TimeoutCollector_View_Call) Return(v uint64) *TimeoutCollector_View_Call
func (*TimeoutCollector_View_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollector_View_Call) Run(run func()) *TimeoutCollector_View_Call
func (*TimeoutCollector_View_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollector_View_Call) RunAndReturn(run func() uint64) *TimeoutCollector_View_Call
type TimeoutCollectors ¶ added in v0.29.0
TimeoutCollectors is an autogenerated mock type for the TimeoutCollectors type
func NewTimeoutCollectors ¶ added in v0.29.0
func NewTimeoutCollectors(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutCollectors
NewTimeoutCollectors creates a new instance of TimeoutCollectors. 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 (*TimeoutCollectors) EXPECT ¶ added in v0.46.0
func (_m *TimeoutCollectors) EXPECT() *TimeoutCollectors_Expecter
func (*TimeoutCollectors) GetOrCreateCollector ¶ added in v0.29.0
func (_mock *TimeoutCollectors) GetOrCreateCollector(view uint64) (hotstuff.TimeoutCollector, bool, error)
GetOrCreateCollector provides a mock function for the type TimeoutCollectors
func (*TimeoutCollectors) PruneUpToView ¶ added in v0.29.0
func (_mock *TimeoutCollectors) PruneUpToView(lowestRetainedView uint64)
PruneUpToView provides a mock function for the type TimeoutCollectors
type TimeoutCollectors_Expecter ¶ added in v0.46.0
type TimeoutCollectors_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutCollectors_Expecter) GetOrCreateCollector ¶ added in v0.46.0
func (_e *TimeoutCollectors_Expecter) GetOrCreateCollector(view interface{}) *TimeoutCollectors_GetOrCreateCollector_Call
GetOrCreateCollector is a helper method to define mock.On call
- view uint64
func (*TimeoutCollectors_Expecter) PruneUpToView ¶ added in v0.46.0
func (_e *TimeoutCollectors_Expecter) PruneUpToView(lowestRetainedView interface{}) *TimeoutCollectors_PruneUpToView_Call
PruneUpToView is a helper method to define mock.On call
- lowestRetainedView uint64
type TimeoutCollectors_GetOrCreateCollector_Call ¶ added in v0.46.0
TimeoutCollectors_GetOrCreateCollector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreateCollector'
func (*TimeoutCollectors_GetOrCreateCollector_Call) Return ¶ added in v0.46.0
func (_c *TimeoutCollectors_GetOrCreateCollector_Call) Return(collector hotstuff.TimeoutCollector, created bool, err error) *TimeoutCollectors_GetOrCreateCollector_Call
func (*TimeoutCollectors_GetOrCreateCollector_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollectors_GetOrCreateCollector_Call) Run(run func(view uint64)) *TimeoutCollectors_GetOrCreateCollector_Call
func (*TimeoutCollectors_GetOrCreateCollector_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollectors_GetOrCreateCollector_Call) RunAndReturn(run func(view uint64) (hotstuff.TimeoutCollector, bool, error)) *TimeoutCollectors_GetOrCreateCollector_Call
type TimeoutCollectors_PruneUpToView_Call ¶ added in v0.46.0
TimeoutCollectors_PruneUpToView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PruneUpToView'
func (*TimeoutCollectors_PruneUpToView_Call) Return ¶ added in v0.46.0
func (_c *TimeoutCollectors_PruneUpToView_Call) Return() *TimeoutCollectors_PruneUpToView_Call
func (*TimeoutCollectors_PruneUpToView_Call) Run ¶ added in v0.46.0
func (_c *TimeoutCollectors_PruneUpToView_Call) Run(run func(lowestRetainedView uint64)) *TimeoutCollectors_PruneUpToView_Call
func (*TimeoutCollectors_PruneUpToView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutCollectors_PruneUpToView_Call) RunAndReturn(run func(lowestRetainedView uint64)) *TimeoutCollectors_PruneUpToView_Call
type TimeoutProcessor ¶ added in v0.29.0
TimeoutProcessor is an autogenerated mock type for the TimeoutProcessor type
func NewTimeoutProcessor ¶ added in v0.29.0
func NewTimeoutProcessor(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutProcessor
NewTimeoutProcessor creates a new instance of TimeoutProcessor. 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 (*TimeoutProcessor) EXPECT ¶ added in v0.46.0
func (_m *TimeoutProcessor) EXPECT() *TimeoutProcessor_Expecter
func (*TimeoutProcessor) Process ¶ added in v0.29.0
func (_mock *TimeoutProcessor) Process(timeout *model.TimeoutObject) error
Process provides a mock function for the type TimeoutProcessor
type TimeoutProcessorFactory ¶ added in v0.29.0
TimeoutProcessorFactory is an autogenerated mock type for the TimeoutProcessorFactory type
func NewTimeoutProcessorFactory ¶ added in v0.29.0
func NewTimeoutProcessorFactory(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutProcessorFactory
NewTimeoutProcessorFactory creates a new instance of TimeoutProcessorFactory. 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 (*TimeoutProcessorFactory) Create ¶ added in v0.29.0
func (_mock *TimeoutProcessorFactory) Create(view uint64) (hotstuff.TimeoutProcessor, error)
Create provides a mock function for the type TimeoutProcessorFactory
func (*TimeoutProcessorFactory) EXPECT ¶ added in v0.46.0
func (_m *TimeoutProcessorFactory) EXPECT() *TimeoutProcessorFactory_Expecter
type TimeoutProcessorFactory_Create_Call ¶ added in v0.46.0
TimeoutProcessorFactory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*TimeoutProcessorFactory_Create_Call) Return ¶ added in v0.46.0
func (_c *TimeoutProcessorFactory_Create_Call) Return(timeoutProcessor hotstuff.TimeoutProcessor, err error) *TimeoutProcessorFactory_Create_Call
func (*TimeoutProcessorFactory_Create_Call) Run ¶ added in v0.46.0
func (_c *TimeoutProcessorFactory_Create_Call) Run(run func(view uint64)) *TimeoutProcessorFactory_Create_Call
func (*TimeoutProcessorFactory_Create_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutProcessorFactory_Create_Call) RunAndReturn(run func(view uint64) (hotstuff.TimeoutProcessor, error)) *TimeoutProcessorFactory_Create_Call
type TimeoutProcessorFactory_Expecter ¶ added in v0.46.0
type TimeoutProcessorFactory_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutProcessorFactory_Expecter) Create ¶ added in v0.46.0
func (_e *TimeoutProcessorFactory_Expecter) Create(view interface{}) *TimeoutProcessorFactory_Create_Call
Create is a helper method to define mock.On call
- view uint64
type TimeoutProcessor_Expecter ¶ added in v0.46.0
type TimeoutProcessor_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutProcessor_Expecter) Process ¶ added in v0.46.0
func (_e *TimeoutProcessor_Expecter) Process(timeout interface{}) *TimeoutProcessor_Process_Call
Process is a helper method to define mock.On call
- timeout *model.TimeoutObject
type TimeoutProcessor_Process_Call ¶ added in v0.46.0
TimeoutProcessor_Process_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Process'
func (*TimeoutProcessor_Process_Call) Return ¶ added in v0.46.0
func (_c *TimeoutProcessor_Process_Call) Return(err error) *TimeoutProcessor_Process_Call
func (*TimeoutProcessor_Process_Call) Run ¶ added in v0.46.0
func (_c *TimeoutProcessor_Process_Call) Run(run func(timeout *model.TimeoutObject)) *TimeoutProcessor_Process_Call
func (*TimeoutProcessor_Process_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutProcessor_Process_Call) RunAndReturn(run func(timeout *model.TimeoutObject) error) *TimeoutProcessor_Process_Call
type TimeoutSignatureAggregator ¶ added in v0.29.0
TimeoutSignatureAggregator is an autogenerated mock type for the TimeoutSignatureAggregator type
func NewTimeoutSignatureAggregator ¶ added in v0.29.0
func NewTimeoutSignatureAggregator(t interface {
mock.TestingT
Cleanup(func())
}) *TimeoutSignatureAggregator
NewTimeoutSignatureAggregator creates a new instance of TimeoutSignatureAggregator. 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 (*TimeoutSignatureAggregator) Aggregate ¶ added in v0.29.0
func (_mock *TimeoutSignatureAggregator) Aggregate() ([]hotstuff.TimeoutSignerInfo, crypto.Signature, error)
Aggregate provides a mock function for the type TimeoutSignatureAggregator
func (*TimeoutSignatureAggregator) EXPECT ¶ added in v0.46.0
func (_m *TimeoutSignatureAggregator) EXPECT() *TimeoutSignatureAggregator_Expecter
func (*TimeoutSignatureAggregator) TotalWeight ¶ added in v0.29.0
func (_mock *TimeoutSignatureAggregator) TotalWeight() uint64
TotalWeight provides a mock function for the type TimeoutSignatureAggregator
func (*TimeoutSignatureAggregator) VerifyAndAdd ¶ added in v0.29.0
func (_mock *TimeoutSignatureAggregator) VerifyAndAdd(signerID flow.Identifier, sig crypto.Signature, newestQCView uint64) (uint64, error)
VerifyAndAdd provides a mock function for the type TimeoutSignatureAggregator
func (*TimeoutSignatureAggregator) View ¶ added in v0.29.0
func (_mock *TimeoutSignatureAggregator) View() uint64
View provides a mock function for the type TimeoutSignatureAggregator
type TimeoutSignatureAggregator_Aggregate_Call ¶ added in v0.46.0
TimeoutSignatureAggregator_Aggregate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Aggregate'
func (*TimeoutSignatureAggregator_Aggregate_Call) Return ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_Aggregate_Call) Return(signersInfo []hotstuff.TimeoutSignerInfo, aggregatedSig crypto.Signature, exception error) *TimeoutSignatureAggregator_Aggregate_Call
func (*TimeoutSignatureAggregator_Aggregate_Call) Run ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_Aggregate_Call) Run(run func()) *TimeoutSignatureAggregator_Aggregate_Call
func (*TimeoutSignatureAggregator_Aggregate_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_Aggregate_Call) RunAndReturn(run func() ([]hotstuff.TimeoutSignerInfo, crypto.Signature, error)) *TimeoutSignatureAggregator_Aggregate_Call
type TimeoutSignatureAggregator_Expecter ¶ added in v0.46.0
type TimeoutSignatureAggregator_Expecter struct {
// contains filtered or unexported fields
}
func (*TimeoutSignatureAggregator_Expecter) Aggregate ¶ added in v0.46.0
func (_e *TimeoutSignatureAggregator_Expecter) Aggregate() *TimeoutSignatureAggregator_Aggregate_Call
Aggregate is a helper method to define mock.On call
func (*TimeoutSignatureAggregator_Expecter) TotalWeight ¶ added in v0.46.0
func (_e *TimeoutSignatureAggregator_Expecter) TotalWeight() *TimeoutSignatureAggregator_TotalWeight_Call
TotalWeight is a helper method to define mock.On call
func (*TimeoutSignatureAggregator_Expecter) VerifyAndAdd ¶ added in v0.46.0
func (_e *TimeoutSignatureAggregator_Expecter) VerifyAndAdd(signerID interface{}, sig interface{}, newestQCView interface{}) *TimeoutSignatureAggregator_VerifyAndAdd_Call
VerifyAndAdd is a helper method to define mock.On call
- signerID flow.Identifier
- sig crypto.Signature
- newestQCView uint64
func (*TimeoutSignatureAggregator_Expecter) View ¶ added in v0.46.0
func (_e *TimeoutSignatureAggregator_Expecter) View() *TimeoutSignatureAggregator_View_Call
View is a helper method to define mock.On call
type TimeoutSignatureAggregator_TotalWeight_Call ¶ added in v0.46.0
TimeoutSignatureAggregator_TotalWeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TotalWeight'
func (*TimeoutSignatureAggregator_TotalWeight_Call) Return ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_TotalWeight_Call) Return(v uint64) *TimeoutSignatureAggregator_TotalWeight_Call
func (*TimeoutSignatureAggregator_TotalWeight_Call) Run ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_TotalWeight_Call) Run(run func()) *TimeoutSignatureAggregator_TotalWeight_Call
func (*TimeoutSignatureAggregator_TotalWeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_TotalWeight_Call) RunAndReturn(run func() uint64) *TimeoutSignatureAggregator_TotalWeight_Call
type TimeoutSignatureAggregator_VerifyAndAdd_Call ¶ added in v0.46.0
TimeoutSignatureAggregator_VerifyAndAdd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyAndAdd'
func (*TimeoutSignatureAggregator_VerifyAndAdd_Call) Return ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_VerifyAndAdd_Call) Return(totalWeight uint64, exception error) *TimeoutSignatureAggregator_VerifyAndAdd_Call
func (*TimeoutSignatureAggregator_VerifyAndAdd_Call) Run ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_VerifyAndAdd_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature, newestQCView uint64)) *TimeoutSignatureAggregator_VerifyAndAdd_Call
func (*TimeoutSignatureAggregator_VerifyAndAdd_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_VerifyAndAdd_Call) RunAndReturn(run func(signerID flow.Identifier, sig crypto.Signature, newestQCView uint64) (uint64, error)) *TimeoutSignatureAggregator_VerifyAndAdd_Call
type TimeoutSignatureAggregator_View_Call ¶ added in v0.46.0
TimeoutSignatureAggregator_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'
func (*TimeoutSignatureAggregator_View_Call) Return ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_View_Call) Return(v uint64) *TimeoutSignatureAggregator_View_Call
func (*TimeoutSignatureAggregator_View_Call) Run ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_View_Call) Run(run func()) *TimeoutSignatureAggregator_View_Call
func (*TimeoutSignatureAggregator_View_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TimeoutSignatureAggregator_View_Call) RunAndReturn(run func() uint64) *TimeoutSignatureAggregator_View_Call
type Validator ¶
Validator is an autogenerated mock type for the Validator type
func NewValidator ¶ added in v0.26.1
NewValidator creates a new instance of Validator. 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 (*Validator) EXPECT ¶ added in v0.46.0
func (_m *Validator) EXPECT() *Validator_Expecter
func (*Validator) ValidateProposal ¶
func (_mock *Validator) ValidateProposal(proposal *model.SignedProposal) error
ValidateProposal provides a mock function for the type Validator
func (*Validator) ValidateQC ¶
func (_mock *Validator) ValidateQC(qc *flow.QuorumCertificate) error
ValidateQC provides a mock function for the type Validator
func (*Validator) ValidateTC ¶ added in v0.29.0
func (_mock *Validator) ValidateTC(tc *flow.TimeoutCertificate) error
ValidateTC provides a mock function for the type Validator
func (*Validator) ValidateVote ¶
ValidateVote provides a mock function for the type Validator
type Validator_Expecter ¶ added in v0.46.0
type Validator_Expecter struct {
// contains filtered or unexported fields
}
func (*Validator_Expecter) ValidateProposal ¶ added in v0.46.0
func (_e *Validator_Expecter) ValidateProposal(proposal interface{}) *Validator_ValidateProposal_Call
ValidateProposal is a helper method to define mock.On call
- proposal *model.SignedProposal
func (*Validator_Expecter) ValidateQC ¶ added in v0.46.0
func (_e *Validator_Expecter) ValidateQC(qc interface{}) *Validator_ValidateQC_Call
ValidateQC is a helper method to define mock.On call
- qc *flow.QuorumCertificate
func (*Validator_Expecter) ValidateTC ¶ added in v0.46.0
func (_e *Validator_Expecter) ValidateTC(tc interface{}) *Validator_ValidateTC_Call
ValidateTC is a helper method to define mock.On call
- tc *flow.TimeoutCertificate
func (*Validator_Expecter) ValidateVote ¶ added in v0.46.0
func (_e *Validator_Expecter) ValidateVote(vote interface{}) *Validator_ValidateVote_Call
ValidateVote is a helper method to define mock.On call
- vote *model.Vote
type Validator_ValidateProposal_Call ¶ added in v0.46.0
Validator_ValidateProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateProposal'
func (*Validator_ValidateProposal_Call) Return ¶ added in v0.46.0
func (_c *Validator_ValidateProposal_Call) Return(err error) *Validator_ValidateProposal_Call
func (*Validator_ValidateProposal_Call) Run ¶ added in v0.46.0
func (_c *Validator_ValidateProposal_Call) Run(run func(proposal *model.SignedProposal)) *Validator_ValidateProposal_Call
func (*Validator_ValidateProposal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Validator_ValidateProposal_Call) RunAndReturn(run func(proposal *model.SignedProposal) error) *Validator_ValidateProposal_Call
type Validator_ValidateQC_Call ¶ added in v0.46.0
Validator_ValidateQC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateQC'
func (*Validator_ValidateQC_Call) Return ¶ added in v0.46.0
func (_c *Validator_ValidateQC_Call) Return(err error) *Validator_ValidateQC_Call
func (*Validator_ValidateQC_Call) Run ¶ added in v0.46.0
func (_c *Validator_ValidateQC_Call) Run(run func(qc *flow.QuorumCertificate)) *Validator_ValidateQC_Call
func (*Validator_ValidateQC_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Validator_ValidateQC_Call) RunAndReturn(run func(qc *flow.QuorumCertificate) error) *Validator_ValidateQC_Call
type Validator_ValidateTC_Call ¶ added in v0.46.0
Validator_ValidateTC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateTC'
func (*Validator_ValidateTC_Call) Return ¶ added in v0.46.0
func (_c *Validator_ValidateTC_Call) Return(err error) *Validator_ValidateTC_Call
func (*Validator_ValidateTC_Call) Run ¶ added in v0.46.0
func (_c *Validator_ValidateTC_Call) Run(run func(tc *flow.TimeoutCertificate)) *Validator_ValidateTC_Call
func (*Validator_ValidateTC_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Validator_ValidateTC_Call) RunAndReturn(run func(tc *flow.TimeoutCertificate) error) *Validator_ValidateTC_Call
type Validator_ValidateVote_Call ¶ added in v0.46.0
Validator_ValidateVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateVote'
func (*Validator_ValidateVote_Call) Return ¶ added in v0.46.0
func (_c *Validator_ValidateVote_Call) Return(identitySkeleton *flow.IdentitySkeleton, err error) *Validator_ValidateVote_Call
func (*Validator_ValidateVote_Call) Run ¶ added in v0.46.0
func (_c *Validator_ValidateVote_Call) Run(run func(vote *model.Vote)) *Validator_ValidateVote_Call
func (*Validator_ValidateVote_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Validator_ValidateVote_Call) RunAndReturn(run func(vote *model.Vote) (*flow.IdentitySkeleton, error)) *Validator_ValidateVote_Call
type Verifier ¶
Verifier is an autogenerated mock type for the Verifier type
func NewVerifier ¶ added in v0.26.1
NewVerifier creates a new instance of Verifier. 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 (*Verifier) EXPECT ¶ added in v0.46.0
func (_m *Verifier) EXPECT() *Verifier_Expecter
func (*Verifier) VerifyQC ¶
func (_mock *Verifier) VerifyQC(signers flow.IdentitySkeletonList, sigData []byte, view uint64, blockID flow.Identifier) error
VerifyQC provides a mock function for the type Verifier
func (*Verifier) VerifyTC ¶ added in v0.29.0
func (_mock *Verifier) VerifyTC(signers flow.IdentitySkeletonList, sigData []byte, view uint64, highQCViews []uint64) error
VerifyTC provides a mock function for the type Verifier
func (*Verifier) VerifyVote ¶
func (_mock *Verifier) VerifyVote(voter *flow.IdentitySkeleton, sigData []byte, view uint64, blockID flow.Identifier) error
VerifyVote provides a mock function for the type Verifier
type Verifier_Expecter ¶ added in v0.46.0
type Verifier_Expecter struct {
// contains filtered or unexported fields
}
func (*Verifier_Expecter) VerifyQC ¶ added in v0.46.0
func (_e *Verifier_Expecter) VerifyQC(signers interface{}, sigData interface{}, view interface{}, blockID interface{}) *Verifier_VerifyQC_Call
VerifyQC is a helper method to define mock.On call
- signers flow.IdentitySkeletonList
- sigData []byte
- view uint64
- blockID flow.Identifier
func (*Verifier_Expecter) VerifyTC ¶ added in v0.46.0
func (_e *Verifier_Expecter) VerifyTC(signers interface{}, sigData interface{}, view interface{}, highQCViews interface{}) *Verifier_VerifyTC_Call
VerifyTC is a helper method to define mock.On call
- signers flow.IdentitySkeletonList
- sigData []byte
- view uint64
- highQCViews []uint64
func (*Verifier_Expecter) VerifyVote ¶ added in v0.46.0
func (_e *Verifier_Expecter) VerifyVote(voter interface{}, sigData interface{}, view interface{}, blockID interface{}) *Verifier_VerifyVote_Call
VerifyVote is a helper method to define mock.On call
- voter *flow.IdentitySkeleton
- sigData []byte
- view uint64
- blockID flow.Identifier
type Verifier_VerifyQC_Call ¶ added in v0.46.0
Verifier_VerifyQC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyQC'
func (*Verifier_VerifyQC_Call) Return ¶ added in v0.46.0
func (_c *Verifier_VerifyQC_Call) Return(err error) *Verifier_VerifyQC_Call
func (*Verifier_VerifyQC_Call) Run ¶ added in v0.46.0
func (_c *Verifier_VerifyQC_Call) Run(run func(signers flow.IdentitySkeletonList, sigData []byte, view uint64, blockID flow.Identifier)) *Verifier_VerifyQC_Call
func (*Verifier_VerifyQC_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Verifier_VerifyQC_Call) RunAndReturn(run func(signers flow.IdentitySkeletonList, sigData []byte, view uint64, blockID flow.Identifier) error) *Verifier_VerifyQC_Call
type Verifier_VerifyTC_Call ¶ added in v0.46.0
Verifier_VerifyTC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyTC'
func (*Verifier_VerifyTC_Call) Return ¶ added in v0.46.0
func (_c *Verifier_VerifyTC_Call) Return(err error) *Verifier_VerifyTC_Call
func (*Verifier_VerifyTC_Call) Run ¶ added in v0.46.0
func (_c *Verifier_VerifyTC_Call) Run(run func(signers flow.IdentitySkeletonList, sigData []byte, view uint64, highQCViews []uint64)) *Verifier_VerifyTC_Call
func (*Verifier_VerifyTC_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Verifier_VerifyTC_Call) RunAndReturn(run func(signers flow.IdentitySkeletonList, sigData []byte, view uint64, highQCViews []uint64) error) *Verifier_VerifyTC_Call
type Verifier_VerifyVote_Call ¶ added in v0.46.0
Verifier_VerifyVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VerifyVote'
func (*Verifier_VerifyVote_Call) Return ¶ added in v0.46.0
func (_c *Verifier_VerifyVote_Call) Return(err error) *Verifier_VerifyVote_Call
func (*Verifier_VerifyVote_Call) Run ¶ added in v0.46.0
func (_c *Verifier_VerifyVote_Call) Run(run func(voter *flow.IdentitySkeleton, sigData []byte, view uint64, blockID flow.Identifier)) *Verifier_VerifyVote_Call
func (*Verifier_VerifyVote_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Verifier_VerifyVote_Call) RunAndReturn(run func(voter *flow.IdentitySkeleton, sigData []byte, view uint64, blockID flow.Identifier) error) *Verifier_VerifyVote_Call
type VerifyingVoteProcessor ¶ added in v0.23.9
VerifyingVoteProcessor is an autogenerated mock type for the VerifyingVoteProcessor type
func NewVerifyingVoteProcessor ¶ added in v0.26.1
func NewVerifyingVoteProcessor(t interface {
mock.TestingT
Cleanup(func())
}) *VerifyingVoteProcessor
NewVerifyingVoteProcessor creates a new instance of VerifyingVoteProcessor. 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 (*VerifyingVoteProcessor) Block ¶ added in v0.23.9
func (_mock *VerifyingVoteProcessor) Block() *model.Block
Block provides a mock function for the type VerifyingVoteProcessor
func (*VerifyingVoteProcessor) EXPECT ¶ added in v0.46.0
func (_m *VerifyingVoteProcessor) EXPECT() *VerifyingVoteProcessor_Expecter
func (*VerifyingVoteProcessor) Process ¶ added in v0.23.9
func (_mock *VerifyingVoteProcessor) Process(vote *model.Vote) error
Process provides a mock function for the type VerifyingVoteProcessor
func (*VerifyingVoteProcessor) Status ¶ added in v0.23.9
func (_mock *VerifyingVoteProcessor) Status() hotstuff.VoteCollectorStatus
Status provides a mock function for the type VerifyingVoteProcessor
type VerifyingVoteProcessor_Block_Call ¶ added in v0.46.0
VerifyingVoteProcessor_Block_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Block'
func (*VerifyingVoteProcessor_Block_Call) Return ¶ added in v0.46.0
func (_c *VerifyingVoteProcessor_Block_Call) Return(block *model.Block) *VerifyingVoteProcessor_Block_Call
func (*VerifyingVoteProcessor_Block_Call) Run ¶ added in v0.46.0
func (_c *VerifyingVoteProcessor_Block_Call) Run(run func()) *VerifyingVoteProcessor_Block_Call
func (*VerifyingVoteProcessor_Block_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VerifyingVoteProcessor_Block_Call) RunAndReturn(run func() *model.Block) *VerifyingVoteProcessor_Block_Call
type VerifyingVoteProcessor_Expecter ¶ added in v0.46.0
type VerifyingVoteProcessor_Expecter struct {
// contains filtered or unexported fields
}
func (*VerifyingVoteProcessor_Expecter) Block ¶ added in v0.46.0
func (_e *VerifyingVoteProcessor_Expecter) Block() *VerifyingVoteProcessor_Block_Call
Block is a helper method to define mock.On call
func (*VerifyingVoteProcessor_Expecter) Process ¶ added in v0.46.0
func (_e *VerifyingVoteProcessor_Expecter) Process(vote interface{}) *VerifyingVoteProcessor_Process_Call
Process is a helper method to define mock.On call
- vote *model.Vote
func (*VerifyingVoteProcessor_Expecter) Status ¶ added in v0.46.0
func (_e *VerifyingVoteProcessor_Expecter) Status() *VerifyingVoteProcessor_Status_Call
Status is a helper method to define mock.On call
type VerifyingVoteProcessor_Process_Call ¶ added in v0.46.0
VerifyingVoteProcessor_Process_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Process'
func (*VerifyingVoteProcessor_Process_Call) Return ¶ added in v0.46.0
func (_c *VerifyingVoteProcessor_Process_Call) Return(err error) *VerifyingVoteProcessor_Process_Call
func (*VerifyingVoteProcessor_Process_Call) Run ¶ added in v0.46.0
func (_c *VerifyingVoteProcessor_Process_Call) Run(run func(vote *model.Vote)) *VerifyingVoteProcessor_Process_Call
func (*VerifyingVoteProcessor_Process_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VerifyingVoteProcessor_Process_Call) RunAndReturn(run func(vote *model.Vote) error) *VerifyingVoteProcessor_Process_Call
type VerifyingVoteProcessor_Status_Call ¶ added in v0.46.0
VerifyingVoteProcessor_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*VerifyingVoteProcessor_Status_Call) Return ¶ added in v0.46.0
func (_c *VerifyingVoteProcessor_Status_Call) Return(voteCollectorStatus hotstuff.VoteCollectorStatus) *VerifyingVoteProcessor_Status_Call
func (*VerifyingVoteProcessor_Status_Call) Run ¶ added in v0.46.0
func (_c *VerifyingVoteProcessor_Status_Call) Run(run func()) *VerifyingVoteProcessor_Status_Call
func (*VerifyingVoteProcessor_Status_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VerifyingVoteProcessor_Status_Call) RunAndReturn(run func() hotstuff.VoteCollectorStatus) *VerifyingVoteProcessor_Status_Call
type VoteAggregationConsumer ¶ added in v0.31.0
VoteAggregationConsumer is an autogenerated mock type for the VoteAggregationConsumer type
func NewVoteAggregationConsumer ¶ added in v0.31.0
func NewVoteAggregationConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *VoteAggregationConsumer
NewVoteAggregationConsumer creates a new instance of VoteAggregationConsumer. 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 (*VoteAggregationConsumer) EXPECT ¶ added in v0.46.0
func (_m *VoteAggregationConsumer) EXPECT() *VoteAggregationConsumer_Expecter
func (*VoteAggregationConsumer) OnDoubleVotingDetected ¶ added in v0.31.0
func (_mock *VoteAggregationConsumer) OnDoubleVotingDetected(vote *model.Vote, vote1 *model.Vote)
OnDoubleVotingDetected provides a mock function for the type VoteAggregationConsumer
func (*VoteAggregationConsumer) OnInvalidVoteDetected ¶ added in v0.31.0
func (_mock *VoteAggregationConsumer) OnInvalidVoteDetected(err model.InvalidVoteError)
OnInvalidVoteDetected provides a mock function for the type VoteAggregationConsumer
func (*VoteAggregationConsumer) OnQcConstructedFromVotes ¶ added in v0.31.0
func (_mock *VoteAggregationConsumer) OnQcConstructedFromVotes(quorumCertificate *flow.QuorumCertificate)
OnQcConstructedFromVotes provides a mock function for the type VoteAggregationConsumer
func (*VoteAggregationConsumer) OnVoteForInvalidBlockDetected ¶ added in v0.31.0
func (_mock *VoteAggregationConsumer) OnVoteForInvalidBlockDetected(vote *model.Vote, invalidProposal *model.SignedProposal)
OnVoteForInvalidBlockDetected provides a mock function for the type VoteAggregationConsumer
func (*VoteAggregationConsumer) OnVoteProcessed ¶ added in v0.31.0
func (_mock *VoteAggregationConsumer) OnVoteProcessed(vote *model.Vote)
OnVoteProcessed provides a mock function for the type VoteAggregationConsumer
type VoteAggregationConsumer_Expecter ¶ added in v0.46.0
type VoteAggregationConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteAggregationConsumer_Expecter) OnDoubleVotingDetected ¶ added in v0.46.0
func (_e *VoteAggregationConsumer_Expecter) OnDoubleVotingDetected(vote interface{}, vote1 interface{}) *VoteAggregationConsumer_OnDoubleVotingDetected_Call
OnDoubleVotingDetected is a helper method to define mock.On call
- vote *model.Vote
- vote1 *model.Vote
func (*VoteAggregationConsumer_Expecter) OnInvalidVoteDetected ¶ added in v0.46.0
func (_e *VoteAggregationConsumer_Expecter) OnInvalidVoteDetected(err interface{}) *VoteAggregationConsumer_OnInvalidVoteDetected_Call
OnInvalidVoteDetected is a helper method to define mock.On call
- err model.InvalidVoteError
func (*VoteAggregationConsumer_Expecter) OnQcConstructedFromVotes ¶ added in v0.46.0
func (_e *VoteAggregationConsumer_Expecter) OnQcConstructedFromVotes(quorumCertificate interface{}) *VoteAggregationConsumer_OnQcConstructedFromVotes_Call
OnQcConstructedFromVotes is a helper method to define mock.On call
- quorumCertificate *flow.QuorumCertificate
func (*VoteAggregationConsumer_Expecter) OnVoteForInvalidBlockDetected ¶ added in v0.46.0
func (_e *VoteAggregationConsumer_Expecter) OnVoteForInvalidBlockDetected(vote interface{}, invalidProposal interface{}) *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call
OnVoteForInvalidBlockDetected is a helper method to define mock.On call
- vote *model.Vote
- invalidProposal *model.SignedProposal
func (*VoteAggregationConsumer_Expecter) OnVoteProcessed ¶ added in v0.46.0
func (_e *VoteAggregationConsumer_Expecter) OnVoteProcessed(vote interface{}) *VoteAggregationConsumer_OnVoteProcessed_Call
OnVoteProcessed is a helper method to define mock.On call
- vote *model.Vote
type VoteAggregationConsumer_OnDoubleVotingDetected_Call ¶ added in v0.46.0
VoteAggregationConsumer_OnDoubleVotingDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDoubleVotingDetected'
func (*VoteAggregationConsumer_OnDoubleVotingDetected_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnDoubleVotingDetected_Call) Run(run func(vote *model.Vote, vote1 *model.Vote)) *VoteAggregationConsumer_OnDoubleVotingDetected_Call
func (*VoteAggregationConsumer_OnDoubleVotingDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnDoubleVotingDetected_Call) RunAndReturn(run func(vote *model.Vote, vote1 *model.Vote)) *VoteAggregationConsumer_OnDoubleVotingDetected_Call
type VoteAggregationConsumer_OnInvalidVoteDetected_Call ¶ added in v0.46.0
VoteAggregationConsumer_OnInvalidVoteDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnInvalidVoteDetected'
func (*VoteAggregationConsumer_OnInvalidVoteDetected_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnInvalidVoteDetected_Call) Run(run func(err model.InvalidVoteError)) *VoteAggregationConsumer_OnInvalidVoteDetected_Call
func (*VoteAggregationConsumer_OnInvalidVoteDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnInvalidVoteDetected_Call) RunAndReturn(run func(err model.InvalidVoteError)) *VoteAggregationConsumer_OnInvalidVoteDetected_Call
type VoteAggregationConsumer_OnQcConstructedFromVotes_Call ¶ added in v0.46.0
VoteAggregationConsumer_OnQcConstructedFromVotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnQcConstructedFromVotes'
func (*VoteAggregationConsumer_OnQcConstructedFromVotes_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnQcConstructedFromVotes_Call) Run(run func(quorumCertificate *flow.QuorumCertificate)) *VoteAggregationConsumer_OnQcConstructedFromVotes_Call
func (*VoteAggregationConsumer_OnQcConstructedFromVotes_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnQcConstructedFromVotes_Call) RunAndReturn(run func(quorumCertificate *flow.QuorumCertificate)) *VoteAggregationConsumer_OnQcConstructedFromVotes_Call
type VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call ¶ added in v0.46.0
VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnVoteForInvalidBlockDetected'
func (*VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) Run(run func(vote *model.Vote, invalidProposal *model.SignedProposal)) *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call
func (*VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) RunAndReturn(run func(vote *model.Vote, invalidProposal *model.SignedProposal)) *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call
type VoteAggregationConsumer_OnVoteProcessed_Call ¶ added in v0.46.0
VoteAggregationConsumer_OnVoteProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnVoteProcessed'
func (*VoteAggregationConsumer_OnVoteProcessed_Call) Return ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnVoteProcessed_Call) Return() *VoteAggregationConsumer_OnVoteProcessed_Call
func (*VoteAggregationConsumer_OnVoteProcessed_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnVoteProcessed_Call) Run(run func(vote *model.Vote)) *VoteAggregationConsumer_OnVoteProcessed_Call
func (*VoteAggregationConsumer_OnVoteProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregationConsumer_OnVoteProcessed_Call) RunAndReturn(run func(vote *model.Vote)) *VoteAggregationConsumer_OnVoteProcessed_Call
type VoteAggregationViolationConsumer ¶ added in v0.31.0
VoteAggregationViolationConsumer is an autogenerated mock type for the VoteAggregationViolationConsumer type
func NewVoteAggregationViolationConsumer ¶ added in v0.31.0
func NewVoteAggregationViolationConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *VoteAggregationViolationConsumer
NewVoteAggregationViolationConsumer creates a new instance of VoteAggregationViolationConsumer. 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 (*VoteAggregationViolationConsumer) EXPECT ¶ added in v0.46.0
func (_m *VoteAggregationViolationConsumer) EXPECT() *VoteAggregationViolationConsumer_Expecter
func (*VoteAggregationViolationConsumer) OnDoubleVotingDetected ¶ added in v0.31.0
func (_mock *VoteAggregationViolationConsumer) OnDoubleVotingDetected(vote *model.Vote, vote1 *model.Vote)
OnDoubleVotingDetected provides a mock function for the type VoteAggregationViolationConsumer
func (*VoteAggregationViolationConsumer) OnInvalidVoteDetected ¶ added in v0.31.0
func (_mock *VoteAggregationViolationConsumer) OnInvalidVoteDetected(err model.InvalidVoteError)
OnInvalidVoteDetected provides a mock function for the type VoteAggregationViolationConsumer
func (*VoteAggregationViolationConsumer) OnVoteForInvalidBlockDetected ¶ added in v0.31.0
func (_mock *VoteAggregationViolationConsumer) OnVoteForInvalidBlockDetected(vote *model.Vote, invalidProposal *model.SignedProposal)
OnVoteForInvalidBlockDetected provides a mock function for the type VoteAggregationViolationConsumer
type VoteAggregationViolationConsumer_Expecter ¶ added in v0.46.0
type VoteAggregationViolationConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteAggregationViolationConsumer_Expecter) OnDoubleVotingDetected ¶ added in v0.46.0
func (_e *VoteAggregationViolationConsumer_Expecter) OnDoubleVotingDetected(vote interface{}, vote1 interface{}) *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call
OnDoubleVotingDetected is a helper method to define mock.On call
- vote *model.Vote
- vote1 *model.Vote
func (*VoteAggregationViolationConsumer_Expecter) OnInvalidVoteDetected ¶ added in v0.46.0
func (_e *VoteAggregationViolationConsumer_Expecter) OnInvalidVoteDetected(err interface{}) *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call
OnInvalidVoteDetected is a helper method to define mock.On call
- err model.InvalidVoteError
func (*VoteAggregationViolationConsumer_Expecter) OnVoteForInvalidBlockDetected ¶ added in v0.46.0
func (_e *VoteAggregationViolationConsumer_Expecter) OnVoteForInvalidBlockDetected(vote interface{}, invalidProposal interface{}) *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call
OnVoteForInvalidBlockDetected is a helper method to define mock.On call
- vote *model.Vote
- invalidProposal *model.SignedProposal
type VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call ¶ added in v0.46.0
VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDoubleVotingDetected'
func (*VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) Run(run func(vote *model.Vote, vote1 *model.Vote)) *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call
func (*VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) RunAndReturn(run func(vote *model.Vote, vote1 *model.Vote)) *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call
type VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call ¶ added in v0.46.0
VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnInvalidVoteDetected'
func (*VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call) RunAndReturn(run func(err model.InvalidVoteError)) *VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call
type VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call ¶ added in v0.46.0
VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnVoteForInvalidBlockDetected'
func (*VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) Return ¶ added in v0.46.0
func (*VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) Run(run func(vote *model.Vote, invalidProposal *model.SignedProposal)) *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call
func (*VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) RunAndReturn(run func(vote *model.Vote, invalidProposal *model.SignedProposal)) *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call
type VoteAggregator ¶
VoteAggregator is an autogenerated mock type for the VoteAggregator type
func NewVoteAggregator ¶ added in v0.26.1
func NewVoteAggregator(t interface {
mock.TestingT
Cleanup(func())
}) *VoteAggregator
NewVoteAggregator creates a new instance of VoteAggregator. 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 (*VoteAggregator) AddBlock ¶ added in v0.23.9
func (_mock *VoteAggregator) AddBlock(block *model.SignedProposal)
AddBlock provides a mock function for the type VoteAggregator
func (*VoteAggregator) AddVote ¶ added in v0.23.9
func (_mock *VoteAggregator) AddVote(vote *model.Vote)
AddVote provides a mock function for the type VoteAggregator
func (*VoteAggregator) Done ¶ added in v0.23.9
func (_mock *VoteAggregator) Done() <-chan struct{}
Done provides a mock function for the type VoteAggregator
func (*VoteAggregator) EXPECT ¶ added in v0.46.0
func (_m *VoteAggregator) EXPECT() *VoteAggregator_Expecter
func (*VoteAggregator) InvalidBlock ¶ added in v0.23.9
func (_mock *VoteAggregator) InvalidBlock(block *model.SignedProposal) error
InvalidBlock provides a mock function for the type VoteAggregator
func (*VoteAggregator) PruneUpToView ¶ added in v0.23.9
func (_mock *VoteAggregator) PruneUpToView(view uint64)
PruneUpToView provides a mock function for the type VoteAggregator
func (*VoteAggregator) Ready ¶ added in v0.23.9
func (_mock *VoteAggregator) Ready() <-chan struct{}
Ready provides a mock function for the type VoteAggregator
func (*VoteAggregator) Start ¶ added in v0.23.9
func (_mock *VoteAggregator) Start(signalerContext irrecoverable.SignalerContext)
Start provides a mock function for the type VoteAggregator
type VoteAggregator_AddBlock_Call ¶ added in v0.46.0
VoteAggregator_AddBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddBlock'
func (*VoteAggregator_AddBlock_Call) Return ¶ added in v0.46.0
func (_c *VoteAggregator_AddBlock_Call) Return() *VoteAggregator_AddBlock_Call
func (*VoteAggregator_AddBlock_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregator_AddBlock_Call) Run(run func(block *model.SignedProposal)) *VoteAggregator_AddBlock_Call
func (*VoteAggregator_AddBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregator_AddBlock_Call) RunAndReturn(run func(block *model.SignedProposal)) *VoteAggregator_AddBlock_Call
type VoteAggregator_AddVote_Call ¶ added in v0.46.0
VoteAggregator_AddVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddVote'
func (*VoteAggregator_AddVote_Call) Return ¶ added in v0.46.0
func (_c *VoteAggregator_AddVote_Call) Return() *VoteAggregator_AddVote_Call
func (*VoteAggregator_AddVote_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregator_AddVote_Call) Run(run func(vote *model.Vote)) *VoteAggregator_AddVote_Call
func (*VoteAggregator_AddVote_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregator_AddVote_Call) RunAndReturn(run func(vote *model.Vote)) *VoteAggregator_AddVote_Call
type VoteAggregator_Done_Call ¶ added in v0.46.0
VoteAggregator_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*VoteAggregator_Done_Call) Return ¶ added in v0.46.0
func (_c *VoteAggregator_Done_Call) Return(valCh <-chan struct{}) *VoteAggregator_Done_Call
func (*VoteAggregator_Done_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregator_Done_Call) Run(run func()) *VoteAggregator_Done_Call
func (*VoteAggregator_Done_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregator_Done_Call) RunAndReturn(run func() <-chan struct{}) *VoteAggregator_Done_Call
type VoteAggregator_Expecter ¶ added in v0.46.0
type VoteAggregator_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteAggregator_Expecter) AddBlock ¶ added in v0.46.0
func (_e *VoteAggregator_Expecter) AddBlock(block interface{}) *VoteAggregator_AddBlock_Call
AddBlock is a helper method to define mock.On call
- block *model.SignedProposal
func (*VoteAggregator_Expecter) AddVote ¶ added in v0.46.0
func (_e *VoteAggregator_Expecter) AddVote(vote interface{}) *VoteAggregator_AddVote_Call
AddVote is a helper method to define mock.On call
- vote *model.Vote
func (*VoteAggregator_Expecter) Done ¶ added in v0.46.0
func (_e *VoteAggregator_Expecter) Done() *VoteAggregator_Done_Call
Done is a helper method to define mock.On call
func (*VoteAggregator_Expecter) InvalidBlock ¶ added in v0.46.0
func (_e *VoteAggregator_Expecter) InvalidBlock(block interface{}) *VoteAggregator_InvalidBlock_Call
InvalidBlock is a helper method to define mock.On call
- block *model.SignedProposal
func (*VoteAggregator_Expecter) PruneUpToView ¶ added in v0.46.0
func (_e *VoteAggregator_Expecter) PruneUpToView(view interface{}) *VoteAggregator_PruneUpToView_Call
PruneUpToView is a helper method to define mock.On call
- view uint64
func (*VoteAggregator_Expecter) Ready ¶ added in v0.46.0
func (_e *VoteAggregator_Expecter) Ready() *VoteAggregator_Ready_Call
Ready is a helper method to define mock.On call
func (*VoteAggregator_Expecter) Start ¶ added in v0.46.0
func (_e *VoteAggregator_Expecter) Start(signalerContext interface{}) *VoteAggregator_Start_Call
Start is a helper method to define mock.On call
- signalerContext irrecoverable.SignalerContext
type VoteAggregator_InvalidBlock_Call ¶ added in v0.46.0
VoteAggregator_InvalidBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InvalidBlock'
func (*VoteAggregator_InvalidBlock_Call) Return ¶ added in v0.46.0
func (_c *VoteAggregator_InvalidBlock_Call) Return(err error) *VoteAggregator_InvalidBlock_Call
func (*VoteAggregator_InvalidBlock_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregator_InvalidBlock_Call) Run(run func(block *model.SignedProposal)) *VoteAggregator_InvalidBlock_Call
func (*VoteAggregator_InvalidBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregator_InvalidBlock_Call) RunAndReturn(run func(block *model.SignedProposal) error) *VoteAggregator_InvalidBlock_Call
type VoteAggregator_PruneUpToView_Call ¶ added in v0.46.0
VoteAggregator_PruneUpToView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PruneUpToView'
func (*VoteAggregator_PruneUpToView_Call) Return ¶ added in v0.46.0
func (_c *VoteAggregator_PruneUpToView_Call) Return() *VoteAggregator_PruneUpToView_Call
func (*VoteAggregator_PruneUpToView_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregator_PruneUpToView_Call) Run(run func(view uint64)) *VoteAggregator_PruneUpToView_Call
func (*VoteAggregator_PruneUpToView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregator_PruneUpToView_Call) RunAndReturn(run func(view uint64)) *VoteAggregator_PruneUpToView_Call
type VoteAggregator_Ready_Call ¶ added in v0.46.0
VoteAggregator_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*VoteAggregator_Ready_Call) Return ¶ added in v0.46.0
func (_c *VoteAggregator_Ready_Call) Return(valCh <-chan struct{}) *VoteAggregator_Ready_Call
func (*VoteAggregator_Ready_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregator_Ready_Call) Run(run func()) *VoteAggregator_Ready_Call
func (*VoteAggregator_Ready_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregator_Ready_Call) RunAndReturn(run func() <-chan struct{}) *VoteAggregator_Ready_Call
type VoteAggregator_Start_Call ¶ added in v0.46.0
VoteAggregator_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*VoteAggregator_Start_Call) Return ¶ added in v0.46.0
func (_c *VoteAggregator_Start_Call) Return() *VoteAggregator_Start_Call
func (*VoteAggregator_Start_Call) Run ¶ added in v0.46.0
func (_c *VoteAggregator_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *VoteAggregator_Start_Call
func (*VoteAggregator_Start_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteAggregator_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *VoteAggregator_Start_Call
type VoteCollector ¶ added in v0.23.9
VoteCollector is an autogenerated mock type for the VoteCollector type
func NewVoteCollector ¶ added in v0.26.1
func NewVoteCollector(t interface {
mock.TestingT
Cleanup(func())
}) *VoteCollector
NewVoteCollector creates a new instance of VoteCollector. 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 (*VoteCollector) AddVote ¶ added in v0.23.9
func (_mock *VoteCollector) AddVote(vote *model.Vote) error
AddVote provides a mock function for the type VoteCollector
func (*VoteCollector) EXPECT ¶ added in v0.46.0
func (_m *VoteCollector) EXPECT() *VoteCollector_Expecter
func (*VoteCollector) ProcessBlock ¶ added in v0.23.9
func (_mock *VoteCollector) ProcessBlock(block *model.SignedProposal) error
ProcessBlock provides a mock function for the type VoteCollector
func (*VoteCollector) RegisterVoteConsumer ¶ added in v0.23.9
func (_mock *VoteCollector) RegisterVoteConsumer(consumer hotstuff.VoteConsumer)
RegisterVoteConsumer provides a mock function for the type VoteCollector
func (*VoteCollector) Status ¶ added in v0.23.9
func (_mock *VoteCollector) Status() hotstuff.VoteCollectorStatus
Status provides a mock function for the type VoteCollector
func (*VoteCollector) View ¶ added in v0.23.9
func (_mock *VoteCollector) View() uint64
View provides a mock function for the type VoteCollector
type VoteCollectorConsumer ¶ added in v0.31.0
VoteCollectorConsumer is an autogenerated mock type for the VoteCollectorConsumer type
func NewVoteCollectorConsumer ¶ added in v0.31.0
func NewVoteCollectorConsumer(t interface {
mock.TestingT
Cleanup(func())
}) *VoteCollectorConsumer
NewVoteCollectorConsumer creates a new instance of VoteCollectorConsumer. 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 (*VoteCollectorConsumer) EXPECT ¶ added in v0.46.0
func (_m *VoteCollectorConsumer) EXPECT() *VoteCollectorConsumer_Expecter
func (*VoteCollectorConsumer) OnQcConstructedFromVotes ¶ added in v0.31.0
func (_mock *VoteCollectorConsumer) OnQcConstructedFromVotes(quorumCertificate *flow.QuorumCertificate)
OnQcConstructedFromVotes provides a mock function for the type VoteCollectorConsumer
func (*VoteCollectorConsumer) OnVoteProcessed ¶ added in v0.31.0
func (_mock *VoteCollectorConsumer) OnVoteProcessed(vote *model.Vote)
OnVoteProcessed provides a mock function for the type VoteCollectorConsumer
type VoteCollectorConsumer_Expecter ¶ added in v0.46.0
type VoteCollectorConsumer_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteCollectorConsumer_Expecter) OnQcConstructedFromVotes ¶ added in v0.46.0
func (_e *VoteCollectorConsumer_Expecter) OnQcConstructedFromVotes(quorumCertificate interface{}) *VoteCollectorConsumer_OnQcConstructedFromVotes_Call
OnQcConstructedFromVotes is a helper method to define mock.On call
- quorumCertificate *flow.QuorumCertificate
func (*VoteCollectorConsumer_Expecter) OnVoteProcessed ¶ added in v0.46.0
func (_e *VoteCollectorConsumer_Expecter) OnVoteProcessed(vote interface{}) *VoteCollectorConsumer_OnVoteProcessed_Call
OnVoteProcessed is a helper method to define mock.On call
- vote *model.Vote
type VoteCollectorConsumer_OnQcConstructedFromVotes_Call ¶ added in v0.46.0
VoteCollectorConsumer_OnQcConstructedFromVotes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnQcConstructedFromVotes'
func (*VoteCollectorConsumer_OnQcConstructedFromVotes_Call) Run ¶ added in v0.46.0
func (_c *VoteCollectorConsumer_OnQcConstructedFromVotes_Call) Run(run func(quorumCertificate *flow.QuorumCertificate)) *VoteCollectorConsumer_OnQcConstructedFromVotes_Call
func (*VoteCollectorConsumer_OnQcConstructedFromVotes_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollectorConsumer_OnQcConstructedFromVotes_Call) RunAndReturn(run func(quorumCertificate *flow.QuorumCertificate)) *VoteCollectorConsumer_OnQcConstructedFromVotes_Call
type VoteCollectorConsumer_OnVoteProcessed_Call ¶ added in v0.46.0
VoteCollectorConsumer_OnVoteProcessed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnVoteProcessed'
func (*VoteCollectorConsumer_OnVoteProcessed_Call) Return ¶ added in v0.46.0
func (_c *VoteCollectorConsumer_OnVoteProcessed_Call) Return() *VoteCollectorConsumer_OnVoteProcessed_Call
func (*VoteCollectorConsumer_OnVoteProcessed_Call) Run ¶ added in v0.46.0
func (_c *VoteCollectorConsumer_OnVoteProcessed_Call) Run(run func(vote *model.Vote)) *VoteCollectorConsumer_OnVoteProcessed_Call
func (*VoteCollectorConsumer_OnVoteProcessed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollectorConsumer_OnVoteProcessed_Call) RunAndReturn(run func(vote *model.Vote)) *VoteCollectorConsumer_OnVoteProcessed_Call
type VoteCollector_AddVote_Call ¶ added in v0.46.0
VoteCollector_AddVote_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddVote'
func (*VoteCollector_AddVote_Call) Return ¶ added in v0.46.0
func (_c *VoteCollector_AddVote_Call) Return(err error) *VoteCollector_AddVote_Call
func (*VoteCollector_AddVote_Call) Run ¶ added in v0.46.0
func (_c *VoteCollector_AddVote_Call) Run(run func(vote *model.Vote)) *VoteCollector_AddVote_Call
func (*VoteCollector_AddVote_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollector_AddVote_Call) RunAndReturn(run func(vote *model.Vote) error) *VoteCollector_AddVote_Call
type VoteCollector_Expecter ¶ added in v0.46.0
type VoteCollector_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteCollector_Expecter) AddVote ¶ added in v0.46.0
func (_e *VoteCollector_Expecter) AddVote(vote interface{}) *VoteCollector_AddVote_Call
AddVote is a helper method to define mock.On call
- vote *model.Vote
func (*VoteCollector_Expecter) ProcessBlock ¶ added in v0.46.0
func (_e *VoteCollector_Expecter) ProcessBlock(block interface{}) *VoteCollector_ProcessBlock_Call
ProcessBlock is a helper method to define mock.On call
- block *model.SignedProposal
func (*VoteCollector_Expecter) RegisterVoteConsumer ¶ added in v0.46.0
func (_e *VoteCollector_Expecter) RegisterVoteConsumer(consumer interface{}) *VoteCollector_RegisterVoteConsumer_Call
RegisterVoteConsumer is a helper method to define mock.On call
- consumer hotstuff.VoteConsumer
func (*VoteCollector_Expecter) Status ¶ added in v0.46.0
func (_e *VoteCollector_Expecter) Status() *VoteCollector_Status_Call
Status is a helper method to define mock.On call
func (*VoteCollector_Expecter) View ¶ added in v0.46.0
func (_e *VoteCollector_Expecter) View() *VoteCollector_View_Call
View is a helper method to define mock.On call
type VoteCollector_ProcessBlock_Call ¶ added in v0.46.0
VoteCollector_ProcessBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessBlock'
func (*VoteCollector_ProcessBlock_Call) Return ¶ added in v0.46.0
func (_c *VoteCollector_ProcessBlock_Call) Return(err error) *VoteCollector_ProcessBlock_Call
func (*VoteCollector_ProcessBlock_Call) Run ¶ added in v0.46.0
func (_c *VoteCollector_ProcessBlock_Call) Run(run func(block *model.SignedProposal)) *VoteCollector_ProcessBlock_Call
func (*VoteCollector_ProcessBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollector_ProcessBlock_Call) RunAndReturn(run func(block *model.SignedProposal) error) *VoteCollector_ProcessBlock_Call
type VoteCollector_RegisterVoteConsumer_Call ¶ added in v0.46.0
VoteCollector_RegisterVoteConsumer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterVoteConsumer'
func (*VoteCollector_RegisterVoteConsumer_Call) Return ¶ added in v0.46.0
func (_c *VoteCollector_RegisterVoteConsumer_Call) Return() *VoteCollector_RegisterVoteConsumer_Call
func (*VoteCollector_RegisterVoteConsumer_Call) Run ¶ added in v0.46.0
func (_c *VoteCollector_RegisterVoteConsumer_Call) Run(run func(consumer hotstuff.VoteConsumer)) *VoteCollector_RegisterVoteConsumer_Call
func (*VoteCollector_RegisterVoteConsumer_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollector_RegisterVoteConsumer_Call) RunAndReturn(run func(consumer hotstuff.VoteConsumer)) *VoteCollector_RegisterVoteConsumer_Call
type VoteCollector_Status_Call ¶ added in v0.46.0
VoteCollector_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*VoteCollector_Status_Call) Return ¶ added in v0.46.0
func (_c *VoteCollector_Status_Call) Return(voteCollectorStatus hotstuff.VoteCollectorStatus) *VoteCollector_Status_Call
func (*VoteCollector_Status_Call) Run ¶ added in v0.46.0
func (_c *VoteCollector_Status_Call) Run(run func()) *VoteCollector_Status_Call
func (*VoteCollector_Status_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollector_Status_Call) RunAndReturn(run func() hotstuff.VoteCollectorStatus) *VoteCollector_Status_Call
type VoteCollector_View_Call ¶ added in v0.46.0
VoteCollector_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'
func (*VoteCollector_View_Call) Return ¶ added in v0.46.0
func (_c *VoteCollector_View_Call) Return(v uint64) *VoteCollector_View_Call
func (*VoteCollector_View_Call) Run ¶ added in v0.46.0
func (_c *VoteCollector_View_Call) Run(run func()) *VoteCollector_View_Call
func (*VoteCollector_View_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollector_View_Call) RunAndReturn(run func() uint64) *VoteCollector_View_Call
type VoteCollectors ¶ added in v0.23.9
VoteCollectors is an autogenerated mock type for the VoteCollectors type
func NewVoteCollectors ¶ added in v0.26.1
func NewVoteCollectors(t interface {
mock.TestingT
Cleanup(func())
}) *VoteCollectors
NewVoteCollectors creates a new instance of VoteCollectors. 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 (*VoteCollectors) Done ¶ added in v0.23.9
func (_mock *VoteCollectors) Done() <-chan struct{}
Done provides a mock function for the type VoteCollectors
func (*VoteCollectors) EXPECT ¶ added in v0.46.0
func (_m *VoteCollectors) EXPECT() *VoteCollectors_Expecter
func (*VoteCollectors) GetOrCreateCollector ¶ added in v0.23.9
func (_mock *VoteCollectors) GetOrCreateCollector(view uint64) (hotstuff.VoteCollector, bool, error)
GetOrCreateCollector provides a mock function for the type VoteCollectors
func (*VoteCollectors) PruneUpToView ¶ added in v0.23.9
func (_mock *VoteCollectors) PruneUpToView(lowestRetainedView uint64)
PruneUpToView provides a mock function for the type VoteCollectors
func (*VoteCollectors) Ready ¶ added in v0.23.9
func (_mock *VoteCollectors) Ready() <-chan struct{}
Ready provides a mock function for the type VoteCollectors
func (*VoteCollectors) Start ¶ added in v0.23.9
func (_mock *VoteCollectors) Start(signalerContext irrecoverable.SignalerContext)
Start provides a mock function for the type VoteCollectors
type VoteCollectors_Done_Call ¶ added in v0.46.0
VoteCollectors_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*VoteCollectors_Done_Call) Return ¶ added in v0.46.0
func (_c *VoteCollectors_Done_Call) Return(valCh <-chan struct{}) *VoteCollectors_Done_Call
func (*VoteCollectors_Done_Call) Run ¶ added in v0.46.0
func (_c *VoteCollectors_Done_Call) Run(run func()) *VoteCollectors_Done_Call
func (*VoteCollectors_Done_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollectors_Done_Call) RunAndReturn(run func() <-chan struct{}) *VoteCollectors_Done_Call
type VoteCollectors_Expecter ¶ added in v0.46.0
type VoteCollectors_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteCollectors_Expecter) Done ¶ added in v0.46.0
func (_e *VoteCollectors_Expecter) Done() *VoteCollectors_Done_Call
Done is a helper method to define mock.On call
func (*VoteCollectors_Expecter) GetOrCreateCollector ¶ added in v0.46.0
func (_e *VoteCollectors_Expecter) GetOrCreateCollector(view interface{}) *VoteCollectors_GetOrCreateCollector_Call
GetOrCreateCollector is a helper method to define mock.On call
- view uint64
func (*VoteCollectors_Expecter) PruneUpToView ¶ added in v0.46.0
func (_e *VoteCollectors_Expecter) PruneUpToView(lowestRetainedView interface{}) *VoteCollectors_PruneUpToView_Call
PruneUpToView is a helper method to define mock.On call
- lowestRetainedView uint64
func (*VoteCollectors_Expecter) Ready ¶ added in v0.46.0
func (_e *VoteCollectors_Expecter) Ready() *VoteCollectors_Ready_Call
Ready is a helper method to define mock.On call
func (*VoteCollectors_Expecter) Start ¶ added in v0.46.0
func (_e *VoteCollectors_Expecter) Start(signalerContext interface{}) *VoteCollectors_Start_Call
Start is a helper method to define mock.On call
- signalerContext irrecoverable.SignalerContext
type VoteCollectors_GetOrCreateCollector_Call ¶ added in v0.46.0
VoteCollectors_GetOrCreateCollector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreateCollector'
func (*VoteCollectors_GetOrCreateCollector_Call) Return ¶ added in v0.46.0
func (_c *VoteCollectors_GetOrCreateCollector_Call) Return(collector hotstuff.VoteCollector, created bool, err error) *VoteCollectors_GetOrCreateCollector_Call
func (*VoteCollectors_GetOrCreateCollector_Call) Run ¶ added in v0.46.0
func (_c *VoteCollectors_GetOrCreateCollector_Call) Run(run func(view uint64)) *VoteCollectors_GetOrCreateCollector_Call
func (*VoteCollectors_GetOrCreateCollector_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollectors_GetOrCreateCollector_Call) RunAndReturn(run func(view uint64) (hotstuff.VoteCollector, bool, error)) *VoteCollectors_GetOrCreateCollector_Call
type VoteCollectors_PruneUpToView_Call ¶ added in v0.46.0
VoteCollectors_PruneUpToView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PruneUpToView'
func (*VoteCollectors_PruneUpToView_Call) Return ¶ added in v0.46.0
func (_c *VoteCollectors_PruneUpToView_Call) Return() *VoteCollectors_PruneUpToView_Call
func (*VoteCollectors_PruneUpToView_Call) Run ¶ added in v0.46.0
func (_c *VoteCollectors_PruneUpToView_Call) Run(run func(lowestRetainedView uint64)) *VoteCollectors_PruneUpToView_Call
func (*VoteCollectors_PruneUpToView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollectors_PruneUpToView_Call) RunAndReturn(run func(lowestRetainedView uint64)) *VoteCollectors_PruneUpToView_Call
type VoteCollectors_Ready_Call ¶ added in v0.46.0
VoteCollectors_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*VoteCollectors_Ready_Call) Return ¶ added in v0.46.0
func (_c *VoteCollectors_Ready_Call) Return(valCh <-chan struct{}) *VoteCollectors_Ready_Call
func (*VoteCollectors_Ready_Call) Run ¶ added in v0.46.0
func (_c *VoteCollectors_Ready_Call) Run(run func()) *VoteCollectors_Ready_Call
func (*VoteCollectors_Ready_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollectors_Ready_Call) RunAndReturn(run func() <-chan struct{}) *VoteCollectors_Ready_Call
type VoteCollectors_Start_Call ¶ added in v0.46.0
VoteCollectors_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*VoteCollectors_Start_Call) Return ¶ added in v0.46.0
func (_c *VoteCollectors_Start_Call) Return() *VoteCollectors_Start_Call
func (*VoteCollectors_Start_Call) Run ¶ added in v0.46.0
func (_c *VoteCollectors_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *VoteCollectors_Start_Call
func (*VoteCollectors_Start_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteCollectors_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *VoteCollectors_Start_Call
type VoteProcessor ¶ added in v0.23.9
VoteProcessor is an autogenerated mock type for the VoteProcessor type
func NewVoteProcessor ¶ added in v0.26.1
func NewVoteProcessor(t interface {
mock.TestingT
Cleanup(func())
}) *VoteProcessor
NewVoteProcessor creates a new instance of VoteProcessor. 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 (*VoteProcessor) EXPECT ¶ added in v0.46.0
func (_m *VoteProcessor) EXPECT() *VoteProcessor_Expecter
func (*VoteProcessor) Process ¶ added in v0.23.9
func (_mock *VoteProcessor) Process(vote *model.Vote) error
Process provides a mock function for the type VoteProcessor
func (*VoteProcessor) Status ¶ added in v0.23.9
func (_mock *VoteProcessor) Status() hotstuff.VoteCollectorStatus
Status provides a mock function for the type VoteProcessor
type VoteProcessorFactory ¶ added in v0.23.9
VoteProcessorFactory is an autogenerated mock type for the VoteProcessorFactory type
func NewVoteProcessorFactory ¶ added in v0.26.1
func NewVoteProcessorFactory(t interface {
mock.TestingT
Cleanup(func())
}) *VoteProcessorFactory
NewVoteProcessorFactory creates a new instance of VoteProcessorFactory. 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 (*VoteProcessorFactory) Create ¶ added in v0.23.9
func (_mock *VoteProcessorFactory) Create(log zerolog.Logger, proposal *model.SignedProposal) (hotstuff.VerifyingVoteProcessor, error)
Create provides a mock function for the type VoteProcessorFactory
func (*VoteProcessorFactory) EXPECT ¶ added in v0.46.0
func (_m *VoteProcessorFactory) EXPECT() *VoteProcessorFactory_Expecter
type VoteProcessorFactory_Create_Call ¶ added in v0.46.0
VoteProcessorFactory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*VoteProcessorFactory_Create_Call) Return ¶ added in v0.46.0
func (_c *VoteProcessorFactory_Create_Call) Return(verifyingVoteProcessor hotstuff.VerifyingVoteProcessor, err error) *VoteProcessorFactory_Create_Call
func (*VoteProcessorFactory_Create_Call) Run ¶ added in v0.46.0
func (_c *VoteProcessorFactory_Create_Call) Run(run func(log zerolog.Logger, proposal *model.SignedProposal)) *VoteProcessorFactory_Create_Call
func (*VoteProcessorFactory_Create_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteProcessorFactory_Create_Call) RunAndReturn(run func(log zerolog.Logger, proposal *model.SignedProposal) (hotstuff.VerifyingVoteProcessor, error)) *VoteProcessorFactory_Create_Call
type VoteProcessorFactory_Expecter ¶ added in v0.46.0
type VoteProcessorFactory_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteProcessorFactory_Expecter) Create ¶ added in v0.46.0
func (_e *VoteProcessorFactory_Expecter) Create(log interface{}, proposal interface{}) *VoteProcessorFactory_Create_Call
Create is a helper method to define mock.On call
- log zerolog.Logger
- proposal *model.SignedProposal
type VoteProcessor_Expecter ¶ added in v0.46.0
type VoteProcessor_Expecter struct {
// contains filtered or unexported fields
}
func (*VoteProcessor_Expecter) Process ¶ added in v0.46.0
func (_e *VoteProcessor_Expecter) Process(vote interface{}) *VoteProcessor_Process_Call
Process is a helper method to define mock.On call
- vote *model.Vote
func (*VoteProcessor_Expecter) Status ¶ added in v0.46.0
func (_e *VoteProcessor_Expecter) Status() *VoteProcessor_Status_Call
Status is a helper method to define mock.On call
type VoteProcessor_Process_Call ¶ added in v0.46.0
VoteProcessor_Process_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Process'
func (*VoteProcessor_Process_Call) Return ¶ added in v0.46.0
func (_c *VoteProcessor_Process_Call) Return(err error) *VoteProcessor_Process_Call
func (*VoteProcessor_Process_Call) Run ¶ added in v0.46.0
func (_c *VoteProcessor_Process_Call) Run(run func(vote *model.Vote)) *VoteProcessor_Process_Call
func (*VoteProcessor_Process_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteProcessor_Process_Call) RunAndReturn(run func(vote *model.Vote) error) *VoteProcessor_Process_Call
type VoteProcessor_Status_Call ¶ added in v0.46.0
VoteProcessor_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*VoteProcessor_Status_Call) Return ¶ added in v0.46.0
func (_c *VoteProcessor_Status_Call) Return(voteCollectorStatus hotstuff.VoteCollectorStatus) *VoteProcessor_Status_Call
func (*VoteProcessor_Status_Call) Run ¶ added in v0.46.0
func (_c *VoteProcessor_Status_Call) Run(run func()) *VoteProcessor_Status_Call
func (*VoteProcessor_Status_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VoteProcessor_Status_Call) RunAndReturn(run func() hotstuff.VoteCollectorStatus) *VoteProcessor_Status_Call
type WeightedSignatureAggregator ¶ added in v0.23.9
WeightedSignatureAggregator is an autogenerated mock type for the WeightedSignatureAggregator type
func NewWeightedSignatureAggregator ¶ added in v0.26.1
func NewWeightedSignatureAggregator(t interface {
mock.TestingT
Cleanup(func())
}) *WeightedSignatureAggregator
NewWeightedSignatureAggregator creates a new instance of WeightedSignatureAggregator. 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 (*WeightedSignatureAggregator) Aggregate ¶ added in v0.23.9
func (_mock *WeightedSignatureAggregator) Aggregate() (flow.IdentifierList, []byte, error)
Aggregate provides a mock function for the type WeightedSignatureAggregator
func (*WeightedSignatureAggregator) EXPECT ¶ added in v0.46.0
func (_m *WeightedSignatureAggregator) EXPECT() *WeightedSignatureAggregator_Expecter
func (*WeightedSignatureAggregator) TotalWeight ¶ added in v0.23.9
func (_mock *WeightedSignatureAggregator) TotalWeight() uint64
TotalWeight provides a mock function for the type WeightedSignatureAggregator
func (*WeightedSignatureAggregator) TrustedAdd ¶ added in v0.23.9
func (_mock *WeightedSignatureAggregator) TrustedAdd(signerID flow.Identifier, sig crypto.Signature) (uint64, error)
TrustedAdd provides a mock function for the type WeightedSignatureAggregator
func (*WeightedSignatureAggregator) Verify ¶ added in v0.23.9
func (_mock *WeightedSignatureAggregator) Verify(signerID flow.Identifier, sig crypto.Signature) error
Verify provides a mock function for the type WeightedSignatureAggregator
type WeightedSignatureAggregator_Aggregate_Call ¶ added in v0.46.0
WeightedSignatureAggregator_Aggregate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Aggregate'
func (*WeightedSignatureAggregator_Aggregate_Call) Return ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_Aggregate_Call) Return(identifierList flow.IdentifierList, bytes []byte, err error) *WeightedSignatureAggregator_Aggregate_Call
func (*WeightedSignatureAggregator_Aggregate_Call) Run ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_Aggregate_Call) Run(run func()) *WeightedSignatureAggregator_Aggregate_Call
func (*WeightedSignatureAggregator_Aggregate_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_Aggregate_Call) RunAndReturn(run func() (flow.IdentifierList, []byte, error)) *WeightedSignatureAggregator_Aggregate_Call
type WeightedSignatureAggregator_Expecter ¶ added in v0.46.0
type WeightedSignatureAggregator_Expecter struct {
// contains filtered or unexported fields
}
func (*WeightedSignatureAggregator_Expecter) Aggregate ¶ added in v0.46.0
func (_e *WeightedSignatureAggregator_Expecter) Aggregate() *WeightedSignatureAggregator_Aggregate_Call
Aggregate is a helper method to define mock.On call
func (*WeightedSignatureAggregator_Expecter) TotalWeight ¶ added in v0.46.0
func (_e *WeightedSignatureAggregator_Expecter) TotalWeight() *WeightedSignatureAggregator_TotalWeight_Call
TotalWeight is a helper method to define mock.On call
func (*WeightedSignatureAggregator_Expecter) TrustedAdd ¶ added in v0.46.0
func (_e *WeightedSignatureAggregator_Expecter) TrustedAdd(signerID interface{}, sig interface{}) *WeightedSignatureAggregator_TrustedAdd_Call
TrustedAdd is a helper method to define mock.On call
- signerID flow.Identifier
- sig crypto.Signature
func (*WeightedSignatureAggregator_Expecter) Verify ¶ added in v0.46.0
func (_e *WeightedSignatureAggregator_Expecter) Verify(signerID interface{}, sig interface{}) *WeightedSignatureAggregator_Verify_Call
Verify is a helper method to define mock.On call
- signerID flow.Identifier
- sig crypto.Signature
type WeightedSignatureAggregator_TotalWeight_Call ¶ added in v0.46.0
WeightedSignatureAggregator_TotalWeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TotalWeight'
func (*WeightedSignatureAggregator_TotalWeight_Call) Return ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_TotalWeight_Call) Return(v uint64) *WeightedSignatureAggregator_TotalWeight_Call
func (*WeightedSignatureAggregator_TotalWeight_Call) Run ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_TotalWeight_Call) Run(run func()) *WeightedSignatureAggregator_TotalWeight_Call
func (*WeightedSignatureAggregator_TotalWeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_TotalWeight_Call) RunAndReturn(run func() uint64) *WeightedSignatureAggregator_TotalWeight_Call
type WeightedSignatureAggregator_TrustedAdd_Call ¶ added in v0.46.0
WeightedSignatureAggregator_TrustedAdd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TrustedAdd'
func (*WeightedSignatureAggregator_TrustedAdd_Call) Return ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_TrustedAdd_Call) Return(totalWeight uint64, exception error) *WeightedSignatureAggregator_TrustedAdd_Call
func (*WeightedSignatureAggregator_TrustedAdd_Call) Run ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_TrustedAdd_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature)) *WeightedSignatureAggregator_TrustedAdd_Call
func (*WeightedSignatureAggregator_TrustedAdd_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_TrustedAdd_Call) RunAndReturn(run func(signerID flow.Identifier, sig crypto.Signature) (uint64, error)) *WeightedSignatureAggregator_TrustedAdd_Call
type WeightedSignatureAggregator_Verify_Call ¶ added in v0.46.0
WeightedSignatureAggregator_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'
func (*WeightedSignatureAggregator_Verify_Call) Return ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_Verify_Call) Return(err error) *WeightedSignatureAggregator_Verify_Call
func (*WeightedSignatureAggregator_Verify_Call) Run ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_Verify_Call) Run(run func(signerID flow.Identifier, sig crypto.Signature)) *WeightedSignatureAggregator_Verify_Call
func (*WeightedSignatureAggregator_Verify_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WeightedSignatureAggregator_Verify_Call) RunAndReturn(run func(signerID flow.Identifier, sig crypto.Signature) error) *WeightedSignatureAggregator_Verify_Call
type Workerpool ¶ added in v0.23.9
Workerpool is an autogenerated mock type for the Workerpool type
func NewWorkerpool ¶ added in v0.26.1
func NewWorkerpool(t interface {
mock.TestingT
Cleanup(func())
}) *Workerpool
NewWorkerpool creates a new instance of Workerpool. 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 (*Workerpool) EXPECT ¶ added in v0.46.0
func (_m *Workerpool) EXPECT() *Workerpool_Expecter
func (*Workerpool) StopWait ¶ added in v0.23.9
func (_mock *Workerpool) StopWait()
StopWait provides a mock function for the type Workerpool
func (*Workerpool) Submit ¶ added in v0.23.9
func (_mock *Workerpool) Submit(task func())
Submit provides a mock function for the type Workerpool
type Workerpool_Expecter ¶ added in v0.46.0
type Workerpool_Expecter struct {
// contains filtered or unexported fields
}
func (*Workerpool_Expecter) StopWait ¶ added in v0.46.0
func (_e *Workerpool_Expecter) StopWait() *Workerpool_StopWait_Call
StopWait is a helper method to define mock.On call
func (*Workerpool_Expecter) Submit ¶ added in v0.46.0
func (_e *Workerpool_Expecter) Submit(task interface{}) *Workerpool_Submit_Call
Submit is a helper method to define mock.On call
- task func()
type Workerpool_StopWait_Call ¶ added in v0.46.0
Workerpool_StopWait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopWait'
func (*Workerpool_StopWait_Call) Return ¶ added in v0.46.0
func (_c *Workerpool_StopWait_Call) Return() *Workerpool_StopWait_Call
func (*Workerpool_StopWait_Call) Run ¶ added in v0.46.0
func (_c *Workerpool_StopWait_Call) Run(run func()) *Workerpool_StopWait_Call
func (*Workerpool_StopWait_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Workerpool_StopWait_Call) RunAndReturn(run func()) *Workerpool_StopWait_Call
type Workerpool_Submit_Call ¶ added in v0.46.0
Workerpool_Submit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Submit'
func (*Workerpool_Submit_Call) Return ¶ added in v0.46.0
func (_c *Workerpool_Submit_Call) Return() *Workerpool_Submit_Call
func (*Workerpool_Submit_Call) Run ¶ added in v0.46.0
func (_c *Workerpool_Submit_Call) Run(run func(task func())) *Workerpool_Submit_Call
func (*Workerpool_Submit_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Workerpool_Submit_Call) RunAndReturn(run func(task func())) *Workerpool_Submit_Call
type Workers ¶ added in v0.23.9
Workers is an autogenerated mock type for the Workers type
func NewWorkers ¶ added in v0.26.1
NewWorkers creates a new instance of Workers. 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 (*Workers) EXPECT ¶ added in v0.46.0
func (_m *Workers) EXPECT() *Workers_Expecter
type Workers_Expecter ¶ added in v0.46.0
type Workers_Expecter struct {
// contains filtered or unexported fields
}
func (*Workers_Expecter) Submit ¶ added in v0.46.0
func (_e *Workers_Expecter) Submit(task interface{}) *Workers_Submit_Call
Submit is a helper method to define mock.On call
- task func()
type Workers_Submit_Call ¶ added in v0.46.0
Workers_Submit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Submit'
func (*Workers_Submit_Call) Return ¶ added in v0.46.0
func (_c *Workers_Submit_Call) Return() *Workers_Submit_Call
func (*Workers_Submit_Call) Run ¶ added in v0.46.0
func (_c *Workers_Submit_Call) Run(run func(task func())) *Workers_Submit_Call
func (*Workers_Submit_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Workers_Submit_Call) RunAndReturn(run func(task func())) *Workers_Submit_Call
Source Files
¶
- block_producer.go
- block_signer_decoder.go
- communicator_consumer.go
- consumer.go
- dkg.go
- dynamic_committee.go
- event_handler.go
- event_loop.go
- finalization_consumer.go
- finalization_registrar.go
- follower_consumer.go
- forks.go
- pace_maker.go
- packer.go
- participant_consumer.go
- persister.go
- persister_reader.go
- proposal_duration_provider.go
- proposal_violation_consumer.go
- random_beacon_inspector.go
- random_beacon_reconstructor.go
- replicas.go
- safety_rules.go
- signer.go
- timeout_aggregation_consumer.go
- timeout_aggregation_violation_consumer.go
- timeout_aggregator.go
- timeout_collector.go
- timeout_collector_consumer.go
- timeout_collector_factory.go
- timeout_collectors.go
- timeout_processor.go
- timeout_processor_factory.go
- timeout_signature_aggregator.go
- validator.go
- verifier.go
- verifying_vote_processor.go
- vote_aggregation_consumer.go
- vote_aggregation_violation_consumer.go
- vote_aggregator.go
- vote_collector.go
- vote_collector_consumer.go
- vote_collectors.go
- vote_processor.go
- vote_processor_factory.go
- weighted_signature_aggregator.go
- workerpool.go
- workers.go