Documentation
¶
Index ¶
- type BlockTimer
- type BlockTimer_Build_Call
- type BlockTimer_Expecter
- type BlockTimer_Validate_Call
- func (_c *BlockTimer_Validate_Call) Return(err error) *BlockTimer_Validate_Call
- func (_c *BlockTimer_Validate_Call) Run(run func(parentTimestamp uint64, currentTimestamp uint64)) *BlockTimer_Validate_Call
- func (_c *BlockTimer_Validate_Call) RunAndReturn(run func(parentTimestamp uint64, currentTimestamp uint64) error) *BlockTimer_Validate_Call
- type Cluster
- func (_mock *Cluster) ChainID() flow.ChainID
- func (_m *Cluster) EXPECT() *Cluster_Expecter
- func (_mock *Cluster) EpochCounter() uint64
- func (_mock *Cluster) Index() uint
- func (_mock *Cluster) Members() flow.IdentitySkeletonList
- func (_mock *Cluster) RootBlock() *cluster.Block
- func (_mock *Cluster) RootQC() *flow.QuorumCertificate
- type Cluster_ChainID_Call
- type Cluster_EpochCounter_Call
- type Cluster_Expecter
- func (_e *Cluster_Expecter) ChainID() *Cluster_ChainID_Call
- func (_e *Cluster_Expecter) EpochCounter() *Cluster_EpochCounter_Call
- func (_e *Cluster_Expecter) Index() *Cluster_Index_Call
- func (_e *Cluster_Expecter) Members() *Cluster_Members_Call
- func (_e *Cluster_Expecter) RootBlock() *Cluster_RootBlock_Call
- func (_e *Cluster_Expecter) RootQC() *Cluster_RootQC_Call
- type Cluster_Index_Call
- type Cluster_Members_Call
- type Cluster_RootBlock_Call
- type Cluster_RootQC_Call
- type CommittedEpoch
- func (_mock *CommittedEpoch) Cluster(index uint) (protocol.Cluster, error)
- func (_mock *CommittedEpoch) ClusterByChainID(chainID flow.ChainID) (protocol.Cluster, error)
- func (_mock *CommittedEpoch) Clustering() (flow.ClusterList, error)
- func (_mock *CommittedEpoch) Counter() uint64
- func (_mock *CommittedEpoch) DKG() (protocol.DKG, error)
- func (_mock *CommittedEpoch) DKGPhase1FinalView() uint64
- func (_mock *CommittedEpoch) DKGPhase2FinalView() uint64
- func (_mock *CommittedEpoch) DKGPhase3FinalView() uint64
- func (_m *CommittedEpoch) EXPECT() *CommittedEpoch_Expecter
- func (_mock *CommittedEpoch) FinalHeight() (uint64, error)
- func (_mock *CommittedEpoch) FinalView() uint64
- func (_mock *CommittedEpoch) FirstHeight() (uint64, error)
- func (_mock *CommittedEpoch) FirstView() uint64
- func (_mock *CommittedEpoch) InitialIdentities() flow.IdentitySkeletonList
- func (_mock *CommittedEpoch) RandomSource() []byte
- func (_mock *CommittedEpoch) TargetDuration() uint64
- func (_mock *CommittedEpoch) TargetEndTime() uint64
- type CommittedEpoch_ClusterByChainID_Call
- func (_c *CommittedEpoch_ClusterByChainID_Call) Return(cluster protocol.Cluster, err error) *CommittedEpoch_ClusterByChainID_Call
- func (_c *CommittedEpoch_ClusterByChainID_Call) Run(run func(chainID flow.ChainID)) *CommittedEpoch_ClusterByChainID_Call
- func (_c *CommittedEpoch_ClusterByChainID_Call) RunAndReturn(run func(chainID flow.ChainID) (protocol.Cluster, error)) *CommittedEpoch_ClusterByChainID_Call
- type CommittedEpoch_Cluster_Call
- func (_c *CommittedEpoch_Cluster_Call) Return(cluster protocol.Cluster, err error) *CommittedEpoch_Cluster_Call
- func (_c *CommittedEpoch_Cluster_Call) Run(run func(index uint)) *CommittedEpoch_Cluster_Call
- func (_c *CommittedEpoch_Cluster_Call) RunAndReturn(run func(index uint) (protocol.Cluster, error)) *CommittedEpoch_Cluster_Call
- type CommittedEpoch_Clustering_Call
- func (_c *CommittedEpoch_Clustering_Call) Return(clusterList flow.ClusterList, err error) *CommittedEpoch_Clustering_Call
- func (_c *CommittedEpoch_Clustering_Call) Run(run func()) *CommittedEpoch_Clustering_Call
- func (_c *CommittedEpoch_Clustering_Call) RunAndReturn(run func() (flow.ClusterList, error)) *CommittedEpoch_Clustering_Call
- type CommittedEpoch_Counter_Call
- type CommittedEpoch_DKGPhase1FinalView_Call
- func (_c *CommittedEpoch_DKGPhase1FinalView_Call) Return(v uint64) *CommittedEpoch_DKGPhase1FinalView_Call
- func (_c *CommittedEpoch_DKGPhase1FinalView_Call) Run(run func()) *CommittedEpoch_DKGPhase1FinalView_Call
- func (_c *CommittedEpoch_DKGPhase1FinalView_Call) RunAndReturn(run func() uint64) *CommittedEpoch_DKGPhase1FinalView_Call
- type CommittedEpoch_DKGPhase2FinalView_Call
- func (_c *CommittedEpoch_DKGPhase2FinalView_Call) Return(v uint64) *CommittedEpoch_DKGPhase2FinalView_Call
- func (_c *CommittedEpoch_DKGPhase2FinalView_Call) Run(run func()) *CommittedEpoch_DKGPhase2FinalView_Call
- func (_c *CommittedEpoch_DKGPhase2FinalView_Call) RunAndReturn(run func() uint64) *CommittedEpoch_DKGPhase2FinalView_Call
- type CommittedEpoch_DKGPhase3FinalView_Call
- func (_c *CommittedEpoch_DKGPhase3FinalView_Call) Return(v uint64) *CommittedEpoch_DKGPhase3FinalView_Call
- func (_c *CommittedEpoch_DKGPhase3FinalView_Call) Run(run func()) *CommittedEpoch_DKGPhase3FinalView_Call
- func (_c *CommittedEpoch_DKGPhase3FinalView_Call) RunAndReturn(run func() uint64) *CommittedEpoch_DKGPhase3FinalView_Call
- type CommittedEpoch_DKG_Call
- type CommittedEpoch_Expecter
- func (_e *CommittedEpoch_Expecter) Cluster(index interface{}) *CommittedEpoch_Cluster_Call
- func (_e *CommittedEpoch_Expecter) ClusterByChainID(chainID interface{}) *CommittedEpoch_ClusterByChainID_Call
- func (_e *CommittedEpoch_Expecter) Clustering() *CommittedEpoch_Clustering_Call
- func (_e *CommittedEpoch_Expecter) Counter() *CommittedEpoch_Counter_Call
- func (_e *CommittedEpoch_Expecter) DKG() *CommittedEpoch_DKG_Call
- func (_e *CommittedEpoch_Expecter) DKGPhase1FinalView() *CommittedEpoch_DKGPhase1FinalView_Call
- func (_e *CommittedEpoch_Expecter) DKGPhase2FinalView() *CommittedEpoch_DKGPhase2FinalView_Call
- func (_e *CommittedEpoch_Expecter) DKGPhase3FinalView() *CommittedEpoch_DKGPhase3FinalView_Call
- func (_e *CommittedEpoch_Expecter) FinalHeight() *CommittedEpoch_FinalHeight_Call
- func (_e *CommittedEpoch_Expecter) FinalView() *CommittedEpoch_FinalView_Call
- func (_e *CommittedEpoch_Expecter) FirstHeight() *CommittedEpoch_FirstHeight_Call
- func (_e *CommittedEpoch_Expecter) FirstView() *CommittedEpoch_FirstView_Call
- func (_e *CommittedEpoch_Expecter) InitialIdentities() *CommittedEpoch_InitialIdentities_Call
- func (_e *CommittedEpoch_Expecter) RandomSource() *CommittedEpoch_RandomSource_Call
- func (_e *CommittedEpoch_Expecter) TargetDuration() *CommittedEpoch_TargetDuration_Call
- func (_e *CommittedEpoch_Expecter) TargetEndTime() *CommittedEpoch_TargetEndTime_Call
- type CommittedEpoch_FinalHeight_Call
- func (_c *CommittedEpoch_FinalHeight_Call) Return(v uint64, err error) *CommittedEpoch_FinalHeight_Call
- func (_c *CommittedEpoch_FinalHeight_Call) Run(run func()) *CommittedEpoch_FinalHeight_Call
- func (_c *CommittedEpoch_FinalHeight_Call) RunAndReturn(run func() (uint64, error)) *CommittedEpoch_FinalHeight_Call
- type CommittedEpoch_FinalView_Call
- type CommittedEpoch_FirstHeight_Call
- func (_c *CommittedEpoch_FirstHeight_Call) Return(v uint64, err error) *CommittedEpoch_FirstHeight_Call
- func (_c *CommittedEpoch_FirstHeight_Call) Run(run func()) *CommittedEpoch_FirstHeight_Call
- func (_c *CommittedEpoch_FirstHeight_Call) RunAndReturn(run func() (uint64, error)) *CommittedEpoch_FirstHeight_Call
- type CommittedEpoch_FirstView_Call
- type CommittedEpoch_InitialIdentities_Call
- func (_c *CommittedEpoch_InitialIdentities_Call) Return(v flow.IdentitySkeletonList) *CommittedEpoch_InitialIdentities_Call
- func (_c *CommittedEpoch_InitialIdentities_Call) Run(run func()) *CommittedEpoch_InitialIdentities_Call
- func (_c *CommittedEpoch_InitialIdentities_Call) RunAndReturn(run func() flow.IdentitySkeletonList) *CommittedEpoch_InitialIdentities_Call
- type CommittedEpoch_RandomSource_Call
- func (_c *CommittedEpoch_RandomSource_Call) Return(bytes []byte) *CommittedEpoch_RandomSource_Call
- func (_c *CommittedEpoch_RandomSource_Call) Run(run func()) *CommittedEpoch_RandomSource_Call
- func (_c *CommittedEpoch_RandomSource_Call) RunAndReturn(run func() []byte) *CommittedEpoch_RandomSource_Call
- type CommittedEpoch_TargetDuration_Call
- func (_c *CommittedEpoch_TargetDuration_Call) Return(v uint64) *CommittedEpoch_TargetDuration_Call
- func (_c *CommittedEpoch_TargetDuration_Call) Run(run func()) *CommittedEpoch_TargetDuration_Call
- func (_c *CommittedEpoch_TargetDuration_Call) RunAndReturn(run func() uint64) *CommittedEpoch_TargetDuration_Call
- type CommittedEpoch_TargetEndTime_Call
- func (_c *CommittedEpoch_TargetEndTime_Call) Return(v uint64) *CommittedEpoch_TargetEndTime_Call
- func (_c *CommittedEpoch_TargetEndTime_Call) Run(run func()) *CommittedEpoch_TargetEndTime_Call
- func (_c *CommittedEpoch_TargetEndTime_Call) RunAndReturn(run func() uint64) *CommittedEpoch_TargetEndTime_Call
- type Consumer
- func (_mock *Consumer) BlockFinalized(block *flow.Header)
- func (_mock *Consumer) BlockProcessable(block *flow.Header, certifyingQC *flow.QuorumCertificate)
- func (_m *Consumer) EXPECT() *Consumer_Expecter
- func (_mock *Consumer) EpochCommittedPhaseStarted(currentEpochCounter uint64, first *flow.Header)
- func (_mock *Consumer) EpochExtended(epochCounter uint64, header *flow.Header, extension flow.EpochExtension)
- func (_mock *Consumer) EpochFallbackModeExited(epochCounter uint64, header *flow.Header)
- func (_mock *Consumer) EpochFallbackModeTriggered(epochCounter uint64, header *flow.Header)
- func (_mock *Consumer) EpochSetupPhaseStarted(currentEpochCounter uint64, first *flow.Header)
- func (_mock *Consumer) EpochTransition(newEpochCounter uint64, first *flow.Header)
- type Consumer_BlockFinalized_Call
- type Consumer_BlockProcessable_Call
- func (_c *Consumer_BlockProcessable_Call) Return() *Consumer_BlockProcessable_Call
- func (_c *Consumer_BlockProcessable_Call) Run(run func(block *flow.Header, certifyingQC *flow.QuorumCertificate)) *Consumer_BlockProcessable_Call
- func (_c *Consumer_BlockProcessable_Call) RunAndReturn(run func(block *flow.Header, certifyingQC *flow.QuorumCertificate)) *Consumer_BlockProcessable_Call
- type Consumer_EpochCommittedPhaseStarted_Call
- func (_c *Consumer_EpochCommittedPhaseStarted_Call) Return() *Consumer_EpochCommittedPhaseStarted_Call
- func (_c *Consumer_EpochCommittedPhaseStarted_Call) Run(run func(currentEpochCounter uint64, first *flow.Header)) *Consumer_EpochCommittedPhaseStarted_Call
- func (_c *Consumer_EpochCommittedPhaseStarted_Call) RunAndReturn(run func(currentEpochCounter uint64, first *flow.Header)) *Consumer_EpochCommittedPhaseStarted_Call
- type Consumer_EpochExtended_Call
- type Consumer_EpochFallbackModeExited_Call
- func (_c *Consumer_EpochFallbackModeExited_Call) Return() *Consumer_EpochFallbackModeExited_Call
- func (_c *Consumer_EpochFallbackModeExited_Call) Run(run func(epochCounter uint64, header *flow.Header)) *Consumer_EpochFallbackModeExited_Call
- func (_c *Consumer_EpochFallbackModeExited_Call) RunAndReturn(run func(epochCounter uint64, header *flow.Header)) *Consumer_EpochFallbackModeExited_Call
- type Consumer_EpochFallbackModeTriggered_Call
- func (_c *Consumer_EpochFallbackModeTriggered_Call) Return() *Consumer_EpochFallbackModeTriggered_Call
- func (_c *Consumer_EpochFallbackModeTriggered_Call) Run(run func(epochCounter uint64, header *flow.Header)) *Consumer_EpochFallbackModeTriggered_Call
- func (_c *Consumer_EpochFallbackModeTriggered_Call) RunAndReturn(run func(epochCounter uint64, header *flow.Header)) *Consumer_EpochFallbackModeTriggered_Call
- type Consumer_EpochSetupPhaseStarted_Call
- func (_c *Consumer_EpochSetupPhaseStarted_Call) Return() *Consumer_EpochSetupPhaseStarted_Call
- func (_c *Consumer_EpochSetupPhaseStarted_Call) Run(run func(currentEpochCounter uint64, first *flow.Header)) *Consumer_EpochSetupPhaseStarted_Call
- func (_c *Consumer_EpochSetupPhaseStarted_Call) RunAndReturn(run func(currentEpochCounter uint64, first *flow.Header)) *Consumer_EpochSetupPhaseStarted_Call
- type Consumer_EpochTransition_Call
- func (_c *Consumer_EpochTransition_Call) Return() *Consumer_EpochTransition_Call
- func (_c *Consumer_EpochTransition_Call) Run(run func(newEpochCounter uint64, first *flow.Header)) *Consumer_EpochTransition_Call
- func (_c *Consumer_EpochTransition_Call) RunAndReturn(run func(newEpochCounter uint64, first *flow.Header)) *Consumer_EpochTransition_Call
- type Consumer_Expecter
- func (_e *Consumer_Expecter) BlockFinalized(block interface{}) *Consumer_BlockFinalized_Call
- func (_e *Consumer_Expecter) BlockProcessable(block interface{}, certifyingQC interface{}) *Consumer_BlockProcessable_Call
- func (_e *Consumer_Expecter) EpochCommittedPhaseStarted(currentEpochCounter interface{}, first interface{}) *Consumer_EpochCommittedPhaseStarted_Call
- func (_e *Consumer_Expecter) EpochExtended(epochCounter interface{}, header interface{}, extension interface{}) *Consumer_EpochExtended_Call
- func (_e *Consumer_Expecter) EpochFallbackModeExited(epochCounter interface{}, header interface{}) *Consumer_EpochFallbackModeExited_Call
- func (_e *Consumer_Expecter) EpochFallbackModeTriggered(epochCounter interface{}, header interface{}) *Consumer_EpochFallbackModeTriggered_Call
- func (_e *Consumer_Expecter) EpochSetupPhaseStarted(currentEpochCounter interface{}, first interface{}) *Consumer_EpochSetupPhaseStarted_Call
- func (_e *Consumer_Expecter) EpochTransition(newEpochCounter interface{}, first interface{}) *Consumer_EpochTransition_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 EpochProtocolState
- func (_mock *EpochProtocolState) Clustering() (flow.ClusterList, error)
- func (_mock *EpochProtocolState) DKG() (protocol.DKG, error)
- func (_m *EpochProtocolState) EXPECT() *EpochProtocolState_Expecter
- func (_mock *EpochProtocolState) Entry() *flow.RichEpochStateEntry
- func (_mock *EpochProtocolState) Epoch() uint64
- func (_mock *EpochProtocolState) EpochCommit() *flow.EpochCommit
- func (_mock *EpochProtocolState) EpochExtensions() []flow.EpochExtension
- func (_mock *EpochProtocolState) EpochFallbackTriggered() bool
- func (_mock *EpochProtocolState) EpochPhase() flow.EpochPhase
- func (_mock *EpochProtocolState) EpochSetup() *flow.EpochSetup
- func (_mock *EpochProtocolState) GlobalParams() protocol.GlobalParams
- func (_mock *EpochProtocolState) Identities() flow.IdentityList
- func (_mock *EpochProtocolState) PreviousEpochExists() bool
- type EpochProtocolState_Clustering_Call
- func (_c *EpochProtocolState_Clustering_Call) Return(clusterList flow.ClusterList, err error) *EpochProtocolState_Clustering_Call
- func (_c *EpochProtocolState_Clustering_Call) Run(run func()) *EpochProtocolState_Clustering_Call
- func (_c *EpochProtocolState_Clustering_Call) RunAndReturn(run func() (flow.ClusterList, error)) *EpochProtocolState_Clustering_Call
- type EpochProtocolState_DKG_Call
- func (_c *EpochProtocolState_DKG_Call) Return(dKG protocol.DKG, err error) *EpochProtocolState_DKG_Call
- func (_c *EpochProtocolState_DKG_Call) Run(run func()) *EpochProtocolState_DKG_Call
- func (_c *EpochProtocolState_DKG_Call) RunAndReturn(run func() (protocol.DKG, error)) *EpochProtocolState_DKG_Call
- type EpochProtocolState_Entry_Call
- func (_c *EpochProtocolState_Entry_Call) Return(richEpochStateEntry *flow.RichEpochStateEntry) *EpochProtocolState_Entry_Call
- func (_c *EpochProtocolState_Entry_Call) Run(run func()) *EpochProtocolState_Entry_Call
- func (_c *EpochProtocolState_Entry_Call) RunAndReturn(run func() *flow.RichEpochStateEntry) *EpochProtocolState_Entry_Call
- type EpochProtocolState_EpochCommit_Call
- func (_c *EpochProtocolState_EpochCommit_Call) Return(epochCommit *flow.EpochCommit) *EpochProtocolState_EpochCommit_Call
- func (_c *EpochProtocolState_EpochCommit_Call) Run(run func()) *EpochProtocolState_EpochCommit_Call
- func (_c *EpochProtocolState_EpochCommit_Call) RunAndReturn(run func() *flow.EpochCommit) *EpochProtocolState_EpochCommit_Call
- type EpochProtocolState_EpochExtensions_Call
- func (_c *EpochProtocolState_EpochExtensions_Call) Return(epochExtensions []flow.EpochExtension) *EpochProtocolState_EpochExtensions_Call
- func (_c *EpochProtocolState_EpochExtensions_Call) Run(run func()) *EpochProtocolState_EpochExtensions_Call
- func (_c *EpochProtocolState_EpochExtensions_Call) RunAndReturn(run func() []flow.EpochExtension) *EpochProtocolState_EpochExtensions_Call
- type EpochProtocolState_EpochFallbackTriggered_Call
- func (_c *EpochProtocolState_EpochFallbackTriggered_Call) Return(b bool) *EpochProtocolState_EpochFallbackTriggered_Call
- func (_c *EpochProtocolState_EpochFallbackTriggered_Call) Run(run func()) *EpochProtocolState_EpochFallbackTriggered_Call
- func (_c *EpochProtocolState_EpochFallbackTriggered_Call) RunAndReturn(run func() bool) *EpochProtocolState_EpochFallbackTriggered_Call
- type EpochProtocolState_EpochPhase_Call
- func (_c *EpochProtocolState_EpochPhase_Call) Return(epochPhase flow.EpochPhase) *EpochProtocolState_EpochPhase_Call
- func (_c *EpochProtocolState_EpochPhase_Call) Run(run func()) *EpochProtocolState_EpochPhase_Call
- func (_c *EpochProtocolState_EpochPhase_Call) RunAndReturn(run func() flow.EpochPhase) *EpochProtocolState_EpochPhase_Call
- type EpochProtocolState_EpochSetup_Call
- func (_c *EpochProtocolState_EpochSetup_Call) Return(epochSetup *flow.EpochSetup) *EpochProtocolState_EpochSetup_Call
- func (_c *EpochProtocolState_EpochSetup_Call) Run(run func()) *EpochProtocolState_EpochSetup_Call
- func (_c *EpochProtocolState_EpochSetup_Call) RunAndReturn(run func() *flow.EpochSetup) *EpochProtocolState_EpochSetup_Call
- type EpochProtocolState_Epoch_Call
- type EpochProtocolState_Expecter
- func (_e *EpochProtocolState_Expecter) Clustering() *EpochProtocolState_Clustering_Call
- func (_e *EpochProtocolState_Expecter) DKG() *EpochProtocolState_DKG_Call
- func (_e *EpochProtocolState_Expecter) Entry() *EpochProtocolState_Entry_Call
- func (_e *EpochProtocolState_Expecter) Epoch() *EpochProtocolState_Epoch_Call
- func (_e *EpochProtocolState_Expecter) EpochCommit() *EpochProtocolState_EpochCommit_Call
- func (_e *EpochProtocolState_Expecter) EpochExtensions() *EpochProtocolState_EpochExtensions_Call
- func (_e *EpochProtocolState_Expecter) EpochFallbackTriggered() *EpochProtocolState_EpochFallbackTriggered_Call
- func (_e *EpochProtocolState_Expecter) EpochPhase() *EpochProtocolState_EpochPhase_Call
- func (_e *EpochProtocolState_Expecter) EpochSetup() *EpochProtocolState_EpochSetup_Call
- func (_e *EpochProtocolState_Expecter) GlobalParams() *EpochProtocolState_GlobalParams_Call
- func (_e *EpochProtocolState_Expecter) Identities() *EpochProtocolState_Identities_Call
- func (_e *EpochProtocolState_Expecter) PreviousEpochExists() *EpochProtocolState_PreviousEpochExists_Call
- type EpochProtocolState_GlobalParams_Call
- func (_c *EpochProtocolState_GlobalParams_Call) Return(globalParams protocol.GlobalParams) *EpochProtocolState_GlobalParams_Call
- func (_c *EpochProtocolState_GlobalParams_Call) Run(run func()) *EpochProtocolState_GlobalParams_Call
- func (_c *EpochProtocolState_GlobalParams_Call) RunAndReturn(run func() protocol.GlobalParams) *EpochProtocolState_GlobalParams_Call
- type EpochProtocolState_Identities_Call
- func (_c *EpochProtocolState_Identities_Call) Return(v flow.IdentityList) *EpochProtocolState_Identities_Call
- func (_c *EpochProtocolState_Identities_Call) Run(run func()) *EpochProtocolState_Identities_Call
- func (_c *EpochProtocolState_Identities_Call) RunAndReturn(run func() flow.IdentityList) *EpochProtocolState_Identities_Call
- type EpochProtocolState_PreviousEpochExists_Call
- func (_c *EpochProtocolState_PreviousEpochExists_Call) Return(b bool) *EpochProtocolState_PreviousEpochExists_Call
- func (_c *EpochProtocolState_PreviousEpochExists_Call) Run(run func()) *EpochProtocolState_PreviousEpochExists_Call
- func (_c *EpochProtocolState_PreviousEpochExists_Call) RunAndReturn(run func() bool) *EpochProtocolState_PreviousEpochExists_Call
- type EpochQuery
- func (_mock *EpochQuery) Current() (protocol.CommittedEpoch, error)
- func (_m *EpochQuery) EXPECT() *EpochQuery_Expecter
- func (_mock *EpochQuery) NextCommitted() (protocol.CommittedEpoch, error)
- func (_mock *EpochQuery) NextUnsafe() (protocol.TentativeEpoch, error)
- func (_mock *EpochQuery) Previous() (protocol.CommittedEpoch, error)
- type EpochQuery_Current_Call
- func (_c *EpochQuery_Current_Call) Return(committedEpoch protocol.CommittedEpoch, err error) *EpochQuery_Current_Call
- func (_c *EpochQuery_Current_Call) Run(run func()) *EpochQuery_Current_Call
- func (_c *EpochQuery_Current_Call) RunAndReturn(run func() (protocol.CommittedEpoch, error)) *EpochQuery_Current_Call
- type EpochQuery_Expecter
- type EpochQuery_NextCommitted_Call
- func (_c *EpochQuery_NextCommitted_Call) Return(committedEpoch protocol.CommittedEpoch, err error) *EpochQuery_NextCommitted_Call
- func (_c *EpochQuery_NextCommitted_Call) Run(run func()) *EpochQuery_NextCommitted_Call
- func (_c *EpochQuery_NextCommitted_Call) RunAndReturn(run func() (protocol.CommittedEpoch, error)) *EpochQuery_NextCommitted_Call
- type EpochQuery_NextUnsafe_Call
- func (_c *EpochQuery_NextUnsafe_Call) Return(tentativeEpoch protocol.TentativeEpoch, err error) *EpochQuery_NextUnsafe_Call
- func (_c *EpochQuery_NextUnsafe_Call) Run(run func()) *EpochQuery_NextUnsafe_Call
- func (_c *EpochQuery_NextUnsafe_Call) RunAndReturn(run func() (protocol.TentativeEpoch, error)) *EpochQuery_NextUnsafe_Call
- type EpochQuery_Previous_Call
- func (_c *EpochQuery_Previous_Call) Return(committedEpoch protocol.CommittedEpoch, err error) *EpochQuery_Previous_Call
- func (_c *EpochQuery_Previous_Call) Run(run func()) *EpochQuery_Previous_Call
- func (_c *EpochQuery_Previous_Call) RunAndReturn(run func() (protocol.CommittedEpoch, error)) *EpochQuery_Previous_Call
- type FollowerState
- func (_mock *FollowerState) AtBlockID(blockID flow.Identifier) protocol.Snapshot
- func (_mock *FollowerState) AtHeight(height uint64) protocol.Snapshot
- func (_m *FollowerState) EXPECT() *FollowerState_Expecter
- func (_mock *FollowerState) ExtendCertified(ctx context.Context, certified *flow.CertifiedBlock) error
- func (_mock *FollowerState) Final() protocol.Snapshot
- func (_mock *FollowerState) Finalize(ctx context.Context, blockID flow.Identifier) error
- func (_mock *FollowerState) Params() protocol.Params
- func (_mock *FollowerState) Sealed() protocol.Snapshot
- type FollowerState_AtBlockID_Call
- func (_c *FollowerState_AtBlockID_Call) Return(snapshot protocol.Snapshot) *FollowerState_AtBlockID_Call
- func (_c *FollowerState_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *FollowerState_AtBlockID_Call
- func (_c *FollowerState_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) protocol.Snapshot) *FollowerState_AtBlockID_Call
- type FollowerState_AtHeight_Call
- func (_c *FollowerState_AtHeight_Call) Return(snapshot protocol.Snapshot) *FollowerState_AtHeight_Call
- func (_c *FollowerState_AtHeight_Call) Run(run func(height uint64)) *FollowerState_AtHeight_Call
- func (_c *FollowerState_AtHeight_Call) RunAndReturn(run func(height uint64) protocol.Snapshot) *FollowerState_AtHeight_Call
- type FollowerState_Expecter
- func (_e *FollowerState_Expecter) AtBlockID(blockID interface{}) *FollowerState_AtBlockID_Call
- func (_e *FollowerState_Expecter) AtHeight(height interface{}) *FollowerState_AtHeight_Call
- func (_e *FollowerState_Expecter) ExtendCertified(ctx interface{}, certified interface{}) *FollowerState_ExtendCertified_Call
- func (_e *FollowerState_Expecter) Final() *FollowerState_Final_Call
- func (_e *FollowerState_Expecter) Finalize(ctx interface{}, blockID interface{}) *FollowerState_Finalize_Call
- func (_e *FollowerState_Expecter) Params() *FollowerState_Params_Call
- func (_e *FollowerState_Expecter) Sealed() *FollowerState_Sealed_Call
- type FollowerState_ExtendCertified_Call
- func (_c *FollowerState_ExtendCertified_Call) Return(err error) *FollowerState_ExtendCertified_Call
- func (_c *FollowerState_ExtendCertified_Call) Run(run func(ctx context.Context, certified *flow.CertifiedBlock)) *FollowerState_ExtendCertified_Call
- func (_c *FollowerState_ExtendCertified_Call) RunAndReturn(run func(ctx context.Context, certified *flow.CertifiedBlock) error) *FollowerState_ExtendCertified_Call
- type FollowerState_Final_Call
- type FollowerState_Finalize_Call
- func (_c *FollowerState_Finalize_Call) Return(err error) *FollowerState_Finalize_Call
- func (_c *FollowerState_Finalize_Call) Run(run func(ctx context.Context, blockID flow.Identifier)) *FollowerState_Finalize_Call
- func (_c *FollowerState_Finalize_Call) RunAndReturn(run func(ctx context.Context, blockID flow.Identifier) error) *FollowerState_Finalize_Call
- type FollowerState_Params_Call
- type FollowerState_Sealed_Call
- type GlobalParams
- type GlobalParams_ChainID_Call
- type GlobalParams_Expecter
- func (_e *GlobalParams_Expecter) ChainID() *GlobalParams_ChainID_Call
- func (_e *GlobalParams_Expecter) SporkID() *GlobalParams_SporkID_Call
- func (_e *GlobalParams_Expecter) SporkRootBlockHeight() *GlobalParams_SporkRootBlockHeight_Call
- func (_e *GlobalParams_Expecter) SporkRootBlockView() *GlobalParams_SporkRootBlockView_Call
- type GlobalParams_SporkID_Call
- type GlobalParams_SporkRootBlockHeight_Call
- func (_c *GlobalParams_SporkRootBlockHeight_Call) Return(v uint64) *GlobalParams_SporkRootBlockHeight_Call
- func (_c *GlobalParams_SporkRootBlockHeight_Call) Run(run func()) *GlobalParams_SporkRootBlockHeight_Call
- func (_c *GlobalParams_SporkRootBlockHeight_Call) RunAndReturn(run func() uint64) *GlobalParams_SporkRootBlockHeight_Call
- type GlobalParams_SporkRootBlockView_Call
- func (_c *GlobalParams_SporkRootBlockView_Call) Return(v uint64) *GlobalParams_SporkRootBlockView_Call
- func (_c *GlobalParams_SporkRootBlockView_Call) Run(run func()) *GlobalParams_SporkRootBlockView_Call
- func (_c *GlobalParams_SporkRootBlockView_Call) RunAndReturn(run func() uint64) *GlobalParams_SporkRootBlockView_Call
- type InstanceParams
- type InstanceParams_Expecter
- func (_e *InstanceParams_Expecter) FinalizedRoot() *InstanceParams_FinalizedRoot_Call
- func (_e *InstanceParams_Expecter) Seal() *InstanceParams_Seal_Call
- func (_e *InstanceParams_Expecter) SealedRoot() *InstanceParams_SealedRoot_Call
- func (_e *InstanceParams_Expecter) SporkRootBlock() *InstanceParams_SporkRootBlock_Call
- type InstanceParams_FinalizedRoot_Call
- func (_c *InstanceParams_FinalizedRoot_Call) Return(header *flow.Header) *InstanceParams_FinalizedRoot_Call
- func (_c *InstanceParams_FinalizedRoot_Call) Run(run func()) *InstanceParams_FinalizedRoot_Call
- func (_c *InstanceParams_FinalizedRoot_Call) RunAndReturn(run func() *flow.Header) *InstanceParams_FinalizedRoot_Call
- type InstanceParams_Seal_Call
- type InstanceParams_SealedRoot_Call
- func (_c *InstanceParams_SealedRoot_Call) Return(header *flow.Header) *InstanceParams_SealedRoot_Call
- func (_c *InstanceParams_SealedRoot_Call) Run(run func()) *InstanceParams_SealedRoot_Call
- func (_c *InstanceParams_SealedRoot_Call) RunAndReturn(run func() *flow.Header) *InstanceParams_SealedRoot_Call
- type InstanceParams_SporkRootBlock_Call
- func (_c *InstanceParams_SporkRootBlock_Call) Return(v *flow.Block) *InstanceParams_SporkRootBlock_Call
- func (_c *InstanceParams_SporkRootBlock_Call) Run(run func()) *InstanceParams_SporkRootBlock_Call
- func (_c *InstanceParams_SporkRootBlock_Call) RunAndReturn(run func() *flow.Block) *InstanceParams_SporkRootBlock_Call
- type KVStoreReader
- func (_m *KVStoreReader) EXPECT() *KVStoreReader_Expecter
- func (_mock *KVStoreReader) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)
- func (_mock *KVStoreReader) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_mock *KVStoreReader) GetEpochExtensionViewCount() uint64
- func (_mock *KVStoreReader) GetEpochStateID() flow.Identifier
- func (_mock *KVStoreReader) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)
- func (_mock *KVStoreReader) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
- func (_mock *KVStoreReader) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)
- func (_mock *KVStoreReader) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]
- func (_mock *KVStoreReader) GetFinalizationSafetyThreshold() uint64
- func (_mock *KVStoreReader) GetProtocolStateVersion() uint64
- func (_mock *KVStoreReader) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
- func (_mock *KVStoreReader) ID() flow.Identifier
- func (_mock *KVStoreReader) VersionedEncode() (uint64, []byte, error)
- type KVStoreReader_Expecter
- func (_e *KVStoreReader_Expecter) GetCadenceComponentVersion() *KVStoreReader_GetCadenceComponentVersion_Call
- func (_e *KVStoreReader_Expecter) GetCadenceComponentVersionUpgrade() *KVStoreReader_GetCadenceComponentVersionUpgrade_Call
- func (_e *KVStoreReader_Expecter) GetEpochExtensionViewCount() *KVStoreReader_GetEpochExtensionViewCount_Call
- func (_e *KVStoreReader_Expecter) GetEpochStateID() *KVStoreReader_GetEpochStateID_Call
- func (_e *KVStoreReader_Expecter) GetExecutionComponentVersion() *KVStoreReader_GetExecutionComponentVersion_Call
- func (_e *KVStoreReader_Expecter) GetExecutionComponentVersionUpgrade() *KVStoreReader_GetExecutionComponentVersionUpgrade_Call
- func (_e *KVStoreReader_Expecter) GetExecutionMeteringParameters() *KVStoreReader_GetExecutionMeteringParameters_Call
- func (_e *KVStoreReader_Expecter) GetExecutionMeteringParametersUpgrade() *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call
- func (_e *KVStoreReader_Expecter) GetFinalizationSafetyThreshold() *KVStoreReader_GetFinalizationSafetyThreshold_Call
- func (_e *KVStoreReader_Expecter) GetProtocolStateVersion() *KVStoreReader_GetProtocolStateVersion_Call
- func (_e *KVStoreReader_Expecter) GetVersionUpgrade() *KVStoreReader_GetVersionUpgrade_Call
- func (_e *KVStoreReader_Expecter) ID() *KVStoreReader_ID_Call
- func (_e *KVStoreReader_Expecter) VersionedEncode() *KVStoreReader_VersionedEncode_Call
- type KVStoreReader_GetCadenceComponentVersionUpgrade_Call
- func (_c *KVStoreReader_GetCadenceComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreReader_GetCadenceComponentVersionUpgrade_Call
- func (_c *KVStoreReader_GetCadenceComponentVersionUpgrade_Call) Run(run func()) *KVStoreReader_GetCadenceComponentVersionUpgrade_Call
- func (_c *KVStoreReader_GetCadenceComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreReader_GetCadenceComponentVersionUpgrade_Call
- type KVStoreReader_GetCadenceComponentVersion_Call
- func (_c *KVStoreReader_GetCadenceComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreReader_GetCadenceComponentVersion_Call
- func (_c *KVStoreReader_GetCadenceComponentVersion_Call) Run(run func()) *KVStoreReader_GetCadenceComponentVersion_Call
- func (_c *KVStoreReader_GetCadenceComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreReader_GetCadenceComponentVersion_Call
- type KVStoreReader_GetEpochExtensionViewCount_Call
- func (_c *KVStoreReader_GetEpochExtensionViewCount_Call) Return(v uint64) *KVStoreReader_GetEpochExtensionViewCount_Call
- func (_c *KVStoreReader_GetEpochExtensionViewCount_Call) Run(run func()) *KVStoreReader_GetEpochExtensionViewCount_Call
- func (_c *KVStoreReader_GetEpochExtensionViewCount_Call) RunAndReturn(run func() uint64) *KVStoreReader_GetEpochExtensionViewCount_Call
- type KVStoreReader_GetEpochStateID_Call
- func (_c *KVStoreReader_GetEpochStateID_Call) Return(identifier flow.Identifier) *KVStoreReader_GetEpochStateID_Call
- func (_c *KVStoreReader_GetEpochStateID_Call) Run(run func()) *KVStoreReader_GetEpochStateID_Call
- func (_c *KVStoreReader_GetEpochStateID_Call) RunAndReturn(run func() flow.Identifier) *KVStoreReader_GetEpochStateID_Call
- type KVStoreReader_GetExecutionComponentVersionUpgrade_Call
- func (_c *KVStoreReader_GetExecutionComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreReader_GetExecutionComponentVersionUpgrade_Call
- func (_c *KVStoreReader_GetExecutionComponentVersionUpgrade_Call) Run(run func()) *KVStoreReader_GetExecutionComponentVersionUpgrade_Call
- func (_c *KVStoreReader_GetExecutionComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreReader_GetExecutionComponentVersionUpgrade_Call
- type KVStoreReader_GetExecutionComponentVersion_Call
- func (_c *KVStoreReader_GetExecutionComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreReader_GetExecutionComponentVersion_Call
- func (_c *KVStoreReader_GetExecutionComponentVersion_Call) Run(run func()) *KVStoreReader_GetExecutionComponentVersion_Call
- func (_c *KVStoreReader_GetExecutionComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreReader_GetExecutionComponentVersion_Call
- type KVStoreReader_GetExecutionMeteringParametersUpgrade_Call
- func (_c *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) Return(...) *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call
- func (_c *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) Run(run func()) *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call
- func (_c *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]) *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call
- type KVStoreReader_GetExecutionMeteringParameters_Call
- func (_c *KVStoreReader_GetExecutionMeteringParameters_Call) Return(executionMeteringParameters protocol.ExecutionMeteringParameters, err error) *KVStoreReader_GetExecutionMeteringParameters_Call
- func (_c *KVStoreReader_GetExecutionMeteringParameters_Call) Run(run func()) *KVStoreReader_GetExecutionMeteringParameters_Call
- func (_c *KVStoreReader_GetExecutionMeteringParameters_Call) RunAndReturn(run func() (protocol.ExecutionMeteringParameters, error)) *KVStoreReader_GetExecutionMeteringParameters_Call
- type KVStoreReader_GetFinalizationSafetyThreshold_Call
- func (_c *KVStoreReader_GetFinalizationSafetyThreshold_Call) Return(v uint64) *KVStoreReader_GetFinalizationSafetyThreshold_Call
- func (_c *KVStoreReader_GetFinalizationSafetyThreshold_Call) Run(run func()) *KVStoreReader_GetFinalizationSafetyThreshold_Call
- func (_c *KVStoreReader_GetFinalizationSafetyThreshold_Call) RunAndReturn(run func() uint64) *KVStoreReader_GetFinalizationSafetyThreshold_Call
- type KVStoreReader_GetProtocolStateVersion_Call
- func (_c *KVStoreReader_GetProtocolStateVersion_Call) Return(v uint64) *KVStoreReader_GetProtocolStateVersion_Call
- func (_c *KVStoreReader_GetProtocolStateVersion_Call) Run(run func()) *KVStoreReader_GetProtocolStateVersion_Call
- func (_c *KVStoreReader_GetProtocolStateVersion_Call) RunAndReturn(run func() uint64) *KVStoreReader_GetProtocolStateVersion_Call
- type KVStoreReader_GetVersionUpgrade_Call
- func (_c *KVStoreReader_GetVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[uint64]) *KVStoreReader_GetVersionUpgrade_Call
- func (_c *KVStoreReader_GetVersionUpgrade_Call) Run(run func()) *KVStoreReader_GetVersionUpgrade_Call
- func (_c *KVStoreReader_GetVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[uint64]) *KVStoreReader_GetVersionUpgrade_Call
- type KVStoreReader_ID_Call
- type KVStoreReader_VersionedEncode_Call
- func (_c *KVStoreReader_VersionedEncode_Call) Return(v uint64, bytes []byte, err error) *KVStoreReader_VersionedEncode_Call
- func (_c *KVStoreReader_VersionedEncode_Call) Run(run func()) *KVStoreReader_VersionedEncode_Call
- func (_c *KVStoreReader_VersionedEncode_Call) RunAndReturn(run func() (uint64, []byte, error)) *KVStoreReader_VersionedEncode_Call
- type MutableProtocolState
- func (_m *MutableProtocolState) EXPECT() *MutableProtocolState_Expecter
- func (_mock *MutableProtocolState) EpochStateAtBlockID(blockID flow.Identifier) (protocol.EpochProtocolState, error)
- func (_mock *MutableProtocolState) EvolveState(deferredDBOps *deferred.DeferredBlockPersist, parentBlockID flow.Identifier, ...) (flow.Identifier, error)
- func (_mock *MutableProtocolState) GlobalParams() protocol.GlobalParams
- func (_mock *MutableProtocolState) KVStoreAtBlockID(blockID flow.Identifier) (protocol.KVStoreReader, error)
- type MutableProtocolState_EpochStateAtBlockID_Call
- func (_c *MutableProtocolState_EpochStateAtBlockID_Call) Return(epochProtocolState protocol.EpochProtocolState, err error) *MutableProtocolState_EpochStateAtBlockID_Call
- func (_c *MutableProtocolState_EpochStateAtBlockID_Call) Run(run func(blockID flow.Identifier)) *MutableProtocolState_EpochStateAtBlockID_Call
- func (_c *MutableProtocolState_EpochStateAtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol.EpochProtocolState, error)) *MutableProtocolState_EpochStateAtBlockID_Call
- type MutableProtocolState_EvolveState_Call
- func (_c *MutableProtocolState_EvolveState_Call) Return(stateID flow.Identifier, err error) *MutableProtocolState_EvolveState_Call
- func (_c *MutableProtocolState_EvolveState_Call) Run(...) *MutableProtocolState_EvolveState_Call
- func (_c *MutableProtocolState_EvolveState_Call) RunAndReturn(...) *MutableProtocolState_EvolveState_Call
- type MutableProtocolState_Expecter
- func (_e *MutableProtocolState_Expecter) EpochStateAtBlockID(blockID interface{}) *MutableProtocolState_EpochStateAtBlockID_Call
- func (_e *MutableProtocolState_Expecter) EvolveState(deferredDBOps interface{}, parentBlockID interface{}, ...) *MutableProtocolState_EvolveState_Call
- func (_e *MutableProtocolState_Expecter) GlobalParams() *MutableProtocolState_GlobalParams_Call
- func (_e *MutableProtocolState_Expecter) KVStoreAtBlockID(blockID interface{}) *MutableProtocolState_KVStoreAtBlockID_Call
- type MutableProtocolState_GlobalParams_Call
- func (_c *MutableProtocolState_GlobalParams_Call) Return(globalParams protocol.GlobalParams) *MutableProtocolState_GlobalParams_Call
- func (_c *MutableProtocolState_GlobalParams_Call) Run(run func()) *MutableProtocolState_GlobalParams_Call
- func (_c *MutableProtocolState_GlobalParams_Call) RunAndReturn(run func() protocol.GlobalParams) *MutableProtocolState_GlobalParams_Call
- type MutableProtocolState_KVStoreAtBlockID_Call
- func (_c *MutableProtocolState_KVStoreAtBlockID_Call) Return(kVStoreReader protocol.KVStoreReader, err error) *MutableProtocolState_KVStoreAtBlockID_Call
- func (_c *MutableProtocolState_KVStoreAtBlockID_Call) Run(run func(blockID flow.Identifier)) *MutableProtocolState_KVStoreAtBlockID_Call
- func (_c *MutableProtocolState_KVStoreAtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol.KVStoreReader, error)) *MutableProtocolState_KVStoreAtBlockID_Call
- type Params
- func (_mock *Params) ChainID() flow.ChainID
- func (_m *Params) EXPECT() *Params_Expecter
- func (_mock *Params) FinalizedRoot() *flow.Header
- func (_mock *Params) Seal() *flow.Seal
- func (_mock *Params) SealedRoot() *flow.Header
- func (_mock *Params) SporkID() flow.Identifier
- func (_mock *Params) SporkRootBlock() *flow.Block
- func (_mock *Params) SporkRootBlockHeight() uint64
- func (_mock *Params) SporkRootBlockView() uint64
- type Params_ChainID_Call
- type Params_Expecter
- func (_e *Params_Expecter) ChainID() *Params_ChainID_Call
- func (_e *Params_Expecter) FinalizedRoot() *Params_FinalizedRoot_Call
- func (_e *Params_Expecter) Seal() *Params_Seal_Call
- func (_e *Params_Expecter) SealedRoot() *Params_SealedRoot_Call
- func (_e *Params_Expecter) SporkID() *Params_SporkID_Call
- func (_e *Params_Expecter) SporkRootBlock() *Params_SporkRootBlock_Call
- func (_e *Params_Expecter) SporkRootBlockHeight() *Params_SporkRootBlockHeight_Call
- func (_e *Params_Expecter) SporkRootBlockView() *Params_SporkRootBlockView_Call
- type Params_FinalizedRoot_Call
- type Params_Seal_Call
- type Params_SealedRoot_Call
- type Params_SporkID_Call
- type Params_SporkRootBlockHeight_Call
- type Params_SporkRootBlockView_Call
- type Params_SporkRootBlock_Call
- type ParticipantState
- func (_mock *ParticipantState) AtBlockID(blockID flow.Identifier) protocol.Snapshot
- func (_mock *ParticipantState) AtHeight(height uint64) protocol.Snapshot
- func (_m *ParticipantState) EXPECT() *ParticipantState_Expecter
- func (_mock *ParticipantState) Extend(ctx context.Context, candidate *flow.Proposal) error
- func (_mock *ParticipantState) ExtendCertified(ctx context.Context, certified *flow.CertifiedBlock) error
- func (_mock *ParticipantState) Final() protocol.Snapshot
- func (_mock *ParticipantState) Finalize(ctx context.Context, blockID flow.Identifier) error
- func (_mock *ParticipantState) Params() protocol.Params
- func (_mock *ParticipantState) Sealed() protocol.Snapshot
- type ParticipantState_AtBlockID_Call
- func (_c *ParticipantState_AtBlockID_Call) Return(snapshot protocol.Snapshot) *ParticipantState_AtBlockID_Call
- func (_c *ParticipantState_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *ParticipantState_AtBlockID_Call
- func (_c *ParticipantState_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) protocol.Snapshot) *ParticipantState_AtBlockID_Call
- type ParticipantState_AtHeight_Call
- func (_c *ParticipantState_AtHeight_Call) Return(snapshot protocol.Snapshot) *ParticipantState_AtHeight_Call
- func (_c *ParticipantState_AtHeight_Call) Run(run func(height uint64)) *ParticipantState_AtHeight_Call
- func (_c *ParticipantState_AtHeight_Call) RunAndReturn(run func(height uint64) protocol.Snapshot) *ParticipantState_AtHeight_Call
- type ParticipantState_Expecter
- func (_e *ParticipantState_Expecter) AtBlockID(blockID interface{}) *ParticipantState_AtBlockID_Call
- func (_e *ParticipantState_Expecter) AtHeight(height interface{}) *ParticipantState_AtHeight_Call
- func (_e *ParticipantState_Expecter) Extend(ctx interface{}, candidate interface{}) *ParticipantState_Extend_Call
- func (_e *ParticipantState_Expecter) ExtendCertified(ctx interface{}, certified interface{}) *ParticipantState_ExtendCertified_Call
- func (_e *ParticipantState_Expecter) Final() *ParticipantState_Final_Call
- func (_e *ParticipantState_Expecter) Finalize(ctx interface{}, blockID interface{}) *ParticipantState_Finalize_Call
- func (_e *ParticipantState_Expecter) Params() *ParticipantState_Params_Call
- func (_e *ParticipantState_Expecter) Sealed() *ParticipantState_Sealed_Call
- type ParticipantState_ExtendCertified_Call
- func (_c *ParticipantState_ExtendCertified_Call) Return(err error) *ParticipantState_ExtendCertified_Call
- func (_c *ParticipantState_ExtendCertified_Call) Run(run func(ctx context.Context, certified *flow.CertifiedBlock)) *ParticipantState_ExtendCertified_Call
- func (_c *ParticipantState_ExtendCertified_Call) RunAndReturn(run func(ctx context.Context, certified *flow.CertifiedBlock) error) *ParticipantState_ExtendCertified_Call
- type ParticipantState_Extend_Call
- func (_c *ParticipantState_Extend_Call) Return(err error) *ParticipantState_Extend_Call
- func (_c *ParticipantState_Extend_Call) Run(run func(ctx context.Context, candidate *flow.Proposal)) *ParticipantState_Extend_Call
- func (_c *ParticipantState_Extend_Call) RunAndReturn(run func(ctx context.Context, candidate *flow.Proposal) error) *ParticipantState_Extend_Call
- type ParticipantState_Final_Call
- type ParticipantState_Finalize_Call
- func (_c *ParticipantState_Finalize_Call) Return(err error) *ParticipantState_Finalize_Call
- func (_c *ParticipantState_Finalize_Call) Run(run func(ctx context.Context, blockID flow.Identifier)) *ParticipantState_Finalize_Call
- func (_c *ParticipantState_Finalize_Call) RunAndReturn(run func(ctx context.Context, blockID flow.Identifier) error) *ParticipantState_Finalize_Call
- type ParticipantState_Params_Call
- type ParticipantState_Sealed_Call
- func (_c *ParticipantState_Sealed_Call) Return(snapshot protocol.Snapshot) *ParticipantState_Sealed_Call
- func (_c *ParticipantState_Sealed_Call) Run(run func()) *ParticipantState_Sealed_Call
- func (_c *ParticipantState_Sealed_Call) RunAndReturn(run func() protocol.Snapshot) *ParticipantState_Sealed_Call
- type ProtocolState
- func (_m *ProtocolState) EXPECT() *ProtocolState_Expecter
- func (_mock *ProtocolState) EpochStateAtBlockID(blockID flow.Identifier) (protocol.EpochProtocolState, error)
- func (_mock *ProtocolState) GlobalParams() protocol.GlobalParams
- func (_mock *ProtocolState) KVStoreAtBlockID(blockID flow.Identifier) (protocol.KVStoreReader, error)
- type ProtocolState_EpochStateAtBlockID_Call
- func (_c *ProtocolState_EpochStateAtBlockID_Call) Return(epochProtocolState protocol.EpochProtocolState, err error) *ProtocolState_EpochStateAtBlockID_Call
- func (_c *ProtocolState_EpochStateAtBlockID_Call) Run(run func(blockID flow.Identifier)) *ProtocolState_EpochStateAtBlockID_Call
- func (_c *ProtocolState_EpochStateAtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol.EpochProtocolState, error)) *ProtocolState_EpochStateAtBlockID_Call
- type ProtocolState_Expecter
- func (_e *ProtocolState_Expecter) EpochStateAtBlockID(blockID interface{}) *ProtocolState_EpochStateAtBlockID_Call
- func (_e *ProtocolState_Expecter) GlobalParams() *ProtocolState_GlobalParams_Call
- func (_e *ProtocolState_Expecter) KVStoreAtBlockID(blockID interface{}) *ProtocolState_KVStoreAtBlockID_Call
- type ProtocolState_GlobalParams_Call
- func (_c *ProtocolState_GlobalParams_Call) Return(globalParams protocol.GlobalParams) *ProtocolState_GlobalParams_Call
- func (_c *ProtocolState_GlobalParams_Call) Run(run func()) *ProtocolState_GlobalParams_Call
- func (_c *ProtocolState_GlobalParams_Call) RunAndReturn(run func() protocol.GlobalParams) *ProtocolState_GlobalParams_Call
- type ProtocolState_KVStoreAtBlockID_Call
- func (_c *ProtocolState_KVStoreAtBlockID_Call) Return(kVStoreReader protocol.KVStoreReader, err error) *ProtocolState_KVStoreAtBlockID_Call
- func (_c *ProtocolState_KVStoreAtBlockID_Call) Run(run func(blockID flow.Identifier)) *ProtocolState_KVStoreAtBlockID_Call
- func (_c *ProtocolState_KVStoreAtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol.KVStoreReader, error)) *ProtocolState_KVStoreAtBlockID_Call
- type Snapshot
- func (_mock *Snapshot) Commit() (flow.StateCommitment, error)
- func (_mock *Snapshot) Descendants() ([]flow.Identifier, error)
- func (_m *Snapshot) EXPECT() *Snapshot_Expecter
- func (_mock *Snapshot) EpochPhase() (flow.EpochPhase, error)
- func (_mock *Snapshot) EpochProtocolState() (protocol.EpochProtocolState, error)
- func (_mock *Snapshot) Epochs() protocol.EpochQuery
- func (_mock *Snapshot) Head() (*flow.Header, error)
- func (_mock *Snapshot) Identities(selector flow.IdentityFilter[flow.Identity]) (flow.IdentityList, error)
- func (_mock *Snapshot) Identity(nodeID flow.Identifier) (*flow.Identity, error)
- func (_mock *Snapshot) Params() protocol.GlobalParams
- func (_mock *Snapshot) ProtocolState() (protocol.KVStoreReader, error)
- func (_mock *Snapshot) QuorumCertificate() (*flow.QuorumCertificate, error)
- func (_mock *Snapshot) RandomSource() ([]byte, error)
- func (_mock *Snapshot) SealedResult() (*flow.ExecutionResult, *flow.Seal, error)
- func (_mock *Snapshot) SealingSegment() (*flow.SealingSegment, error)
- func (_mock *Snapshot) VersionBeacon() (*flow.SealedVersionBeacon, error)
- type SnapshotExecutionSubset
- type SnapshotExecutionSubsetProvider
- type SnapshotExecutionSubsetProvider_AtBlockID_Call
- func (_c *SnapshotExecutionSubsetProvider_AtBlockID_Call) Return(snapshotExecutionSubset protocol.SnapshotExecutionSubset) *SnapshotExecutionSubsetProvider_AtBlockID_Call
- func (_c *SnapshotExecutionSubsetProvider_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *SnapshotExecutionSubsetProvider_AtBlockID_Call
- func (_c *SnapshotExecutionSubsetProvider_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) protocol.SnapshotExecutionSubset) *SnapshotExecutionSubsetProvider_AtBlockID_Call
- type SnapshotExecutionSubsetProvider_Expecter
- type SnapshotExecutionSubset_Expecter
- type SnapshotExecutionSubset_RandomSource_Call
- func (_c *SnapshotExecutionSubset_RandomSource_Call) Return(bytes []byte, err error) *SnapshotExecutionSubset_RandomSource_Call
- func (_c *SnapshotExecutionSubset_RandomSource_Call) Run(run func()) *SnapshotExecutionSubset_RandomSource_Call
- func (_c *SnapshotExecutionSubset_RandomSource_Call) RunAndReturn(run func() ([]byte, error)) *SnapshotExecutionSubset_RandomSource_Call
- type SnapshotExecutionSubset_VersionBeacon_Call
- func (_c *SnapshotExecutionSubset_VersionBeacon_Call) Return(sealedVersionBeacon *flow.SealedVersionBeacon, err error) *SnapshotExecutionSubset_VersionBeacon_Call
- func (_c *SnapshotExecutionSubset_VersionBeacon_Call) Run(run func()) *SnapshotExecutionSubset_VersionBeacon_Call
- func (_c *SnapshotExecutionSubset_VersionBeacon_Call) RunAndReturn(run func() (*flow.SealedVersionBeacon, error)) *SnapshotExecutionSubset_VersionBeacon_Call
- type Snapshot_Commit_Call
- type Snapshot_Descendants_Call
- func (_c *Snapshot_Descendants_Call) Return(identifiers []flow.Identifier, err error) *Snapshot_Descendants_Call
- func (_c *Snapshot_Descendants_Call) Run(run func()) *Snapshot_Descendants_Call
- func (_c *Snapshot_Descendants_Call) RunAndReturn(run func() ([]flow.Identifier, error)) *Snapshot_Descendants_Call
- type Snapshot_EpochPhase_Call
- type Snapshot_EpochProtocolState_Call
- func (_c *Snapshot_EpochProtocolState_Call) Return(epochProtocolState protocol.EpochProtocolState, err error) *Snapshot_EpochProtocolState_Call
- func (_c *Snapshot_EpochProtocolState_Call) Run(run func()) *Snapshot_EpochProtocolState_Call
- func (_c *Snapshot_EpochProtocolState_Call) RunAndReturn(run func() (protocol.EpochProtocolState, error)) *Snapshot_EpochProtocolState_Call
- type Snapshot_Epochs_Call
- type Snapshot_Expecter
- func (_e *Snapshot_Expecter) Commit() *Snapshot_Commit_Call
- func (_e *Snapshot_Expecter) Descendants() *Snapshot_Descendants_Call
- func (_e *Snapshot_Expecter) EpochPhase() *Snapshot_EpochPhase_Call
- func (_e *Snapshot_Expecter) EpochProtocolState() *Snapshot_EpochProtocolState_Call
- func (_e *Snapshot_Expecter) Epochs() *Snapshot_Epochs_Call
- func (_e *Snapshot_Expecter) Head() *Snapshot_Head_Call
- func (_e *Snapshot_Expecter) Identities(selector interface{}) *Snapshot_Identities_Call
- func (_e *Snapshot_Expecter) Identity(nodeID interface{}) *Snapshot_Identity_Call
- func (_e *Snapshot_Expecter) Params() *Snapshot_Params_Call
- func (_e *Snapshot_Expecter) ProtocolState() *Snapshot_ProtocolState_Call
- func (_e *Snapshot_Expecter) QuorumCertificate() *Snapshot_QuorumCertificate_Call
- func (_e *Snapshot_Expecter) RandomSource() *Snapshot_RandomSource_Call
- func (_e *Snapshot_Expecter) SealedResult() *Snapshot_SealedResult_Call
- func (_e *Snapshot_Expecter) SealingSegment() *Snapshot_SealingSegment_Call
- func (_e *Snapshot_Expecter) VersionBeacon() *Snapshot_VersionBeacon_Call
- type Snapshot_Head_Call
- type Snapshot_Identities_Call
- func (_c *Snapshot_Identities_Call) Return(v flow.IdentityList, err error) *Snapshot_Identities_Call
- func (_c *Snapshot_Identities_Call) Run(run func(selector flow.IdentityFilter[flow.Identity])) *Snapshot_Identities_Call
- func (_c *Snapshot_Identities_Call) RunAndReturn(...) *Snapshot_Identities_Call
- type Snapshot_Identity_Call
- func (_c *Snapshot_Identity_Call) Return(identity *flow.Identity, err error) *Snapshot_Identity_Call
- func (_c *Snapshot_Identity_Call) Run(run func(nodeID flow.Identifier)) *Snapshot_Identity_Call
- func (_c *Snapshot_Identity_Call) RunAndReturn(run func(nodeID flow.Identifier) (*flow.Identity, error)) *Snapshot_Identity_Call
- type Snapshot_Params_Call
- type Snapshot_ProtocolState_Call
- func (_c *Snapshot_ProtocolState_Call) Return(kVStoreReader protocol.KVStoreReader, err error) *Snapshot_ProtocolState_Call
- func (_c *Snapshot_ProtocolState_Call) Run(run func()) *Snapshot_ProtocolState_Call
- func (_c *Snapshot_ProtocolState_Call) RunAndReturn(run func() (protocol.KVStoreReader, error)) *Snapshot_ProtocolState_Call
- type Snapshot_QuorumCertificate_Call
- func (_c *Snapshot_QuorumCertificate_Call) Return(quorumCertificate *flow.QuorumCertificate, err error) *Snapshot_QuorumCertificate_Call
- func (_c *Snapshot_QuorumCertificate_Call) Run(run func()) *Snapshot_QuorumCertificate_Call
- func (_c *Snapshot_QuorumCertificate_Call) RunAndReturn(run func() (*flow.QuorumCertificate, error)) *Snapshot_QuorumCertificate_Call
- type Snapshot_RandomSource_Call
- type Snapshot_SealedResult_Call
- func (_c *Snapshot_SealedResult_Call) Return(executionResult *flow.ExecutionResult, seal *flow.Seal, err error) *Snapshot_SealedResult_Call
- func (_c *Snapshot_SealedResult_Call) Run(run func()) *Snapshot_SealedResult_Call
- func (_c *Snapshot_SealedResult_Call) RunAndReturn(run func() (*flow.ExecutionResult, *flow.Seal, error)) *Snapshot_SealedResult_Call
- type Snapshot_SealingSegment_Call
- func (_c *Snapshot_SealingSegment_Call) Return(sealingSegment *flow.SealingSegment, err error) *Snapshot_SealingSegment_Call
- func (_c *Snapshot_SealingSegment_Call) Run(run func()) *Snapshot_SealingSegment_Call
- func (_c *Snapshot_SealingSegment_Call) RunAndReturn(run func() (*flow.SealingSegment, error)) *Snapshot_SealingSegment_Call
- type Snapshot_VersionBeacon_Call
- func (_c *Snapshot_VersionBeacon_Call) Return(sealedVersionBeacon *flow.SealedVersionBeacon, err error) *Snapshot_VersionBeacon_Call
- func (_c *Snapshot_VersionBeacon_Call) Run(run func()) *Snapshot_VersionBeacon_Call
- func (_c *Snapshot_VersionBeacon_Call) RunAndReturn(run func() (*flow.SealedVersionBeacon, error)) *Snapshot_VersionBeacon_Call
- type State
- func (_mock *State) AtBlockID(blockID flow.Identifier) protocol.Snapshot
- func (_mock *State) AtHeight(height uint64) protocol.Snapshot
- func (_m *State) EXPECT() *State_Expecter
- func (_mock *State) Final() protocol.Snapshot
- func (_mock *State) Params() protocol.Params
- func (_mock *State) Sealed() protocol.Snapshot
- type State_AtBlockID_Call
- func (_c *State_AtBlockID_Call) Return(snapshot protocol.Snapshot) *State_AtBlockID_Call
- func (_c *State_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *State_AtBlockID_Call
- func (_c *State_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) protocol.Snapshot) *State_AtBlockID_Call
- type State_AtHeight_Call
- type State_Expecter
- func (_e *State_Expecter) AtBlockID(blockID interface{}) *State_AtBlockID_Call
- func (_e *State_Expecter) AtHeight(height interface{}) *State_AtHeight_Call
- func (_e *State_Expecter) Final() *State_Final_Call
- func (_e *State_Expecter) Params() *State_Params_Call
- func (_e *State_Expecter) Sealed() *State_Sealed_Call
- type State_Final_Call
- type State_Params_Call
- type State_Sealed_Call
- type TentativeEpoch
- type TentativeEpoch_Clustering_Call
- func (_c *TentativeEpoch_Clustering_Call) Return(clusterList flow.ClusterList, err error) *TentativeEpoch_Clustering_Call
- func (_c *TentativeEpoch_Clustering_Call) Run(run func()) *TentativeEpoch_Clustering_Call
- func (_c *TentativeEpoch_Clustering_Call) RunAndReturn(run func() (flow.ClusterList, error)) *TentativeEpoch_Clustering_Call
- type TentativeEpoch_Counter_Call
- type TentativeEpoch_Expecter
- type TentativeEpoch_InitialIdentities_Call
- func (_c *TentativeEpoch_InitialIdentities_Call) Return(v flow.IdentitySkeletonList) *TentativeEpoch_InitialIdentities_Call
- func (_c *TentativeEpoch_InitialIdentities_Call) Run(run func()) *TentativeEpoch_InitialIdentities_Call
- func (_c *TentativeEpoch_InitialIdentities_Call) RunAndReturn(run func() flow.IdentitySkeletonList) *TentativeEpoch_InitialIdentities_Call
- type VersionedEncodable
- type VersionedEncodable_Expecter
- type VersionedEncodable_VersionedEncode_Call
- func (_c *VersionedEncodable_VersionedEncode_Call) Return(v uint64, bytes []byte, err error) *VersionedEncodable_VersionedEncode_Call
- func (_c *VersionedEncodable_VersionedEncode_Call) Run(run func()) *VersionedEncodable_VersionedEncode_Call
- func (_c *VersionedEncodable_VersionedEncode_Call) RunAndReturn(run func() (uint64, []byte, error)) *VersionedEncodable_VersionedEncode_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockTimer ¶ added in v0.20.0
BlockTimer is an autogenerated mock type for the BlockTimer type
func NewBlockTimer ¶ added in v0.26.1
func NewBlockTimer(t interface {
mock.TestingT
Cleanup(func())
}) *BlockTimer
NewBlockTimer creates a new instance of BlockTimer. 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 (*BlockTimer) Build ¶ added in v0.20.0
func (_mock *BlockTimer) Build(parentTimestamp uint64) uint64
Build provides a mock function for the type BlockTimer
func (*BlockTimer) EXPECT ¶ added in v0.46.0
func (_m *BlockTimer) EXPECT() *BlockTimer_Expecter
type BlockTimer_Build_Call ¶ added in v0.46.0
BlockTimer_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
func (*BlockTimer_Build_Call) Return ¶ added in v0.46.0
func (_c *BlockTimer_Build_Call) Return(v uint64) *BlockTimer_Build_Call
func (*BlockTimer_Build_Call) Run ¶ added in v0.46.0
func (_c *BlockTimer_Build_Call) Run(run func(parentTimestamp uint64)) *BlockTimer_Build_Call
func (*BlockTimer_Build_Call) RunAndReturn ¶ added in v0.46.0
func (_c *BlockTimer_Build_Call) RunAndReturn(run func(parentTimestamp uint64) uint64) *BlockTimer_Build_Call
type BlockTimer_Expecter ¶ added in v0.46.0
type BlockTimer_Expecter struct {
// contains filtered or unexported fields
}
func (*BlockTimer_Expecter) Build ¶ added in v0.46.0
func (_e *BlockTimer_Expecter) Build(parentTimestamp interface{}) *BlockTimer_Build_Call
Build is a helper method to define mock.On call
- parentTimestamp uint64
func (*BlockTimer_Expecter) Validate ¶ added in v0.46.0
func (_e *BlockTimer_Expecter) Validate(parentTimestamp interface{}, currentTimestamp interface{}) *BlockTimer_Validate_Call
Validate is a helper method to define mock.On call
- parentTimestamp uint64
- currentTimestamp uint64
type BlockTimer_Validate_Call ¶ added in v0.46.0
BlockTimer_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*BlockTimer_Validate_Call) Return ¶ added in v0.46.0
func (_c *BlockTimer_Validate_Call) Return(err error) *BlockTimer_Validate_Call
func (*BlockTimer_Validate_Call) Run ¶ added in v0.46.0
func (_c *BlockTimer_Validate_Call) Run(run func(parentTimestamp uint64, currentTimestamp uint64)) *BlockTimer_Validate_Call
func (*BlockTimer_Validate_Call) RunAndReturn ¶ added in v0.46.0
func (_c *BlockTimer_Validate_Call) RunAndReturn(run func(parentTimestamp uint64, currentTimestamp uint64) error) *BlockTimer_Validate_Call
type Cluster ¶
Cluster is an autogenerated mock type for the Cluster type
func NewCluster ¶ added in v0.26.1
NewCluster creates a new instance of Cluster. 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 (*Cluster) EXPECT ¶ added in v0.46.0
func (_m *Cluster) EXPECT() *Cluster_Expecter
func (*Cluster) EpochCounter ¶
EpochCounter provides a mock function for the type Cluster
func (*Cluster) Members ¶
func (_mock *Cluster) Members() flow.IdentitySkeletonList
Members provides a mock function for the type Cluster
func (*Cluster) RootQC ¶
func (_mock *Cluster) RootQC() *flow.QuorumCertificate
RootQC provides a mock function for the type Cluster
type Cluster_ChainID_Call ¶ added in v0.46.0
Cluster_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'
func (*Cluster_ChainID_Call) Return ¶ added in v0.46.0
func (_c *Cluster_ChainID_Call) Return(chainID flow.ChainID) *Cluster_ChainID_Call
func (*Cluster_ChainID_Call) Run ¶ added in v0.46.0
func (_c *Cluster_ChainID_Call) Run(run func()) *Cluster_ChainID_Call
func (*Cluster_ChainID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Cluster_ChainID_Call) RunAndReturn(run func() flow.ChainID) *Cluster_ChainID_Call
type Cluster_EpochCounter_Call ¶ added in v0.46.0
Cluster_EpochCounter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochCounter'
func (*Cluster_EpochCounter_Call) Return ¶ added in v0.46.0
func (_c *Cluster_EpochCounter_Call) Return(v uint64) *Cluster_EpochCounter_Call
func (*Cluster_EpochCounter_Call) Run ¶ added in v0.46.0
func (_c *Cluster_EpochCounter_Call) Run(run func()) *Cluster_EpochCounter_Call
func (*Cluster_EpochCounter_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Cluster_EpochCounter_Call) RunAndReturn(run func() uint64) *Cluster_EpochCounter_Call
type Cluster_Expecter ¶ added in v0.46.0
type Cluster_Expecter struct {
// contains filtered or unexported fields
}
func (*Cluster_Expecter) ChainID ¶ added in v0.46.0
func (_e *Cluster_Expecter) ChainID() *Cluster_ChainID_Call
ChainID is a helper method to define mock.On call
func (*Cluster_Expecter) EpochCounter ¶ added in v0.46.0
func (_e *Cluster_Expecter) EpochCounter() *Cluster_EpochCounter_Call
EpochCounter is a helper method to define mock.On call
func (*Cluster_Expecter) Index ¶ added in v0.46.0
func (_e *Cluster_Expecter) Index() *Cluster_Index_Call
Index is a helper method to define mock.On call
func (*Cluster_Expecter) Members ¶ added in v0.46.0
func (_e *Cluster_Expecter) Members() *Cluster_Members_Call
Members is a helper method to define mock.On call
func (*Cluster_Expecter) RootBlock ¶ added in v0.46.0
func (_e *Cluster_Expecter) RootBlock() *Cluster_RootBlock_Call
RootBlock is a helper method to define mock.On call
func (*Cluster_Expecter) RootQC ¶ added in v0.46.0
func (_e *Cluster_Expecter) RootQC() *Cluster_RootQC_Call
RootQC is a helper method to define mock.On call
type Cluster_Index_Call ¶ added in v0.46.0
Cluster_Index_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Index'
func (*Cluster_Index_Call) Return ¶ added in v0.46.0
func (_c *Cluster_Index_Call) Return(v uint) *Cluster_Index_Call
func (*Cluster_Index_Call) Run ¶ added in v0.46.0
func (_c *Cluster_Index_Call) Run(run func()) *Cluster_Index_Call
func (*Cluster_Index_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Cluster_Index_Call) RunAndReturn(run func() uint) *Cluster_Index_Call
type Cluster_Members_Call ¶ added in v0.46.0
Cluster_Members_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Members'
func (*Cluster_Members_Call) Return ¶ added in v0.46.0
func (_c *Cluster_Members_Call) Return(v flow.IdentitySkeletonList) *Cluster_Members_Call
func (*Cluster_Members_Call) Run ¶ added in v0.46.0
func (_c *Cluster_Members_Call) Run(run func()) *Cluster_Members_Call
func (*Cluster_Members_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Cluster_Members_Call) RunAndReturn(run func() flow.IdentitySkeletonList) *Cluster_Members_Call
type Cluster_RootBlock_Call ¶ added in v0.46.0
Cluster_RootBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RootBlock'
func (*Cluster_RootBlock_Call) Return ¶ added in v0.46.0
func (_c *Cluster_RootBlock_Call) Return(v *cluster.Block) *Cluster_RootBlock_Call
func (*Cluster_RootBlock_Call) Run ¶ added in v0.46.0
func (_c *Cluster_RootBlock_Call) Run(run func()) *Cluster_RootBlock_Call
func (*Cluster_RootBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Cluster_RootBlock_Call) RunAndReturn(run func() *cluster.Block) *Cluster_RootBlock_Call
type Cluster_RootQC_Call ¶ added in v0.46.0
Cluster_RootQC_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RootQC'
func (*Cluster_RootQC_Call) Return ¶ added in v0.46.0
func (_c *Cluster_RootQC_Call) Return(quorumCertificate *flow.QuorumCertificate) *Cluster_RootQC_Call
func (*Cluster_RootQC_Call) Run ¶ added in v0.46.0
func (_c *Cluster_RootQC_Call) Run(run func()) *Cluster_RootQC_Call
func (*Cluster_RootQC_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Cluster_RootQC_Call) RunAndReturn(run func() *flow.QuorumCertificate) *Cluster_RootQC_Call
type CommittedEpoch ¶ added in v0.39.2
CommittedEpoch is an autogenerated mock type for the CommittedEpoch type
func NewCommittedEpoch ¶ added in v0.39.2
func NewCommittedEpoch(t interface {
mock.TestingT
Cleanup(func())
}) *CommittedEpoch
NewCommittedEpoch creates a new instance of CommittedEpoch. 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 (*CommittedEpoch) Cluster ¶ added in v0.39.2
func (_mock *CommittedEpoch) Cluster(index uint) (protocol.Cluster, error)
Cluster provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) ClusterByChainID ¶ added in v0.39.2
ClusterByChainID provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) Clustering ¶ added in v0.39.2
func (_mock *CommittedEpoch) Clustering() (flow.ClusterList, error)
Clustering provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) Counter ¶ added in v0.39.2
func (_mock *CommittedEpoch) Counter() uint64
Counter provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) DKG ¶ added in v0.39.2
func (_mock *CommittedEpoch) DKG() (protocol.DKG, error)
DKG provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) DKGPhase1FinalView ¶ added in v0.39.2
func (_mock *CommittedEpoch) DKGPhase1FinalView() uint64
DKGPhase1FinalView provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) DKGPhase2FinalView ¶ added in v0.39.2
func (_mock *CommittedEpoch) DKGPhase2FinalView() uint64
DKGPhase2FinalView provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) DKGPhase3FinalView ¶ added in v0.39.2
func (_mock *CommittedEpoch) DKGPhase3FinalView() uint64
DKGPhase3FinalView provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) EXPECT ¶ added in v0.46.0
func (_m *CommittedEpoch) EXPECT() *CommittedEpoch_Expecter
func (*CommittedEpoch) FinalHeight ¶ added in v0.39.2
func (_mock *CommittedEpoch) FinalHeight() (uint64, error)
FinalHeight provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) FinalView ¶ added in v0.39.2
func (_mock *CommittedEpoch) FinalView() uint64
FinalView provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) FirstHeight ¶ added in v0.39.2
func (_mock *CommittedEpoch) FirstHeight() (uint64, error)
FirstHeight provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) FirstView ¶ added in v0.39.2
func (_mock *CommittedEpoch) FirstView() uint64
FirstView provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) InitialIdentities ¶ added in v0.39.2
func (_mock *CommittedEpoch) InitialIdentities() flow.IdentitySkeletonList
InitialIdentities provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) RandomSource ¶ added in v0.39.2
func (_mock *CommittedEpoch) RandomSource() []byte
RandomSource provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) TargetDuration ¶ added in v0.39.2
func (_mock *CommittedEpoch) TargetDuration() uint64
TargetDuration provides a mock function for the type CommittedEpoch
func (*CommittedEpoch) TargetEndTime ¶ added in v0.39.2
func (_mock *CommittedEpoch) TargetEndTime() uint64
TargetEndTime provides a mock function for the type CommittedEpoch
type CommittedEpoch_ClusterByChainID_Call ¶ added in v0.46.0
CommittedEpoch_ClusterByChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterByChainID'
func (*CommittedEpoch_ClusterByChainID_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_ClusterByChainID_Call) Return(cluster protocol.Cluster, err error) *CommittedEpoch_ClusterByChainID_Call
func (*CommittedEpoch_ClusterByChainID_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_ClusterByChainID_Call) Run(run func(chainID flow.ChainID)) *CommittedEpoch_ClusterByChainID_Call
func (*CommittedEpoch_ClusterByChainID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_ClusterByChainID_Call) RunAndReturn(run func(chainID flow.ChainID) (protocol.Cluster, error)) *CommittedEpoch_ClusterByChainID_Call
type CommittedEpoch_Cluster_Call ¶ added in v0.46.0
CommittedEpoch_Cluster_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cluster'
func (*CommittedEpoch_Cluster_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_Cluster_Call) Return(cluster protocol.Cluster, err error) *CommittedEpoch_Cluster_Call
func (*CommittedEpoch_Cluster_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_Cluster_Call) Run(run func(index uint)) *CommittedEpoch_Cluster_Call
func (*CommittedEpoch_Cluster_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_Cluster_Call) RunAndReturn(run func(index uint) (protocol.Cluster, error)) *CommittedEpoch_Cluster_Call
type CommittedEpoch_Clustering_Call ¶ added in v0.46.0
CommittedEpoch_Clustering_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clustering'
func (*CommittedEpoch_Clustering_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_Clustering_Call) Return(clusterList flow.ClusterList, err error) *CommittedEpoch_Clustering_Call
func (*CommittedEpoch_Clustering_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_Clustering_Call) Run(run func()) *CommittedEpoch_Clustering_Call
func (*CommittedEpoch_Clustering_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_Clustering_Call) RunAndReturn(run func() (flow.ClusterList, error)) *CommittedEpoch_Clustering_Call
type CommittedEpoch_Counter_Call ¶ added in v0.46.0
CommittedEpoch_Counter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Counter'
func (*CommittedEpoch_Counter_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_Counter_Call) Return(v uint64) *CommittedEpoch_Counter_Call
func (*CommittedEpoch_Counter_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_Counter_Call) Run(run func()) *CommittedEpoch_Counter_Call
func (*CommittedEpoch_Counter_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_Counter_Call) RunAndReturn(run func() uint64) *CommittedEpoch_Counter_Call
type CommittedEpoch_DKGPhase1FinalView_Call ¶ added in v0.46.0
CommittedEpoch_DKGPhase1FinalView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DKGPhase1FinalView'
func (*CommittedEpoch_DKGPhase1FinalView_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_DKGPhase1FinalView_Call) Return(v uint64) *CommittedEpoch_DKGPhase1FinalView_Call
func (*CommittedEpoch_DKGPhase1FinalView_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_DKGPhase1FinalView_Call) Run(run func()) *CommittedEpoch_DKGPhase1FinalView_Call
func (*CommittedEpoch_DKGPhase1FinalView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_DKGPhase1FinalView_Call) RunAndReturn(run func() uint64) *CommittedEpoch_DKGPhase1FinalView_Call
type CommittedEpoch_DKGPhase2FinalView_Call ¶ added in v0.46.0
CommittedEpoch_DKGPhase2FinalView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DKGPhase2FinalView'
func (*CommittedEpoch_DKGPhase2FinalView_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_DKGPhase2FinalView_Call) Return(v uint64) *CommittedEpoch_DKGPhase2FinalView_Call
func (*CommittedEpoch_DKGPhase2FinalView_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_DKGPhase2FinalView_Call) Run(run func()) *CommittedEpoch_DKGPhase2FinalView_Call
func (*CommittedEpoch_DKGPhase2FinalView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_DKGPhase2FinalView_Call) RunAndReturn(run func() uint64) *CommittedEpoch_DKGPhase2FinalView_Call
type CommittedEpoch_DKGPhase3FinalView_Call ¶ added in v0.46.0
CommittedEpoch_DKGPhase3FinalView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DKGPhase3FinalView'
func (*CommittedEpoch_DKGPhase3FinalView_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_DKGPhase3FinalView_Call) Return(v uint64) *CommittedEpoch_DKGPhase3FinalView_Call
func (*CommittedEpoch_DKGPhase3FinalView_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_DKGPhase3FinalView_Call) Run(run func()) *CommittedEpoch_DKGPhase3FinalView_Call
func (*CommittedEpoch_DKGPhase3FinalView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_DKGPhase3FinalView_Call) RunAndReturn(run func() uint64) *CommittedEpoch_DKGPhase3FinalView_Call
type CommittedEpoch_DKG_Call ¶ added in v0.46.0
CommittedEpoch_DKG_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DKG'
func (*CommittedEpoch_DKG_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_DKG_Call) Return(dKG protocol.DKG, err error) *CommittedEpoch_DKG_Call
func (*CommittedEpoch_DKG_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_DKG_Call) Run(run func()) *CommittedEpoch_DKG_Call
func (*CommittedEpoch_DKG_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_DKG_Call) RunAndReturn(run func() (protocol.DKG, error)) *CommittedEpoch_DKG_Call
type CommittedEpoch_Expecter ¶ added in v0.46.0
type CommittedEpoch_Expecter struct {
// contains filtered or unexported fields
}
func (*CommittedEpoch_Expecter) Cluster ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) Cluster(index interface{}) *CommittedEpoch_Cluster_Call
Cluster is a helper method to define mock.On call
- index uint
func (*CommittedEpoch_Expecter) ClusterByChainID ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) ClusterByChainID(chainID interface{}) *CommittedEpoch_ClusterByChainID_Call
ClusterByChainID is a helper method to define mock.On call
- chainID flow.ChainID
func (*CommittedEpoch_Expecter) Clustering ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) Clustering() *CommittedEpoch_Clustering_Call
Clustering is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) Counter ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) Counter() *CommittedEpoch_Counter_Call
Counter is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) DKG ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) DKG() *CommittedEpoch_DKG_Call
DKG is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) DKGPhase1FinalView ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) DKGPhase1FinalView() *CommittedEpoch_DKGPhase1FinalView_Call
DKGPhase1FinalView is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) DKGPhase2FinalView ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) DKGPhase2FinalView() *CommittedEpoch_DKGPhase2FinalView_Call
DKGPhase2FinalView is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) DKGPhase3FinalView ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) DKGPhase3FinalView() *CommittedEpoch_DKGPhase3FinalView_Call
DKGPhase3FinalView is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) FinalHeight ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) FinalHeight() *CommittedEpoch_FinalHeight_Call
FinalHeight is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) FinalView ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) FinalView() *CommittedEpoch_FinalView_Call
FinalView is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) FirstHeight ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) FirstHeight() *CommittedEpoch_FirstHeight_Call
FirstHeight is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) FirstView ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) FirstView() *CommittedEpoch_FirstView_Call
FirstView is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) InitialIdentities ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) InitialIdentities() *CommittedEpoch_InitialIdentities_Call
InitialIdentities is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) RandomSource ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) RandomSource() *CommittedEpoch_RandomSource_Call
RandomSource is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) TargetDuration ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) TargetDuration() *CommittedEpoch_TargetDuration_Call
TargetDuration is a helper method to define mock.On call
func (*CommittedEpoch_Expecter) TargetEndTime ¶ added in v0.46.0
func (_e *CommittedEpoch_Expecter) TargetEndTime() *CommittedEpoch_TargetEndTime_Call
TargetEndTime is a helper method to define mock.On call
type CommittedEpoch_FinalHeight_Call ¶ added in v0.46.0
CommittedEpoch_FinalHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalHeight'
func (*CommittedEpoch_FinalHeight_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_FinalHeight_Call) Return(v uint64, err error) *CommittedEpoch_FinalHeight_Call
func (*CommittedEpoch_FinalHeight_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_FinalHeight_Call) Run(run func()) *CommittedEpoch_FinalHeight_Call
func (*CommittedEpoch_FinalHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_FinalHeight_Call) RunAndReturn(run func() (uint64, error)) *CommittedEpoch_FinalHeight_Call
type CommittedEpoch_FinalView_Call ¶ added in v0.46.0
CommittedEpoch_FinalView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalView'
func (*CommittedEpoch_FinalView_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_FinalView_Call) Return(v uint64) *CommittedEpoch_FinalView_Call
func (*CommittedEpoch_FinalView_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_FinalView_Call) Run(run func()) *CommittedEpoch_FinalView_Call
func (*CommittedEpoch_FinalView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_FinalView_Call) RunAndReturn(run func() uint64) *CommittedEpoch_FinalView_Call
type CommittedEpoch_FirstHeight_Call ¶ added in v0.46.0
CommittedEpoch_FirstHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FirstHeight'
func (*CommittedEpoch_FirstHeight_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_FirstHeight_Call) Return(v uint64, err error) *CommittedEpoch_FirstHeight_Call
func (*CommittedEpoch_FirstHeight_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_FirstHeight_Call) Run(run func()) *CommittedEpoch_FirstHeight_Call
func (*CommittedEpoch_FirstHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_FirstHeight_Call) RunAndReturn(run func() (uint64, error)) *CommittedEpoch_FirstHeight_Call
type CommittedEpoch_FirstView_Call ¶ added in v0.46.0
CommittedEpoch_FirstView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FirstView'
func (*CommittedEpoch_FirstView_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_FirstView_Call) Return(v uint64) *CommittedEpoch_FirstView_Call
func (*CommittedEpoch_FirstView_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_FirstView_Call) Run(run func()) *CommittedEpoch_FirstView_Call
func (*CommittedEpoch_FirstView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_FirstView_Call) RunAndReturn(run func() uint64) *CommittedEpoch_FirstView_Call
type CommittedEpoch_InitialIdentities_Call ¶ added in v0.46.0
CommittedEpoch_InitialIdentities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitialIdentities'
func (*CommittedEpoch_InitialIdentities_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_InitialIdentities_Call) Return(v flow.IdentitySkeletonList) *CommittedEpoch_InitialIdentities_Call
func (*CommittedEpoch_InitialIdentities_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_InitialIdentities_Call) Run(run func()) *CommittedEpoch_InitialIdentities_Call
func (*CommittedEpoch_InitialIdentities_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_InitialIdentities_Call) RunAndReturn(run func() flow.IdentitySkeletonList) *CommittedEpoch_InitialIdentities_Call
type CommittedEpoch_RandomSource_Call ¶ added in v0.46.0
CommittedEpoch_RandomSource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RandomSource'
func (*CommittedEpoch_RandomSource_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_RandomSource_Call) Return(bytes []byte) *CommittedEpoch_RandomSource_Call
func (*CommittedEpoch_RandomSource_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_RandomSource_Call) Run(run func()) *CommittedEpoch_RandomSource_Call
func (*CommittedEpoch_RandomSource_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_RandomSource_Call) RunAndReturn(run func() []byte) *CommittedEpoch_RandomSource_Call
type CommittedEpoch_TargetDuration_Call ¶ added in v0.46.0
CommittedEpoch_TargetDuration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TargetDuration'
func (*CommittedEpoch_TargetDuration_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_TargetDuration_Call) Return(v uint64) *CommittedEpoch_TargetDuration_Call
func (*CommittedEpoch_TargetDuration_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_TargetDuration_Call) Run(run func()) *CommittedEpoch_TargetDuration_Call
func (*CommittedEpoch_TargetDuration_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_TargetDuration_Call) RunAndReturn(run func() uint64) *CommittedEpoch_TargetDuration_Call
type CommittedEpoch_TargetEndTime_Call ¶ added in v0.46.0
CommittedEpoch_TargetEndTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TargetEndTime'
func (*CommittedEpoch_TargetEndTime_Call) Return ¶ added in v0.46.0
func (_c *CommittedEpoch_TargetEndTime_Call) Return(v uint64) *CommittedEpoch_TargetEndTime_Call
func (*CommittedEpoch_TargetEndTime_Call) Run ¶ added in v0.46.0
func (_c *CommittedEpoch_TargetEndTime_Call) Run(run func()) *CommittedEpoch_TargetEndTime_Call
func (*CommittedEpoch_TargetEndTime_Call) RunAndReturn ¶ added in v0.46.0
func (_c *CommittedEpoch_TargetEndTime_Call) RunAndReturn(run func() uint64) *CommittedEpoch_TargetEndTime_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) BlockFinalized ¶
BlockFinalized provides a mock function for the type Consumer
func (*Consumer) BlockProcessable ¶
func (_mock *Consumer) BlockProcessable(block *flow.Header, certifyingQC *flow.QuorumCertificate)
BlockProcessable provides a mock function for the type Consumer
func (*Consumer) EXPECT ¶ added in v0.46.0
func (_m *Consumer) EXPECT() *Consumer_Expecter
func (*Consumer) EpochCommittedPhaseStarted ¶
EpochCommittedPhaseStarted provides a mock function for the type Consumer
func (*Consumer) EpochExtended ¶ added in v0.37.1
func (_mock *Consumer) EpochExtended(epochCounter uint64, header *flow.Header, extension flow.EpochExtension)
EpochExtended provides a mock function for the type Consumer
func (*Consumer) EpochFallbackModeExited ¶ added in v0.37.1
EpochFallbackModeExited provides a mock function for the type Consumer
func (*Consumer) EpochFallbackModeTriggered ¶ added in v0.37.1
EpochFallbackModeTriggered provides a mock function for the type Consumer
func (*Consumer) EpochSetupPhaseStarted ¶
EpochSetupPhaseStarted provides a mock function for the type Consumer
type Consumer_BlockFinalized_Call ¶ added in v0.46.0
Consumer_BlockFinalized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockFinalized'
func (*Consumer_BlockFinalized_Call) Return ¶ added in v0.46.0
func (_c *Consumer_BlockFinalized_Call) Return() *Consumer_BlockFinalized_Call
func (*Consumer_BlockFinalized_Call) Run ¶ added in v0.46.0
func (_c *Consumer_BlockFinalized_Call) Run(run func(block *flow.Header)) *Consumer_BlockFinalized_Call
func (*Consumer_BlockFinalized_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_BlockFinalized_Call) RunAndReturn(run func(block *flow.Header)) *Consumer_BlockFinalized_Call
type Consumer_BlockProcessable_Call ¶ added in v0.46.0
Consumer_BlockProcessable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockProcessable'
func (*Consumer_BlockProcessable_Call) Return ¶ added in v0.46.0
func (_c *Consumer_BlockProcessable_Call) Return() *Consumer_BlockProcessable_Call
func (*Consumer_BlockProcessable_Call) Run ¶ added in v0.46.0
func (_c *Consumer_BlockProcessable_Call) Run(run func(block *flow.Header, certifyingQC *flow.QuorumCertificate)) *Consumer_BlockProcessable_Call
func (*Consumer_BlockProcessable_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_BlockProcessable_Call) RunAndReturn(run func(block *flow.Header, certifyingQC *flow.QuorumCertificate)) *Consumer_BlockProcessable_Call
type Consumer_EpochCommittedPhaseStarted_Call ¶ added in v0.46.0
Consumer_EpochCommittedPhaseStarted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochCommittedPhaseStarted'
func (*Consumer_EpochCommittedPhaseStarted_Call) Return ¶ added in v0.46.0
func (_c *Consumer_EpochCommittedPhaseStarted_Call) Return() *Consumer_EpochCommittedPhaseStarted_Call
func (*Consumer_EpochCommittedPhaseStarted_Call) Run ¶ added in v0.46.0
func (_c *Consumer_EpochCommittedPhaseStarted_Call) Run(run func(currentEpochCounter uint64, first *flow.Header)) *Consumer_EpochCommittedPhaseStarted_Call
func (*Consumer_EpochCommittedPhaseStarted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_EpochCommittedPhaseStarted_Call) RunAndReturn(run func(currentEpochCounter uint64, first *flow.Header)) *Consumer_EpochCommittedPhaseStarted_Call
type Consumer_EpochExtended_Call ¶ added in v0.46.0
Consumer_EpochExtended_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochExtended'
func (*Consumer_EpochExtended_Call) Return ¶ added in v0.46.0
func (_c *Consumer_EpochExtended_Call) Return() *Consumer_EpochExtended_Call
func (*Consumer_EpochExtended_Call) Run ¶ added in v0.46.0
func (_c *Consumer_EpochExtended_Call) Run(run func(epochCounter uint64, header *flow.Header, extension flow.EpochExtension)) *Consumer_EpochExtended_Call
func (*Consumer_EpochExtended_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_EpochExtended_Call) RunAndReturn(run func(epochCounter uint64, header *flow.Header, extension flow.EpochExtension)) *Consumer_EpochExtended_Call
type Consumer_EpochFallbackModeExited_Call ¶ added in v0.46.0
Consumer_EpochFallbackModeExited_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochFallbackModeExited'
func (*Consumer_EpochFallbackModeExited_Call) Return ¶ added in v0.46.0
func (_c *Consumer_EpochFallbackModeExited_Call) Return() *Consumer_EpochFallbackModeExited_Call
func (*Consumer_EpochFallbackModeExited_Call) Run ¶ added in v0.46.0
func (_c *Consumer_EpochFallbackModeExited_Call) Run(run func(epochCounter uint64, header *flow.Header)) *Consumer_EpochFallbackModeExited_Call
func (*Consumer_EpochFallbackModeExited_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_EpochFallbackModeExited_Call) RunAndReturn(run func(epochCounter uint64, header *flow.Header)) *Consumer_EpochFallbackModeExited_Call
type Consumer_EpochFallbackModeTriggered_Call ¶ added in v0.46.0
Consumer_EpochFallbackModeTriggered_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochFallbackModeTriggered'
func (*Consumer_EpochFallbackModeTriggered_Call) Return ¶ added in v0.46.0
func (_c *Consumer_EpochFallbackModeTriggered_Call) Return() *Consumer_EpochFallbackModeTriggered_Call
func (*Consumer_EpochFallbackModeTriggered_Call) Run ¶ added in v0.46.0
func (_c *Consumer_EpochFallbackModeTriggered_Call) Run(run func(epochCounter uint64, header *flow.Header)) *Consumer_EpochFallbackModeTriggered_Call
func (*Consumer_EpochFallbackModeTriggered_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_EpochFallbackModeTriggered_Call) RunAndReturn(run func(epochCounter uint64, header *flow.Header)) *Consumer_EpochFallbackModeTriggered_Call
type Consumer_EpochSetupPhaseStarted_Call ¶ added in v0.46.0
Consumer_EpochSetupPhaseStarted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochSetupPhaseStarted'
func (*Consumer_EpochSetupPhaseStarted_Call) Return ¶ added in v0.46.0
func (_c *Consumer_EpochSetupPhaseStarted_Call) Return() *Consumer_EpochSetupPhaseStarted_Call
func (*Consumer_EpochSetupPhaseStarted_Call) Run ¶ added in v0.46.0
func (_c *Consumer_EpochSetupPhaseStarted_Call) Run(run func(currentEpochCounter uint64, first *flow.Header)) *Consumer_EpochSetupPhaseStarted_Call
func (*Consumer_EpochSetupPhaseStarted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_EpochSetupPhaseStarted_Call) RunAndReturn(run func(currentEpochCounter uint64, first *flow.Header)) *Consumer_EpochSetupPhaseStarted_Call
type Consumer_EpochTransition_Call ¶ added in v0.46.0
Consumer_EpochTransition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochTransition'
func (*Consumer_EpochTransition_Call) Return ¶ added in v0.46.0
func (_c *Consumer_EpochTransition_Call) Return() *Consumer_EpochTransition_Call
func (*Consumer_EpochTransition_Call) Run ¶ added in v0.46.0
func (_c *Consumer_EpochTransition_Call) Run(run func(newEpochCounter uint64, first *flow.Header)) *Consumer_EpochTransition_Call
func (*Consumer_EpochTransition_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Consumer_EpochTransition_Call) RunAndReturn(run func(newEpochCounter uint64, first *flow.Header)) *Consumer_EpochTransition_Call
type Consumer_Expecter ¶ added in v0.46.0
type Consumer_Expecter struct {
// contains filtered or unexported fields
}
func (*Consumer_Expecter) BlockFinalized ¶ added in v0.46.0
func (_e *Consumer_Expecter) BlockFinalized(block interface{}) *Consumer_BlockFinalized_Call
BlockFinalized is a helper method to define mock.On call
- block *flow.Header
func (*Consumer_Expecter) BlockProcessable ¶ added in v0.46.0
func (_e *Consumer_Expecter) BlockProcessable(block interface{}, certifyingQC interface{}) *Consumer_BlockProcessable_Call
BlockProcessable is a helper method to define mock.On call
- block *flow.Header
- certifyingQC *flow.QuorumCertificate
func (*Consumer_Expecter) EpochCommittedPhaseStarted ¶ added in v0.46.0
func (_e *Consumer_Expecter) EpochCommittedPhaseStarted(currentEpochCounter interface{}, first interface{}) *Consumer_EpochCommittedPhaseStarted_Call
EpochCommittedPhaseStarted is a helper method to define mock.On call
- currentEpochCounter uint64
- first *flow.Header
func (*Consumer_Expecter) EpochExtended ¶ added in v0.46.0
func (_e *Consumer_Expecter) EpochExtended(epochCounter interface{}, header interface{}, extension interface{}) *Consumer_EpochExtended_Call
EpochExtended is a helper method to define mock.On call
- epochCounter uint64
- header *flow.Header
- extension flow.EpochExtension
func (*Consumer_Expecter) EpochFallbackModeExited ¶ added in v0.46.0
func (_e *Consumer_Expecter) EpochFallbackModeExited(epochCounter interface{}, header interface{}) *Consumer_EpochFallbackModeExited_Call
EpochFallbackModeExited is a helper method to define mock.On call
- epochCounter uint64
- header *flow.Header
func (*Consumer_Expecter) EpochFallbackModeTriggered ¶ added in v0.46.0
func (_e *Consumer_Expecter) EpochFallbackModeTriggered(epochCounter interface{}, header interface{}) *Consumer_EpochFallbackModeTriggered_Call
EpochFallbackModeTriggered is a helper method to define mock.On call
- epochCounter uint64
- header *flow.Header
func (*Consumer_Expecter) EpochSetupPhaseStarted ¶ added in v0.46.0
func (_e *Consumer_Expecter) EpochSetupPhaseStarted(currentEpochCounter interface{}, first interface{}) *Consumer_EpochSetupPhaseStarted_Call
EpochSetupPhaseStarted is a helper method to define mock.On call
- currentEpochCounter uint64
- first *flow.Header
func (*Consumer_Expecter) EpochTransition ¶ added in v0.46.0
func (_e *Consumer_Expecter) EpochTransition(newEpochCounter interface{}, first interface{}) *Consumer_EpochTransition_Call
EpochTransition is a helper method to define mock.On call
- newEpochCounter uint64
- first *flow.Header
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 EpochProtocolState ¶ added in v0.33.30
EpochProtocolState is an autogenerated mock type for the EpochProtocolState type
func NewEpochProtocolState ¶ added in v0.33.30
func NewEpochProtocolState(t interface {
mock.TestingT
Cleanup(func())
}) *EpochProtocolState
NewEpochProtocolState creates a new instance of EpochProtocolState. 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 (*EpochProtocolState) Clustering ¶ added in v0.33.30
func (_mock *EpochProtocolState) Clustering() (flow.ClusterList, error)
Clustering provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) DKG ¶ added in v0.33.30
func (_mock *EpochProtocolState) DKG() (protocol.DKG, error)
DKG provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) EXPECT ¶ added in v0.46.0
func (_m *EpochProtocolState) EXPECT() *EpochProtocolState_Expecter
func (*EpochProtocolState) Entry ¶ added in v0.33.30
func (_mock *EpochProtocolState) Entry() *flow.RichEpochStateEntry
Entry provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) Epoch ¶ added in v0.33.30
func (_mock *EpochProtocolState) Epoch() uint64
Epoch provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) EpochCommit ¶ added in v0.33.30
func (_mock *EpochProtocolState) EpochCommit() *flow.EpochCommit
EpochCommit provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) EpochExtensions ¶ added in v0.37.1
func (_mock *EpochProtocolState) EpochExtensions() []flow.EpochExtension
EpochExtensions provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) EpochFallbackTriggered ¶ added in v0.37.1
func (_mock *EpochProtocolState) EpochFallbackTriggered() bool
EpochFallbackTriggered provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) EpochPhase ¶ added in v0.33.30
func (_mock *EpochProtocolState) EpochPhase() flow.EpochPhase
EpochPhase provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) EpochSetup ¶ added in v0.33.30
func (_mock *EpochProtocolState) EpochSetup() *flow.EpochSetup
EpochSetup provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) GlobalParams ¶ added in v0.33.30
func (_mock *EpochProtocolState) GlobalParams() protocol.GlobalParams
GlobalParams provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) Identities ¶ added in v0.33.30
func (_mock *EpochProtocolState) Identities() flow.IdentityList
Identities provides a mock function for the type EpochProtocolState
func (*EpochProtocolState) PreviousEpochExists ¶ added in v0.33.30
func (_mock *EpochProtocolState) PreviousEpochExists() bool
PreviousEpochExists provides a mock function for the type EpochProtocolState
type EpochProtocolState_Clustering_Call ¶ added in v0.46.0
EpochProtocolState_Clustering_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clustering'
func (*EpochProtocolState_Clustering_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_Clustering_Call) Return(clusterList flow.ClusterList, err error) *EpochProtocolState_Clustering_Call
func (*EpochProtocolState_Clustering_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_Clustering_Call) Run(run func()) *EpochProtocolState_Clustering_Call
func (*EpochProtocolState_Clustering_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_Clustering_Call) RunAndReturn(run func() (flow.ClusterList, error)) *EpochProtocolState_Clustering_Call
type EpochProtocolState_DKG_Call ¶ added in v0.46.0
EpochProtocolState_DKG_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DKG'
func (*EpochProtocolState_DKG_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_DKG_Call) Return(dKG protocol.DKG, err error) *EpochProtocolState_DKG_Call
func (*EpochProtocolState_DKG_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_DKG_Call) Run(run func()) *EpochProtocolState_DKG_Call
func (*EpochProtocolState_DKG_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_DKG_Call) RunAndReturn(run func() (protocol.DKG, error)) *EpochProtocolState_DKG_Call
type EpochProtocolState_Entry_Call ¶ added in v0.46.0
EpochProtocolState_Entry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Entry'
func (*EpochProtocolState_Entry_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_Entry_Call) Return(richEpochStateEntry *flow.RichEpochStateEntry) *EpochProtocolState_Entry_Call
func (*EpochProtocolState_Entry_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_Entry_Call) Run(run func()) *EpochProtocolState_Entry_Call
func (*EpochProtocolState_Entry_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_Entry_Call) RunAndReturn(run func() *flow.RichEpochStateEntry) *EpochProtocolState_Entry_Call
type EpochProtocolState_EpochCommit_Call ¶ added in v0.46.0
EpochProtocolState_EpochCommit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochCommit'
func (*EpochProtocolState_EpochCommit_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochCommit_Call) Return(epochCommit *flow.EpochCommit) *EpochProtocolState_EpochCommit_Call
func (*EpochProtocolState_EpochCommit_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochCommit_Call) Run(run func()) *EpochProtocolState_EpochCommit_Call
func (*EpochProtocolState_EpochCommit_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochCommit_Call) RunAndReturn(run func() *flow.EpochCommit) *EpochProtocolState_EpochCommit_Call
type EpochProtocolState_EpochExtensions_Call ¶ added in v0.46.0
EpochProtocolState_EpochExtensions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochExtensions'
func (*EpochProtocolState_EpochExtensions_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochExtensions_Call) Return(epochExtensions []flow.EpochExtension) *EpochProtocolState_EpochExtensions_Call
func (*EpochProtocolState_EpochExtensions_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochExtensions_Call) Run(run func()) *EpochProtocolState_EpochExtensions_Call
func (*EpochProtocolState_EpochExtensions_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochExtensions_Call) RunAndReturn(run func() []flow.EpochExtension) *EpochProtocolState_EpochExtensions_Call
type EpochProtocolState_EpochFallbackTriggered_Call ¶ added in v0.46.0
EpochProtocolState_EpochFallbackTriggered_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochFallbackTriggered'
func (*EpochProtocolState_EpochFallbackTriggered_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochFallbackTriggered_Call) Return(b bool) *EpochProtocolState_EpochFallbackTriggered_Call
func (*EpochProtocolState_EpochFallbackTriggered_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochFallbackTriggered_Call) Run(run func()) *EpochProtocolState_EpochFallbackTriggered_Call
func (*EpochProtocolState_EpochFallbackTriggered_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochFallbackTriggered_Call) RunAndReturn(run func() bool) *EpochProtocolState_EpochFallbackTriggered_Call
type EpochProtocolState_EpochPhase_Call ¶ added in v0.46.0
EpochProtocolState_EpochPhase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochPhase'
func (*EpochProtocolState_EpochPhase_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochPhase_Call) Return(epochPhase flow.EpochPhase) *EpochProtocolState_EpochPhase_Call
func (*EpochProtocolState_EpochPhase_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochPhase_Call) Run(run func()) *EpochProtocolState_EpochPhase_Call
func (*EpochProtocolState_EpochPhase_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochPhase_Call) RunAndReturn(run func() flow.EpochPhase) *EpochProtocolState_EpochPhase_Call
type EpochProtocolState_EpochSetup_Call ¶ added in v0.46.0
EpochProtocolState_EpochSetup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochSetup'
func (*EpochProtocolState_EpochSetup_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochSetup_Call) Return(epochSetup *flow.EpochSetup) *EpochProtocolState_EpochSetup_Call
func (*EpochProtocolState_EpochSetup_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochSetup_Call) Run(run func()) *EpochProtocolState_EpochSetup_Call
func (*EpochProtocolState_EpochSetup_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_EpochSetup_Call) RunAndReturn(run func() *flow.EpochSetup) *EpochProtocolState_EpochSetup_Call
type EpochProtocolState_Epoch_Call ¶ added in v0.46.0
EpochProtocolState_Epoch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Epoch'
func (*EpochProtocolState_Epoch_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_Epoch_Call) Return(v uint64) *EpochProtocolState_Epoch_Call
func (*EpochProtocolState_Epoch_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_Epoch_Call) Run(run func()) *EpochProtocolState_Epoch_Call
func (*EpochProtocolState_Epoch_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_Epoch_Call) RunAndReturn(run func() uint64) *EpochProtocolState_Epoch_Call
type EpochProtocolState_Expecter ¶ added in v0.46.0
type EpochProtocolState_Expecter struct {
// contains filtered or unexported fields
}
func (*EpochProtocolState_Expecter) Clustering ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) Clustering() *EpochProtocolState_Clustering_Call
Clustering is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) DKG ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) DKG() *EpochProtocolState_DKG_Call
DKG is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) Entry ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) Entry() *EpochProtocolState_Entry_Call
Entry is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) Epoch ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) Epoch() *EpochProtocolState_Epoch_Call
Epoch is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) EpochCommit ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) EpochCommit() *EpochProtocolState_EpochCommit_Call
EpochCommit is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) EpochExtensions ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) EpochExtensions() *EpochProtocolState_EpochExtensions_Call
EpochExtensions is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) EpochFallbackTriggered ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) EpochFallbackTriggered() *EpochProtocolState_EpochFallbackTriggered_Call
EpochFallbackTriggered is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) EpochPhase ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) EpochPhase() *EpochProtocolState_EpochPhase_Call
EpochPhase is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) EpochSetup ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) EpochSetup() *EpochProtocolState_EpochSetup_Call
EpochSetup is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) GlobalParams ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) GlobalParams() *EpochProtocolState_GlobalParams_Call
GlobalParams is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) Identities ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) Identities() *EpochProtocolState_Identities_Call
Identities is a helper method to define mock.On call
func (*EpochProtocolState_Expecter) PreviousEpochExists ¶ added in v0.46.0
func (_e *EpochProtocolState_Expecter) PreviousEpochExists() *EpochProtocolState_PreviousEpochExists_Call
PreviousEpochExists is a helper method to define mock.On call
type EpochProtocolState_GlobalParams_Call ¶ added in v0.46.0
EpochProtocolState_GlobalParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GlobalParams'
func (*EpochProtocolState_GlobalParams_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_GlobalParams_Call) Return(globalParams protocol.GlobalParams) *EpochProtocolState_GlobalParams_Call
func (*EpochProtocolState_GlobalParams_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_GlobalParams_Call) Run(run func()) *EpochProtocolState_GlobalParams_Call
func (*EpochProtocolState_GlobalParams_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_GlobalParams_Call) RunAndReturn(run func() protocol.GlobalParams) *EpochProtocolState_GlobalParams_Call
type EpochProtocolState_Identities_Call ¶ added in v0.46.0
EpochProtocolState_Identities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Identities'
func (*EpochProtocolState_Identities_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_Identities_Call) Return(v flow.IdentityList) *EpochProtocolState_Identities_Call
func (*EpochProtocolState_Identities_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_Identities_Call) Run(run func()) *EpochProtocolState_Identities_Call
func (*EpochProtocolState_Identities_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_Identities_Call) RunAndReturn(run func() flow.IdentityList) *EpochProtocolState_Identities_Call
type EpochProtocolState_PreviousEpochExists_Call ¶ added in v0.46.0
EpochProtocolState_PreviousEpochExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PreviousEpochExists'
func (*EpochProtocolState_PreviousEpochExists_Call) Return ¶ added in v0.46.0
func (_c *EpochProtocolState_PreviousEpochExists_Call) Return(b bool) *EpochProtocolState_PreviousEpochExists_Call
func (*EpochProtocolState_PreviousEpochExists_Call) Run ¶ added in v0.46.0
func (_c *EpochProtocolState_PreviousEpochExists_Call) Run(run func()) *EpochProtocolState_PreviousEpochExists_Call
func (*EpochProtocolState_PreviousEpochExists_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochProtocolState_PreviousEpochExists_Call) RunAndReturn(run func() bool) *EpochProtocolState_PreviousEpochExists_Call
type EpochQuery ¶
EpochQuery is an autogenerated mock type for the EpochQuery type
func NewEpochQuery ¶ added in v0.26.1
func NewEpochQuery(t interface {
mock.TestingT
Cleanup(func())
}) *EpochQuery
NewEpochQuery creates a new instance of EpochQuery. 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 (*EpochQuery) Current ¶
func (_mock *EpochQuery) Current() (protocol.CommittedEpoch, error)
Current provides a mock function for the type EpochQuery
func (*EpochQuery) EXPECT ¶ added in v0.46.0
func (_m *EpochQuery) EXPECT() *EpochQuery_Expecter
func (*EpochQuery) NextCommitted ¶ added in v0.39.2
func (_mock *EpochQuery) NextCommitted() (protocol.CommittedEpoch, error)
NextCommitted provides a mock function for the type EpochQuery
func (*EpochQuery) NextUnsafe ¶ added in v0.39.2
func (_mock *EpochQuery) NextUnsafe() (protocol.TentativeEpoch, error)
NextUnsafe provides a mock function for the type EpochQuery
func (*EpochQuery) Previous ¶ added in v0.13.0
func (_mock *EpochQuery) Previous() (protocol.CommittedEpoch, error)
Previous provides a mock function for the type EpochQuery
type EpochQuery_Current_Call ¶ added in v0.46.0
EpochQuery_Current_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Current'
func (*EpochQuery_Current_Call) Return ¶ added in v0.46.0
func (_c *EpochQuery_Current_Call) Return(committedEpoch protocol.CommittedEpoch, err error) *EpochQuery_Current_Call
func (*EpochQuery_Current_Call) Run ¶ added in v0.46.0
func (_c *EpochQuery_Current_Call) Run(run func()) *EpochQuery_Current_Call
func (*EpochQuery_Current_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochQuery_Current_Call) RunAndReturn(run func() (protocol.CommittedEpoch, error)) *EpochQuery_Current_Call
type EpochQuery_Expecter ¶ added in v0.46.0
type EpochQuery_Expecter struct {
// contains filtered or unexported fields
}
func (*EpochQuery_Expecter) Current ¶ added in v0.46.0
func (_e *EpochQuery_Expecter) Current() *EpochQuery_Current_Call
Current is a helper method to define mock.On call
func (*EpochQuery_Expecter) NextCommitted ¶ added in v0.46.0
func (_e *EpochQuery_Expecter) NextCommitted() *EpochQuery_NextCommitted_Call
NextCommitted is a helper method to define mock.On call
func (*EpochQuery_Expecter) NextUnsafe ¶ added in v0.46.0
func (_e *EpochQuery_Expecter) NextUnsafe() *EpochQuery_NextUnsafe_Call
NextUnsafe is a helper method to define mock.On call
func (*EpochQuery_Expecter) Previous ¶ added in v0.46.0
func (_e *EpochQuery_Expecter) Previous() *EpochQuery_Previous_Call
Previous is a helper method to define mock.On call
type EpochQuery_NextCommitted_Call ¶ added in v0.46.0
EpochQuery_NextCommitted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NextCommitted'
func (*EpochQuery_NextCommitted_Call) Return ¶ added in v0.46.0
func (_c *EpochQuery_NextCommitted_Call) Return(committedEpoch protocol.CommittedEpoch, err error) *EpochQuery_NextCommitted_Call
func (*EpochQuery_NextCommitted_Call) Run ¶ added in v0.46.0
func (_c *EpochQuery_NextCommitted_Call) Run(run func()) *EpochQuery_NextCommitted_Call
func (*EpochQuery_NextCommitted_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochQuery_NextCommitted_Call) RunAndReturn(run func() (protocol.CommittedEpoch, error)) *EpochQuery_NextCommitted_Call
type EpochQuery_NextUnsafe_Call ¶ added in v0.46.0
EpochQuery_NextUnsafe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NextUnsafe'
func (*EpochQuery_NextUnsafe_Call) Return ¶ added in v0.46.0
func (_c *EpochQuery_NextUnsafe_Call) Return(tentativeEpoch protocol.TentativeEpoch, err error) *EpochQuery_NextUnsafe_Call
func (*EpochQuery_NextUnsafe_Call) Run ¶ added in v0.46.0
func (_c *EpochQuery_NextUnsafe_Call) Run(run func()) *EpochQuery_NextUnsafe_Call
func (*EpochQuery_NextUnsafe_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochQuery_NextUnsafe_Call) RunAndReturn(run func() (protocol.TentativeEpoch, error)) *EpochQuery_NextUnsafe_Call
type EpochQuery_Previous_Call ¶ added in v0.46.0
EpochQuery_Previous_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Previous'
func (*EpochQuery_Previous_Call) Return ¶ added in v0.46.0
func (_c *EpochQuery_Previous_Call) Return(committedEpoch protocol.CommittedEpoch, err error) *EpochQuery_Previous_Call
func (*EpochQuery_Previous_Call) Run ¶ added in v0.46.0
func (_c *EpochQuery_Previous_Call) Run(run func()) *EpochQuery_Previous_Call
func (*EpochQuery_Previous_Call) RunAndReturn ¶ added in v0.46.0
func (_c *EpochQuery_Previous_Call) RunAndReturn(run func() (protocol.CommittedEpoch, error)) *EpochQuery_Previous_Call
type FollowerState ¶ added in v0.30.0
FollowerState is an autogenerated mock type for the FollowerState type
func NewFollowerState ¶ added in v0.30.0
func NewFollowerState(t interface {
mock.TestingT
Cleanup(func())
}) *FollowerState
NewFollowerState creates a new instance of FollowerState. 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 (*FollowerState) AtBlockID ¶ added in v0.30.0
func (_mock *FollowerState) AtBlockID(blockID flow.Identifier) protocol.Snapshot
AtBlockID provides a mock function for the type FollowerState
func (*FollowerState) AtHeight ¶ added in v0.30.0
func (_mock *FollowerState) AtHeight(height uint64) protocol.Snapshot
AtHeight provides a mock function for the type FollowerState
func (*FollowerState) EXPECT ¶ added in v0.46.0
func (_m *FollowerState) EXPECT() *FollowerState_Expecter
func (*FollowerState) ExtendCertified ¶ added in v0.30.0
func (_mock *FollowerState) ExtendCertified(ctx context.Context, certified *flow.CertifiedBlock) error
ExtendCertified provides a mock function for the type FollowerState
func (*FollowerState) Final ¶ added in v0.30.0
func (_mock *FollowerState) Final() protocol.Snapshot
Final provides a mock function for the type FollowerState
func (*FollowerState) Finalize ¶ added in v0.30.0
func (_mock *FollowerState) Finalize(ctx context.Context, blockID flow.Identifier) error
Finalize provides a mock function for the type FollowerState
func (*FollowerState) Params ¶ added in v0.30.0
func (_mock *FollowerState) Params() protocol.Params
Params provides a mock function for the type FollowerState
func (*FollowerState) Sealed ¶ added in v0.30.0
func (_mock *FollowerState) Sealed() protocol.Snapshot
Sealed provides a mock function for the type FollowerState
type FollowerState_AtBlockID_Call ¶ added in v0.46.0
FollowerState_AtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AtBlockID'
func (*FollowerState_AtBlockID_Call) Return ¶ added in v0.46.0
func (_c *FollowerState_AtBlockID_Call) Return(snapshot protocol.Snapshot) *FollowerState_AtBlockID_Call
func (*FollowerState_AtBlockID_Call) Run ¶ added in v0.46.0
func (_c *FollowerState_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *FollowerState_AtBlockID_Call
func (*FollowerState_AtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerState_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) protocol.Snapshot) *FollowerState_AtBlockID_Call
type FollowerState_AtHeight_Call ¶ added in v0.46.0
FollowerState_AtHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AtHeight'
func (*FollowerState_AtHeight_Call) Return ¶ added in v0.46.0
func (_c *FollowerState_AtHeight_Call) Return(snapshot protocol.Snapshot) *FollowerState_AtHeight_Call
func (*FollowerState_AtHeight_Call) Run ¶ added in v0.46.0
func (_c *FollowerState_AtHeight_Call) Run(run func(height uint64)) *FollowerState_AtHeight_Call
func (*FollowerState_AtHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerState_AtHeight_Call) RunAndReturn(run func(height uint64) protocol.Snapshot) *FollowerState_AtHeight_Call
type FollowerState_Expecter ¶ added in v0.46.0
type FollowerState_Expecter struct {
// contains filtered or unexported fields
}
func (*FollowerState_Expecter) AtBlockID ¶ added in v0.46.0
func (_e *FollowerState_Expecter) AtBlockID(blockID interface{}) *FollowerState_AtBlockID_Call
AtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
func (*FollowerState_Expecter) AtHeight ¶ added in v0.46.0
func (_e *FollowerState_Expecter) AtHeight(height interface{}) *FollowerState_AtHeight_Call
AtHeight is a helper method to define mock.On call
- height uint64
func (*FollowerState_Expecter) ExtendCertified ¶ added in v0.46.0
func (_e *FollowerState_Expecter) ExtendCertified(ctx interface{}, certified interface{}) *FollowerState_ExtendCertified_Call
ExtendCertified is a helper method to define mock.On call
- ctx context.Context
- certified *flow.CertifiedBlock
func (*FollowerState_Expecter) Final ¶ added in v0.46.0
func (_e *FollowerState_Expecter) Final() *FollowerState_Final_Call
Final is a helper method to define mock.On call
func (*FollowerState_Expecter) Finalize ¶ added in v0.46.0
func (_e *FollowerState_Expecter) Finalize(ctx interface{}, blockID interface{}) *FollowerState_Finalize_Call
Finalize is a helper method to define mock.On call
- ctx context.Context
- blockID flow.Identifier
func (*FollowerState_Expecter) Params ¶ added in v0.46.0
func (_e *FollowerState_Expecter) Params() *FollowerState_Params_Call
Params is a helper method to define mock.On call
func (*FollowerState_Expecter) Sealed ¶ added in v0.46.0
func (_e *FollowerState_Expecter) Sealed() *FollowerState_Sealed_Call
Sealed is a helper method to define mock.On call
type FollowerState_ExtendCertified_Call ¶ added in v0.46.0
FollowerState_ExtendCertified_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExtendCertified'
func (*FollowerState_ExtendCertified_Call) Return ¶ added in v0.46.0
func (_c *FollowerState_ExtendCertified_Call) Return(err error) *FollowerState_ExtendCertified_Call
func (*FollowerState_ExtendCertified_Call) Run ¶ added in v0.46.0
func (_c *FollowerState_ExtendCertified_Call) Run(run func(ctx context.Context, certified *flow.CertifiedBlock)) *FollowerState_ExtendCertified_Call
func (*FollowerState_ExtendCertified_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerState_ExtendCertified_Call) RunAndReturn(run func(ctx context.Context, certified *flow.CertifiedBlock) error) *FollowerState_ExtendCertified_Call
type FollowerState_Final_Call ¶ added in v0.46.0
FollowerState_Final_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Final'
func (*FollowerState_Final_Call) Return ¶ added in v0.46.0
func (_c *FollowerState_Final_Call) Return(snapshot protocol.Snapshot) *FollowerState_Final_Call
func (*FollowerState_Final_Call) Run ¶ added in v0.46.0
func (_c *FollowerState_Final_Call) Run(run func()) *FollowerState_Final_Call
func (*FollowerState_Final_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerState_Final_Call) RunAndReturn(run func() protocol.Snapshot) *FollowerState_Final_Call
type FollowerState_Finalize_Call ¶ added in v0.46.0
FollowerState_Finalize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Finalize'
func (*FollowerState_Finalize_Call) Return ¶ added in v0.46.0
func (_c *FollowerState_Finalize_Call) Return(err error) *FollowerState_Finalize_Call
func (*FollowerState_Finalize_Call) Run ¶ added in v0.46.0
func (_c *FollowerState_Finalize_Call) Run(run func(ctx context.Context, blockID flow.Identifier)) *FollowerState_Finalize_Call
func (*FollowerState_Finalize_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerState_Finalize_Call) RunAndReturn(run func(ctx context.Context, blockID flow.Identifier) error) *FollowerState_Finalize_Call
type FollowerState_Params_Call ¶ added in v0.46.0
FollowerState_Params_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Params'
func (*FollowerState_Params_Call) Return ¶ added in v0.46.0
func (_c *FollowerState_Params_Call) Return(params protocol.Params) *FollowerState_Params_Call
func (*FollowerState_Params_Call) Run ¶ added in v0.46.0
func (_c *FollowerState_Params_Call) Run(run func()) *FollowerState_Params_Call
func (*FollowerState_Params_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerState_Params_Call) RunAndReturn(run func() protocol.Params) *FollowerState_Params_Call
type FollowerState_Sealed_Call ¶ added in v0.46.0
FollowerState_Sealed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sealed'
func (*FollowerState_Sealed_Call) Return ¶ added in v0.46.0
func (_c *FollowerState_Sealed_Call) Return(snapshot protocol.Snapshot) *FollowerState_Sealed_Call
func (*FollowerState_Sealed_Call) Run ¶ added in v0.46.0
func (_c *FollowerState_Sealed_Call) Run(run func()) *FollowerState_Sealed_Call
func (*FollowerState_Sealed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *FollowerState_Sealed_Call) RunAndReturn(run func() protocol.Snapshot) *FollowerState_Sealed_Call
type GlobalParams ¶ added in v0.23.2
GlobalParams is an autogenerated mock type for the GlobalParams type
func NewGlobalParams ¶ added in v0.26.1
func NewGlobalParams(t interface {
mock.TestingT
Cleanup(func())
}) *GlobalParams
NewGlobalParams creates a new instance of GlobalParams. 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 (*GlobalParams) ChainID ¶ added in v0.23.2
func (_mock *GlobalParams) ChainID() flow.ChainID
ChainID provides a mock function for the type GlobalParams
func (*GlobalParams) EXPECT ¶ added in v0.46.0
func (_m *GlobalParams) EXPECT() *GlobalParams_Expecter
func (*GlobalParams) SporkID ¶ added in v0.23.2
func (_mock *GlobalParams) SporkID() flow.Identifier
SporkID provides a mock function for the type GlobalParams
func (*GlobalParams) SporkRootBlockHeight ¶ added in v0.29.6
func (_mock *GlobalParams) SporkRootBlockHeight() uint64
SporkRootBlockHeight provides a mock function for the type GlobalParams
func (*GlobalParams) SporkRootBlockView ¶ added in v0.43.0
func (_mock *GlobalParams) SporkRootBlockView() uint64
SporkRootBlockView provides a mock function for the type GlobalParams
type GlobalParams_ChainID_Call ¶ added in v0.46.0
GlobalParams_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'
func (*GlobalParams_ChainID_Call) Return ¶ added in v0.46.0
func (_c *GlobalParams_ChainID_Call) Return(chainID flow.ChainID) *GlobalParams_ChainID_Call
func (*GlobalParams_ChainID_Call) Run ¶ added in v0.46.0
func (_c *GlobalParams_ChainID_Call) Run(run func()) *GlobalParams_ChainID_Call
func (*GlobalParams_ChainID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *GlobalParams_ChainID_Call) RunAndReturn(run func() flow.ChainID) *GlobalParams_ChainID_Call
type GlobalParams_Expecter ¶ added in v0.46.0
type GlobalParams_Expecter struct {
// contains filtered or unexported fields
}
func (*GlobalParams_Expecter) ChainID ¶ added in v0.46.0
func (_e *GlobalParams_Expecter) ChainID() *GlobalParams_ChainID_Call
ChainID is a helper method to define mock.On call
func (*GlobalParams_Expecter) SporkID ¶ added in v0.46.0
func (_e *GlobalParams_Expecter) SporkID() *GlobalParams_SporkID_Call
SporkID is a helper method to define mock.On call
func (*GlobalParams_Expecter) SporkRootBlockHeight ¶ added in v0.46.0
func (_e *GlobalParams_Expecter) SporkRootBlockHeight() *GlobalParams_SporkRootBlockHeight_Call
SporkRootBlockHeight is a helper method to define mock.On call
func (*GlobalParams_Expecter) SporkRootBlockView ¶ added in v0.46.0
func (_e *GlobalParams_Expecter) SporkRootBlockView() *GlobalParams_SporkRootBlockView_Call
SporkRootBlockView is a helper method to define mock.On call
type GlobalParams_SporkID_Call ¶ added in v0.46.0
GlobalParams_SporkID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SporkID'
func (*GlobalParams_SporkID_Call) Return ¶ added in v0.46.0
func (_c *GlobalParams_SporkID_Call) Return(identifier flow.Identifier) *GlobalParams_SporkID_Call
func (*GlobalParams_SporkID_Call) Run ¶ added in v0.46.0
func (_c *GlobalParams_SporkID_Call) Run(run func()) *GlobalParams_SporkID_Call
func (*GlobalParams_SporkID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *GlobalParams_SporkID_Call) RunAndReturn(run func() flow.Identifier) *GlobalParams_SporkID_Call
type GlobalParams_SporkRootBlockHeight_Call ¶ added in v0.46.0
GlobalParams_SporkRootBlockHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SporkRootBlockHeight'
func (*GlobalParams_SporkRootBlockHeight_Call) Return ¶ added in v0.46.0
func (_c *GlobalParams_SporkRootBlockHeight_Call) Return(v uint64) *GlobalParams_SporkRootBlockHeight_Call
func (*GlobalParams_SporkRootBlockHeight_Call) Run ¶ added in v0.46.0
func (_c *GlobalParams_SporkRootBlockHeight_Call) Run(run func()) *GlobalParams_SporkRootBlockHeight_Call
func (*GlobalParams_SporkRootBlockHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *GlobalParams_SporkRootBlockHeight_Call) RunAndReturn(run func() uint64) *GlobalParams_SporkRootBlockHeight_Call
type GlobalParams_SporkRootBlockView_Call ¶ added in v0.46.0
GlobalParams_SporkRootBlockView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SporkRootBlockView'
func (*GlobalParams_SporkRootBlockView_Call) Return ¶ added in v0.46.0
func (_c *GlobalParams_SporkRootBlockView_Call) Return(v uint64) *GlobalParams_SporkRootBlockView_Call
func (*GlobalParams_SporkRootBlockView_Call) Run ¶ added in v0.46.0
func (_c *GlobalParams_SporkRootBlockView_Call) Run(run func()) *GlobalParams_SporkRootBlockView_Call
func (*GlobalParams_SporkRootBlockView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *GlobalParams_SporkRootBlockView_Call) RunAndReturn(run func() uint64) *GlobalParams_SporkRootBlockView_Call
type InstanceParams ¶ added in v0.23.2
InstanceParams is an autogenerated mock type for the InstanceParams type
func NewInstanceParams ¶ added in v0.26.1
func NewInstanceParams(t interface {
mock.TestingT
Cleanup(func())
}) *InstanceParams
NewInstanceParams creates a new instance of InstanceParams. 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 (*InstanceParams) EXPECT ¶ added in v0.46.0
func (_m *InstanceParams) EXPECT() *InstanceParams_Expecter
func (*InstanceParams) FinalizedRoot ¶ added in v0.30.7
func (_mock *InstanceParams) FinalizedRoot() *flow.Header
FinalizedRoot provides a mock function for the type InstanceParams
func (*InstanceParams) Seal ¶ added in v0.23.2
func (_mock *InstanceParams) Seal() *flow.Seal
Seal provides a mock function for the type InstanceParams
func (*InstanceParams) SealedRoot ¶ added in v0.30.7
func (_mock *InstanceParams) SealedRoot() *flow.Header
SealedRoot provides a mock function for the type InstanceParams
func (*InstanceParams) SporkRootBlock ¶ added in v0.43.0
func (_mock *InstanceParams) SporkRootBlock() *flow.Block
SporkRootBlock provides a mock function for the type InstanceParams
type InstanceParams_Expecter ¶ added in v0.46.0
type InstanceParams_Expecter struct {
// contains filtered or unexported fields
}
func (*InstanceParams_Expecter) FinalizedRoot ¶ added in v0.46.0
func (_e *InstanceParams_Expecter) FinalizedRoot() *InstanceParams_FinalizedRoot_Call
FinalizedRoot is a helper method to define mock.On call
func (*InstanceParams_Expecter) Seal ¶ added in v0.46.0
func (_e *InstanceParams_Expecter) Seal() *InstanceParams_Seal_Call
Seal is a helper method to define mock.On call
func (*InstanceParams_Expecter) SealedRoot ¶ added in v0.46.0
func (_e *InstanceParams_Expecter) SealedRoot() *InstanceParams_SealedRoot_Call
SealedRoot is a helper method to define mock.On call
func (*InstanceParams_Expecter) SporkRootBlock ¶ added in v0.46.0
func (_e *InstanceParams_Expecter) SporkRootBlock() *InstanceParams_SporkRootBlock_Call
SporkRootBlock is a helper method to define mock.On call
type InstanceParams_FinalizedRoot_Call ¶ added in v0.46.0
InstanceParams_FinalizedRoot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalizedRoot'
func (*InstanceParams_FinalizedRoot_Call) Return ¶ added in v0.46.0
func (_c *InstanceParams_FinalizedRoot_Call) Return(header *flow.Header) *InstanceParams_FinalizedRoot_Call
func (*InstanceParams_FinalizedRoot_Call) Run ¶ added in v0.46.0
func (_c *InstanceParams_FinalizedRoot_Call) Run(run func()) *InstanceParams_FinalizedRoot_Call
func (*InstanceParams_FinalizedRoot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InstanceParams_FinalizedRoot_Call) RunAndReturn(run func() *flow.Header) *InstanceParams_FinalizedRoot_Call
type InstanceParams_Seal_Call ¶ added in v0.46.0
InstanceParams_Seal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Seal'
func (*InstanceParams_Seal_Call) Return ¶ added in v0.46.0
func (_c *InstanceParams_Seal_Call) Return(seal *flow.Seal) *InstanceParams_Seal_Call
func (*InstanceParams_Seal_Call) Run ¶ added in v0.46.0
func (_c *InstanceParams_Seal_Call) Run(run func()) *InstanceParams_Seal_Call
func (*InstanceParams_Seal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InstanceParams_Seal_Call) RunAndReturn(run func() *flow.Seal) *InstanceParams_Seal_Call
type InstanceParams_SealedRoot_Call ¶ added in v0.46.0
InstanceParams_SealedRoot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SealedRoot'
func (*InstanceParams_SealedRoot_Call) Return ¶ added in v0.46.0
func (_c *InstanceParams_SealedRoot_Call) Return(header *flow.Header) *InstanceParams_SealedRoot_Call
func (*InstanceParams_SealedRoot_Call) Run ¶ added in v0.46.0
func (_c *InstanceParams_SealedRoot_Call) Run(run func()) *InstanceParams_SealedRoot_Call
func (*InstanceParams_SealedRoot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InstanceParams_SealedRoot_Call) RunAndReturn(run func() *flow.Header) *InstanceParams_SealedRoot_Call
type InstanceParams_SporkRootBlock_Call ¶ added in v0.46.0
InstanceParams_SporkRootBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SporkRootBlock'
func (*InstanceParams_SporkRootBlock_Call) Return ¶ added in v0.46.0
func (_c *InstanceParams_SporkRootBlock_Call) Return(v *flow.Block) *InstanceParams_SporkRootBlock_Call
func (*InstanceParams_SporkRootBlock_Call) Run ¶ added in v0.46.0
func (_c *InstanceParams_SporkRootBlock_Call) Run(run func()) *InstanceParams_SporkRootBlock_Call
func (*InstanceParams_SporkRootBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *InstanceParams_SporkRootBlock_Call) RunAndReturn(run func() *flow.Block) *InstanceParams_SporkRootBlock_Call
type KVStoreReader ¶ added in v0.33.30
KVStoreReader is an autogenerated mock type for the KVStoreReader type
func NewKVStoreReader ¶ added in v0.33.30
func NewKVStoreReader(t interface {
mock.TestingT
Cleanup(func())
}) *KVStoreReader
NewKVStoreReader creates a new instance of KVStoreReader. 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 (*KVStoreReader) EXPECT ¶ added in v0.46.0
func (_m *KVStoreReader) EXPECT() *KVStoreReader_Expecter
func (*KVStoreReader) GetCadenceComponentVersion ¶ added in v0.41.0
func (_mock *KVStoreReader) GetCadenceComponentVersion() (protocol.MagnitudeVersion, error)
GetCadenceComponentVersion provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetCadenceComponentVersionUpgrade ¶ added in v0.41.0
func (_mock *KVStoreReader) GetCadenceComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
GetCadenceComponentVersionUpgrade provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetEpochExtensionViewCount ¶ added in v0.37.1
func (_mock *KVStoreReader) GetEpochExtensionViewCount() uint64
GetEpochExtensionViewCount provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetEpochStateID ¶ added in v0.33.30
func (_mock *KVStoreReader) GetEpochStateID() flow.Identifier
GetEpochStateID provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetExecutionComponentVersion ¶ added in v0.41.0
func (_mock *KVStoreReader) GetExecutionComponentVersion() (protocol.MagnitudeVersion, error)
GetExecutionComponentVersion provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetExecutionComponentVersionUpgrade ¶ added in v0.41.0
func (_mock *KVStoreReader) GetExecutionComponentVersionUpgrade() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]
GetExecutionComponentVersionUpgrade provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetExecutionMeteringParameters ¶ added in v0.41.0
func (_mock *KVStoreReader) GetExecutionMeteringParameters() (protocol.ExecutionMeteringParameters, error)
GetExecutionMeteringParameters provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetExecutionMeteringParametersUpgrade ¶ added in v0.41.0
func (_mock *KVStoreReader) GetExecutionMeteringParametersUpgrade() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]
GetExecutionMeteringParametersUpgrade provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetFinalizationSafetyThreshold ¶ added in v0.39.0
func (_mock *KVStoreReader) GetFinalizationSafetyThreshold() uint64
GetFinalizationSafetyThreshold provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetProtocolStateVersion ¶ added in v0.33.30
func (_mock *KVStoreReader) GetProtocolStateVersion() uint64
GetProtocolStateVersion provides a mock function for the type KVStoreReader
func (*KVStoreReader) GetVersionUpgrade ¶ added in v0.33.30
func (_mock *KVStoreReader) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]
GetVersionUpgrade provides a mock function for the type KVStoreReader
func (*KVStoreReader) ID ¶ added in v0.33.30
func (_mock *KVStoreReader) ID() flow.Identifier
ID provides a mock function for the type KVStoreReader
func (*KVStoreReader) VersionedEncode ¶ added in v0.33.30
func (_mock *KVStoreReader) VersionedEncode() (uint64, []byte, error)
VersionedEncode provides a mock function for the type KVStoreReader
type KVStoreReader_Expecter ¶ added in v0.46.0
type KVStoreReader_Expecter struct {
// contains filtered or unexported fields
}
func (*KVStoreReader_Expecter) GetCadenceComponentVersion ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetCadenceComponentVersion() *KVStoreReader_GetCadenceComponentVersion_Call
GetCadenceComponentVersion is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetCadenceComponentVersionUpgrade ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetCadenceComponentVersionUpgrade() *KVStoreReader_GetCadenceComponentVersionUpgrade_Call
GetCadenceComponentVersionUpgrade is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetEpochExtensionViewCount ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetEpochExtensionViewCount() *KVStoreReader_GetEpochExtensionViewCount_Call
GetEpochExtensionViewCount is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetEpochStateID ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetEpochStateID() *KVStoreReader_GetEpochStateID_Call
GetEpochStateID is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetExecutionComponentVersion ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetExecutionComponentVersion() *KVStoreReader_GetExecutionComponentVersion_Call
GetExecutionComponentVersion is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetExecutionComponentVersionUpgrade ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetExecutionComponentVersionUpgrade() *KVStoreReader_GetExecutionComponentVersionUpgrade_Call
GetExecutionComponentVersionUpgrade is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetExecutionMeteringParameters ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetExecutionMeteringParameters() *KVStoreReader_GetExecutionMeteringParameters_Call
GetExecutionMeteringParameters is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetExecutionMeteringParametersUpgrade ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetExecutionMeteringParametersUpgrade() *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call
GetExecutionMeteringParametersUpgrade is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetFinalizationSafetyThreshold ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetFinalizationSafetyThreshold() *KVStoreReader_GetFinalizationSafetyThreshold_Call
GetFinalizationSafetyThreshold is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetProtocolStateVersion ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetProtocolStateVersion() *KVStoreReader_GetProtocolStateVersion_Call
GetProtocolStateVersion is a helper method to define mock.On call
func (*KVStoreReader_Expecter) GetVersionUpgrade ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) GetVersionUpgrade() *KVStoreReader_GetVersionUpgrade_Call
GetVersionUpgrade is a helper method to define mock.On call
func (*KVStoreReader_Expecter) ID ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) ID() *KVStoreReader_ID_Call
ID is a helper method to define mock.On call
func (*KVStoreReader_Expecter) VersionedEncode ¶ added in v0.46.0
func (_e *KVStoreReader_Expecter) VersionedEncode() *KVStoreReader_VersionedEncode_Call
VersionedEncode is a helper method to define mock.On call
type KVStoreReader_GetCadenceComponentVersionUpgrade_Call ¶ added in v0.46.0
KVStoreReader_GetCadenceComponentVersionUpgrade_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCadenceComponentVersionUpgrade'
func (*KVStoreReader_GetCadenceComponentVersionUpgrade_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetCadenceComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreReader_GetCadenceComponentVersionUpgrade_Call
func (*KVStoreReader_GetCadenceComponentVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetCadenceComponentVersionUpgrade_Call) Run(run func()) *KVStoreReader_GetCadenceComponentVersionUpgrade_Call
func (*KVStoreReader_GetCadenceComponentVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetCadenceComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreReader_GetCadenceComponentVersionUpgrade_Call
type KVStoreReader_GetCadenceComponentVersion_Call ¶ added in v0.46.0
KVStoreReader_GetCadenceComponentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCadenceComponentVersion'
func (*KVStoreReader_GetCadenceComponentVersion_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetCadenceComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreReader_GetCadenceComponentVersion_Call
func (*KVStoreReader_GetCadenceComponentVersion_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetCadenceComponentVersion_Call) Run(run func()) *KVStoreReader_GetCadenceComponentVersion_Call
func (*KVStoreReader_GetCadenceComponentVersion_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetCadenceComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreReader_GetCadenceComponentVersion_Call
type KVStoreReader_GetEpochExtensionViewCount_Call ¶ added in v0.46.0
KVStoreReader_GetEpochExtensionViewCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEpochExtensionViewCount'
func (*KVStoreReader_GetEpochExtensionViewCount_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetEpochExtensionViewCount_Call) Return(v uint64) *KVStoreReader_GetEpochExtensionViewCount_Call
func (*KVStoreReader_GetEpochExtensionViewCount_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetEpochExtensionViewCount_Call) Run(run func()) *KVStoreReader_GetEpochExtensionViewCount_Call
func (*KVStoreReader_GetEpochExtensionViewCount_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetEpochExtensionViewCount_Call) RunAndReturn(run func() uint64) *KVStoreReader_GetEpochExtensionViewCount_Call
type KVStoreReader_GetEpochStateID_Call ¶ added in v0.46.0
KVStoreReader_GetEpochStateID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEpochStateID'
func (*KVStoreReader_GetEpochStateID_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetEpochStateID_Call) Return(identifier flow.Identifier) *KVStoreReader_GetEpochStateID_Call
func (*KVStoreReader_GetEpochStateID_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetEpochStateID_Call) Run(run func()) *KVStoreReader_GetEpochStateID_Call
func (*KVStoreReader_GetEpochStateID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetEpochStateID_Call) RunAndReturn(run func() flow.Identifier) *KVStoreReader_GetEpochStateID_Call
type KVStoreReader_GetExecutionComponentVersionUpgrade_Call ¶ added in v0.46.0
KVStoreReader_GetExecutionComponentVersionUpgrade_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExecutionComponentVersionUpgrade'
func (*KVStoreReader_GetExecutionComponentVersionUpgrade_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionComponentVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreReader_GetExecutionComponentVersionUpgrade_Call
func (*KVStoreReader_GetExecutionComponentVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionComponentVersionUpgrade_Call) Run(run func()) *KVStoreReader_GetExecutionComponentVersionUpgrade_Call
func (*KVStoreReader_GetExecutionComponentVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionComponentVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.MagnitudeVersion]) *KVStoreReader_GetExecutionComponentVersionUpgrade_Call
type KVStoreReader_GetExecutionComponentVersion_Call ¶ added in v0.46.0
KVStoreReader_GetExecutionComponentVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExecutionComponentVersion'
func (*KVStoreReader_GetExecutionComponentVersion_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionComponentVersion_Call) Return(magnitudeVersion protocol.MagnitudeVersion, err error) *KVStoreReader_GetExecutionComponentVersion_Call
func (*KVStoreReader_GetExecutionComponentVersion_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionComponentVersion_Call) Run(run func()) *KVStoreReader_GetExecutionComponentVersion_Call
func (*KVStoreReader_GetExecutionComponentVersion_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionComponentVersion_Call) RunAndReturn(run func() (protocol.MagnitudeVersion, error)) *KVStoreReader_GetExecutionComponentVersion_Call
type KVStoreReader_GetExecutionMeteringParametersUpgrade_Call ¶ added in v0.46.0
KVStoreReader_GetExecutionMeteringParametersUpgrade_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExecutionMeteringParametersUpgrade'
func (*KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]) *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call
func (*KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) Run(run func()) *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call
func (*KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[protocol.ExecutionMeteringParameters]) *KVStoreReader_GetExecutionMeteringParametersUpgrade_Call
type KVStoreReader_GetExecutionMeteringParameters_Call ¶ added in v0.46.0
KVStoreReader_GetExecutionMeteringParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExecutionMeteringParameters'
func (*KVStoreReader_GetExecutionMeteringParameters_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionMeteringParameters_Call) Return(executionMeteringParameters protocol.ExecutionMeteringParameters, err error) *KVStoreReader_GetExecutionMeteringParameters_Call
func (*KVStoreReader_GetExecutionMeteringParameters_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionMeteringParameters_Call) Run(run func()) *KVStoreReader_GetExecutionMeteringParameters_Call
func (*KVStoreReader_GetExecutionMeteringParameters_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetExecutionMeteringParameters_Call) RunAndReturn(run func() (protocol.ExecutionMeteringParameters, error)) *KVStoreReader_GetExecutionMeteringParameters_Call
type KVStoreReader_GetFinalizationSafetyThreshold_Call ¶ added in v0.46.0
KVStoreReader_GetFinalizationSafetyThreshold_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFinalizationSafetyThreshold'
func (*KVStoreReader_GetFinalizationSafetyThreshold_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetFinalizationSafetyThreshold_Call) Run(run func()) *KVStoreReader_GetFinalizationSafetyThreshold_Call
func (*KVStoreReader_GetFinalizationSafetyThreshold_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetFinalizationSafetyThreshold_Call) RunAndReturn(run func() uint64) *KVStoreReader_GetFinalizationSafetyThreshold_Call
type KVStoreReader_GetProtocolStateVersion_Call ¶ added in v0.46.0
KVStoreReader_GetProtocolStateVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProtocolStateVersion'
func (*KVStoreReader_GetProtocolStateVersion_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetProtocolStateVersion_Call) Return(v uint64) *KVStoreReader_GetProtocolStateVersion_Call
func (*KVStoreReader_GetProtocolStateVersion_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetProtocolStateVersion_Call) Run(run func()) *KVStoreReader_GetProtocolStateVersion_Call
func (*KVStoreReader_GetProtocolStateVersion_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetProtocolStateVersion_Call) RunAndReturn(run func() uint64) *KVStoreReader_GetProtocolStateVersion_Call
type KVStoreReader_GetVersionUpgrade_Call ¶ added in v0.46.0
KVStoreReader_GetVersionUpgrade_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVersionUpgrade'
func (*KVStoreReader_GetVersionUpgrade_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_GetVersionUpgrade_Call) Return(viewBasedActivator *protocol.ViewBasedActivator[uint64]) *KVStoreReader_GetVersionUpgrade_Call
func (*KVStoreReader_GetVersionUpgrade_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_GetVersionUpgrade_Call) Run(run func()) *KVStoreReader_GetVersionUpgrade_Call
func (*KVStoreReader_GetVersionUpgrade_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_GetVersionUpgrade_Call) RunAndReturn(run func() *protocol.ViewBasedActivator[uint64]) *KVStoreReader_GetVersionUpgrade_Call
type KVStoreReader_ID_Call ¶ added in v0.46.0
KVStoreReader_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*KVStoreReader_ID_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_ID_Call) Return(identifier flow.Identifier) *KVStoreReader_ID_Call
func (*KVStoreReader_ID_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_ID_Call) Run(run func()) *KVStoreReader_ID_Call
func (*KVStoreReader_ID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_ID_Call) RunAndReturn(run func() flow.Identifier) *KVStoreReader_ID_Call
type KVStoreReader_VersionedEncode_Call ¶ added in v0.46.0
KVStoreReader_VersionedEncode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VersionedEncode'
func (*KVStoreReader_VersionedEncode_Call) Return ¶ added in v0.46.0
func (_c *KVStoreReader_VersionedEncode_Call) Return(v uint64, bytes []byte, err error) *KVStoreReader_VersionedEncode_Call
func (*KVStoreReader_VersionedEncode_Call) Run ¶ added in v0.46.0
func (_c *KVStoreReader_VersionedEncode_Call) Run(run func()) *KVStoreReader_VersionedEncode_Call
func (*KVStoreReader_VersionedEncode_Call) RunAndReturn ¶ added in v0.46.0
func (_c *KVStoreReader_VersionedEncode_Call) RunAndReturn(run func() (uint64, []byte, error)) *KVStoreReader_VersionedEncode_Call
type MutableProtocolState ¶ added in v0.33.30
MutableProtocolState is an autogenerated mock type for the MutableProtocolState type
func NewMutableProtocolState ¶ added in v0.33.30
func NewMutableProtocolState(t interface {
mock.TestingT
Cleanup(func())
}) *MutableProtocolState
NewMutableProtocolState creates a new instance of MutableProtocolState. 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 (*MutableProtocolState) EXPECT ¶ added in v0.46.0
func (_m *MutableProtocolState) EXPECT() *MutableProtocolState_Expecter
func (*MutableProtocolState) EpochStateAtBlockID ¶ added in v0.33.30
func (_mock *MutableProtocolState) EpochStateAtBlockID(blockID flow.Identifier) (protocol.EpochProtocolState, error)
EpochStateAtBlockID provides a mock function for the type MutableProtocolState
func (*MutableProtocolState) EvolveState ¶ added in v0.33.30
func (_mock *MutableProtocolState) EvolveState(deferredDBOps *deferred.DeferredBlockPersist, parentBlockID flow.Identifier, candidateView uint64, candidateSeals []*flow.Seal) (flow.Identifier, error)
EvolveState provides a mock function for the type MutableProtocolState
func (*MutableProtocolState) GlobalParams ¶ added in v0.33.30
func (_mock *MutableProtocolState) GlobalParams() protocol.GlobalParams
GlobalParams provides a mock function for the type MutableProtocolState
func (*MutableProtocolState) KVStoreAtBlockID ¶ added in v0.33.30
func (_mock *MutableProtocolState) KVStoreAtBlockID(blockID flow.Identifier) (protocol.KVStoreReader, error)
KVStoreAtBlockID provides a mock function for the type MutableProtocolState
type MutableProtocolState_EpochStateAtBlockID_Call ¶ added in v0.46.0
MutableProtocolState_EpochStateAtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochStateAtBlockID'
func (*MutableProtocolState_EpochStateAtBlockID_Call) Return ¶ added in v0.46.0
func (_c *MutableProtocolState_EpochStateAtBlockID_Call) Return(epochProtocolState protocol.EpochProtocolState, err error) *MutableProtocolState_EpochStateAtBlockID_Call
func (*MutableProtocolState_EpochStateAtBlockID_Call) Run ¶ added in v0.46.0
func (_c *MutableProtocolState_EpochStateAtBlockID_Call) Run(run func(blockID flow.Identifier)) *MutableProtocolState_EpochStateAtBlockID_Call
func (*MutableProtocolState_EpochStateAtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *MutableProtocolState_EpochStateAtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol.EpochProtocolState, error)) *MutableProtocolState_EpochStateAtBlockID_Call
type MutableProtocolState_EvolveState_Call ¶ added in v0.46.0
MutableProtocolState_EvolveState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EvolveState'
func (*MutableProtocolState_EvolveState_Call) Return ¶ added in v0.46.0
func (_c *MutableProtocolState_EvolveState_Call) Return(stateID flow.Identifier, err error) *MutableProtocolState_EvolveState_Call
func (*MutableProtocolState_EvolveState_Call) Run ¶ added in v0.46.0
func (_c *MutableProtocolState_EvolveState_Call) Run(run func(deferredDBOps *deferred.DeferredBlockPersist, parentBlockID flow.Identifier, candidateView uint64, candidateSeals []*flow.Seal)) *MutableProtocolState_EvolveState_Call
func (*MutableProtocolState_EvolveState_Call) RunAndReturn ¶ added in v0.46.0
func (_c *MutableProtocolState_EvolveState_Call) RunAndReturn(run func(deferredDBOps *deferred.DeferredBlockPersist, parentBlockID flow.Identifier, candidateView uint64, candidateSeals []*flow.Seal) (flow.Identifier, error)) *MutableProtocolState_EvolveState_Call
type MutableProtocolState_Expecter ¶ added in v0.46.0
type MutableProtocolState_Expecter struct {
// contains filtered or unexported fields
}
func (*MutableProtocolState_Expecter) EpochStateAtBlockID ¶ added in v0.46.0
func (_e *MutableProtocolState_Expecter) EpochStateAtBlockID(blockID interface{}) *MutableProtocolState_EpochStateAtBlockID_Call
EpochStateAtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
func (*MutableProtocolState_Expecter) EvolveState ¶ added in v0.46.0
func (_e *MutableProtocolState_Expecter) EvolveState(deferredDBOps interface{}, parentBlockID interface{}, candidateView interface{}, candidateSeals interface{}) *MutableProtocolState_EvolveState_Call
EvolveState is a helper method to define mock.On call
- deferredDBOps *deferred.DeferredBlockPersist
- parentBlockID flow.Identifier
- candidateView uint64
- candidateSeals []*flow.Seal
func (*MutableProtocolState_Expecter) GlobalParams ¶ added in v0.46.0
func (_e *MutableProtocolState_Expecter) GlobalParams() *MutableProtocolState_GlobalParams_Call
GlobalParams is a helper method to define mock.On call
func (*MutableProtocolState_Expecter) KVStoreAtBlockID ¶ added in v0.46.0
func (_e *MutableProtocolState_Expecter) KVStoreAtBlockID(blockID interface{}) *MutableProtocolState_KVStoreAtBlockID_Call
KVStoreAtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
type MutableProtocolState_GlobalParams_Call ¶ added in v0.46.0
MutableProtocolState_GlobalParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GlobalParams'
func (*MutableProtocolState_GlobalParams_Call) Return ¶ added in v0.46.0
func (_c *MutableProtocolState_GlobalParams_Call) Return(globalParams protocol.GlobalParams) *MutableProtocolState_GlobalParams_Call
func (*MutableProtocolState_GlobalParams_Call) Run ¶ added in v0.46.0
func (_c *MutableProtocolState_GlobalParams_Call) Run(run func()) *MutableProtocolState_GlobalParams_Call
func (*MutableProtocolState_GlobalParams_Call) RunAndReturn ¶ added in v0.46.0
func (_c *MutableProtocolState_GlobalParams_Call) RunAndReturn(run func() protocol.GlobalParams) *MutableProtocolState_GlobalParams_Call
type MutableProtocolState_KVStoreAtBlockID_Call ¶ added in v0.46.0
MutableProtocolState_KVStoreAtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KVStoreAtBlockID'
func (*MutableProtocolState_KVStoreAtBlockID_Call) Return ¶ added in v0.46.0
func (_c *MutableProtocolState_KVStoreAtBlockID_Call) Return(kVStoreReader protocol.KVStoreReader, err error) *MutableProtocolState_KVStoreAtBlockID_Call
func (*MutableProtocolState_KVStoreAtBlockID_Call) Run ¶ added in v0.46.0
func (_c *MutableProtocolState_KVStoreAtBlockID_Call) Run(run func(blockID flow.Identifier)) *MutableProtocolState_KVStoreAtBlockID_Call
func (*MutableProtocolState_KVStoreAtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *MutableProtocolState_KVStoreAtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol.KVStoreReader, error)) *MutableProtocolState_KVStoreAtBlockID_Call
type Params ¶
Params is an autogenerated mock type for the Params type
func NewParams ¶ added in v0.26.1
NewParams creates a new instance of Params. 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 (*Params) EXPECT ¶ added in v0.46.0
func (_m *Params) EXPECT() *Params_Expecter
func (*Params) FinalizedRoot ¶ added in v0.30.7
FinalizedRoot provides a mock function for the type Params
func (*Params) SealedRoot ¶ added in v0.30.7
SealedRoot provides a mock function for the type Params
func (*Params) SporkID ¶ added in v0.23.2
func (_mock *Params) SporkID() flow.Identifier
SporkID provides a mock function for the type Params
func (*Params) SporkRootBlock ¶ added in v0.43.0
SporkRootBlock provides a mock function for the type Params
func (*Params) SporkRootBlockHeight ¶ added in v0.29.6
SporkRootBlockHeight provides a mock function for the type Params
func (*Params) SporkRootBlockView ¶ added in v0.43.0
SporkRootBlockView provides a mock function for the type Params
type Params_ChainID_Call ¶ added in v0.46.0
Params_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'
func (*Params_ChainID_Call) Return ¶ added in v0.46.0
func (_c *Params_ChainID_Call) Return(chainID flow.ChainID) *Params_ChainID_Call
func (*Params_ChainID_Call) Run ¶ added in v0.46.0
func (_c *Params_ChainID_Call) Run(run func()) *Params_ChainID_Call
func (*Params_ChainID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Params_ChainID_Call) RunAndReturn(run func() flow.ChainID) *Params_ChainID_Call
type Params_Expecter ¶ added in v0.46.0
type Params_Expecter struct {
// contains filtered or unexported fields
}
func (*Params_Expecter) ChainID ¶ added in v0.46.0
func (_e *Params_Expecter) ChainID() *Params_ChainID_Call
ChainID is a helper method to define mock.On call
func (*Params_Expecter) FinalizedRoot ¶ added in v0.46.0
func (_e *Params_Expecter) FinalizedRoot() *Params_FinalizedRoot_Call
FinalizedRoot is a helper method to define mock.On call
func (*Params_Expecter) Seal ¶ added in v0.46.0
func (_e *Params_Expecter) Seal() *Params_Seal_Call
Seal is a helper method to define mock.On call
func (*Params_Expecter) SealedRoot ¶ added in v0.46.0
func (_e *Params_Expecter) SealedRoot() *Params_SealedRoot_Call
SealedRoot is a helper method to define mock.On call
func (*Params_Expecter) SporkID ¶ added in v0.46.0
func (_e *Params_Expecter) SporkID() *Params_SporkID_Call
SporkID is a helper method to define mock.On call
func (*Params_Expecter) SporkRootBlock ¶ added in v0.46.0
func (_e *Params_Expecter) SporkRootBlock() *Params_SporkRootBlock_Call
SporkRootBlock is a helper method to define mock.On call
func (*Params_Expecter) SporkRootBlockHeight ¶ added in v0.46.0
func (_e *Params_Expecter) SporkRootBlockHeight() *Params_SporkRootBlockHeight_Call
SporkRootBlockHeight is a helper method to define mock.On call
func (*Params_Expecter) SporkRootBlockView ¶ added in v0.46.0
func (_e *Params_Expecter) SporkRootBlockView() *Params_SporkRootBlockView_Call
SporkRootBlockView is a helper method to define mock.On call
type Params_FinalizedRoot_Call ¶ added in v0.46.0
Params_FinalizedRoot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinalizedRoot'
func (*Params_FinalizedRoot_Call) Return ¶ added in v0.46.0
func (_c *Params_FinalizedRoot_Call) Return(header *flow.Header) *Params_FinalizedRoot_Call
func (*Params_FinalizedRoot_Call) Run ¶ added in v0.46.0
func (_c *Params_FinalizedRoot_Call) Run(run func()) *Params_FinalizedRoot_Call
func (*Params_FinalizedRoot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Params_FinalizedRoot_Call) RunAndReturn(run func() *flow.Header) *Params_FinalizedRoot_Call
type Params_Seal_Call ¶ added in v0.46.0
Params_Seal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Seal'
func (*Params_Seal_Call) Return ¶ added in v0.46.0
func (_c *Params_Seal_Call) Return(seal *flow.Seal) *Params_Seal_Call
func (*Params_Seal_Call) Run ¶ added in v0.46.0
func (_c *Params_Seal_Call) Run(run func()) *Params_Seal_Call
func (*Params_Seal_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Params_Seal_Call) RunAndReturn(run func() *flow.Seal) *Params_Seal_Call
type Params_SealedRoot_Call ¶ added in v0.46.0
Params_SealedRoot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SealedRoot'
func (*Params_SealedRoot_Call) Return ¶ added in v0.46.0
func (_c *Params_SealedRoot_Call) Return(header *flow.Header) *Params_SealedRoot_Call
func (*Params_SealedRoot_Call) Run ¶ added in v0.46.0
func (_c *Params_SealedRoot_Call) Run(run func()) *Params_SealedRoot_Call
func (*Params_SealedRoot_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Params_SealedRoot_Call) RunAndReturn(run func() *flow.Header) *Params_SealedRoot_Call
type Params_SporkID_Call ¶ added in v0.46.0
Params_SporkID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SporkID'
func (*Params_SporkID_Call) Return ¶ added in v0.46.0
func (_c *Params_SporkID_Call) Return(identifier flow.Identifier) *Params_SporkID_Call
func (*Params_SporkID_Call) Run ¶ added in v0.46.0
func (_c *Params_SporkID_Call) Run(run func()) *Params_SporkID_Call
func (*Params_SporkID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Params_SporkID_Call) RunAndReturn(run func() flow.Identifier) *Params_SporkID_Call
type Params_SporkRootBlockHeight_Call ¶ added in v0.46.0
Params_SporkRootBlockHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SporkRootBlockHeight'
func (*Params_SporkRootBlockHeight_Call) Return ¶ added in v0.46.0
func (_c *Params_SporkRootBlockHeight_Call) Return(v uint64) *Params_SporkRootBlockHeight_Call
func (*Params_SporkRootBlockHeight_Call) Run ¶ added in v0.46.0
func (_c *Params_SporkRootBlockHeight_Call) Run(run func()) *Params_SporkRootBlockHeight_Call
func (*Params_SporkRootBlockHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Params_SporkRootBlockHeight_Call) RunAndReturn(run func() uint64) *Params_SporkRootBlockHeight_Call
type Params_SporkRootBlockView_Call ¶ added in v0.46.0
Params_SporkRootBlockView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SporkRootBlockView'
func (*Params_SporkRootBlockView_Call) Return ¶ added in v0.46.0
func (_c *Params_SporkRootBlockView_Call) Return(v uint64) *Params_SporkRootBlockView_Call
func (*Params_SporkRootBlockView_Call) Run ¶ added in v0.46.0
func (_c *Params_SporkRootBlockView_Call) Run(run func()) *Params_SporkRootBlockView_Call
func (*Params_SporkRootBlockView_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Params_SporkRootBlockView_Call) RunAndReturn(run func() uint64) *Params_SporkRootBlockView_Call
type Params_SporkRootBlock_Call ¶ added in v0.46.0
Params_SporkRootBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SporkRootBlock'
func (*Params_SporkRootBlock_Call) Return ¶ added in v0.46.0
func (_c *Params_SporkRootBlock_Call) Return(v *flow.Block) *Params_SporkRootBlock_Call
func (*Params_SporkRootBlock_Call) Run ¶ added in v0.46.0
func (_c *Params_SporkRootBlock_Call) Run(run func()) *Params_SporkRootBlock_Call
func (*Params_SporkRootBlock_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Params_SporkRootBlock_Call) RunAndReturn(run func() *flow.Block) *Params_SporkRootBlock_Call
type ParticipantState ¶ added in v0.30.0
ParticipantState is an autogenerated mock type for the ParticipantState type
func NewParticipantState ¶ added in v0.30.0
func NewParticipantState(t interface {
mock.TestingT
Cleanup(func())
}) *ParticipantState
NewParticipantState creates a new instance of ParticipantState. 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 (*ParticipantState) AtBlockID ¶ added in v0.30.0
func (_mock *ParticipantState) AtBlockID(blockID flow.Identifier) protocol.Snapshot
AtBlockID provides a mock function for the type ParticipantState
func (*ParticipantState) AtHeight ¶ added in v0.30.0
func (_mock *ParticipantState) AtHeight(height uint64) protocol.Snapshot
AtHeight provides a mock function for the type ParticipantState
func (*ParticipantState) EXPECT ¶ added in v0.46.0
func (_m *ParticipantState) EXPECT() *ParticipantState_Expecter
func (*ParticipantState) Extend ¶ added in v0.30.0
Extend provides a mock function for the type ParticipantState
func (*ParticipantState) ExtendCertified ¶ added in v0.30.0
func (_mock *ParticipantState) ExtendCertified(ctx context.Context, certified *flow.CertifiedBlock) error
ExtendCertified provides a mock function for the type ParticipantState
func (*ParticipantState) Final ¶ added in v0.30.0
func (_mock *ParticipantState) Final() protocol.Snapshot
Final provides a mock function for the type ParticipantState
func (*ParticipantState) Finalize ¶ added in v0.30.0
func (_mock *ParticipantState) Finalize(ctx context.Context, blockID flow.Identifier) error
Finalize provides a mock function for the type ParticipantState
func (*ParticipantState) Params ¶ added in v0.30.0
func (_mock *ParticipantState) Params() protocol.Params
Params provides a mock function for the type ParticipantState
func (*ParticipantState) Sealed ¶ added in v0.30.0
func (_mock *ParticipantState) Sealed() protocol.Snapshot
Sealed provides a mock function for the type ParticipantState
type ParticipantState_AtBlockID_Call ¶ added in v0.46.0
ParticipantState_AtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AtBlockID'
func (*ParticipantState_AtBlockID_Call) Return ¶ added in v0.46.0
func (_c *ParticipantState_AtBlockID_Call) Return(snapshot protocol.Snapshot) *ParticipantState_AtBlockID_Call
func (*ParticipantState_AtBlockID_Call) Run ¶ added in v0.46.0
func (_c *ParticipantState_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *ParticipantState_AtBlockID_Call
func (*ParticipantState_AtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantState_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) protocol.Snapshot) *ParticipantState_AtBlockID_Call
type ParticipantState_AtHeight_Call ¶ added in v0.46.0
ParticipantState_AtHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AtHeight'
func (*ParticipantState_AtHeight_Call) Return ¶ added in v0.46.0
func (_c *ParticipantState_AtHeight_Call) Return(snapshot protocol.Snapshot) *ParticipantState_AtHeight_Call
func (*ParticipantState_AtHeight_Call) Run ¶ added in v0.46.0
func (_c *ParticipantState_AtHeight_Call) Run(run func(height uint64)) *ParticipantState_AtHeight_Call
func (*ParticipantState_AtHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantState_AtHeight_Call) RunAndReturn(run func(height uint64) protocol.Snapshot) *ParticipantState_AtHeight_Call
type ParticipantState_Expecter ¶ added in v0.46.0
type ParticipantState_Expecter struct {
// contains filtered or unexported fields
}
func (*ParticipantState_Expecter) AtBlockID ¶ added in v0.46.0
func (_e *ParticipantState_Expecter) AtBlockID(blockID interface{}) *ParticipantState_AtBlockID_Call
AtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
func (*ParticipantState_Expecter) AtHeight ¶ added in v0.46.0
func (_e *ParticipantState_Expecter) AtHeight(height interface{}) *ParticipantState_AtHeight_Call
AtHeight is a helper method to define mock.On call
- height uint64
func (*ParticipantState_Expecter) Extend ¶ added in v0.46.0
func (_e *ParticipantState_Expecter) Extend(ctx interface{}, candidate interface{}) *ParticipantState_Extend_Call
Extend is a helper method to define mock.On call
- ctx context.Context
- candidate *flow.Proposal
func (*ParticipantState_Expecter) ExtendCertified ¶ added in v0.46.0
func (_e *ParticipantState_Expecter) ExtendCertified(ctx interface{}, certified interface{}) *ParticipantState_ExtendCertified_Call
ExtendCertified is a helper method to define mock.On call
- ctx context.Context
- certified *flow.CertifiedBlock
func (*ParticipantState_Expecter) Final ¶ added in v0.46.0
func (_e *ParticipantState_Expecter) Final() *ParticipantState_Final_Call
Final is a helper method to define mock.On call
func (*ParticipantState_Expecter) Finalize ¶ added in v0.46.0
func (_e *ParticipantState_Expecter) Finalize(ctx interface{}, blockID interface{}) *ParticipantState_Finalize_Call
Finalize is a helper method to define mock.On call
- ctx context.Context
- blockID flow.Identifier
func (*ParticipantState_Expecter) Params ¶ added in v0.46.0
func (_e *ParticipantState_Expecter) Params() *ParticipantState_Params_Call
Params is a helper method to define mock.On call
func (*ParticipantState_Expecter) Sealed ¶ added in v0.46.0
func (_e *ParticipantState_Expecter) Sealed() *ParticipantState_Sealed_Call
Sealed is a helper method to define mock.On call
type ParticipantState_ExtendCertified_Call ¶ added in v0.46.0
ParticipantState_ExtendCertified_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExtendCertified'
func (*ParticipantState_ExtendCertified_Call) Return ¶ added in v0.46.0
func (_c *ParticipantState_ExtendCertified_Call) Return(err error) *ParticipantState_ExtendCertified_Call
func (*ParticipantState_ExtendCertified_Call) Run ¶ added in v0.46.0
func (_c *ParticipantState_ExtendCertified_Call) Run(run func(ctx context.Context, certified *flow.CertifiedBlock)) *ParticipantState_ExtendCertified_Call
func (*ParticipantState_ExtendCertified_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantState_ExtendCertified_Call) RunAndReturn(run func(ctx context.Context, certified *flow.CertifiedBlock) error) *ParticipantState_ExtendCertified_Call
type ParticipantState_Extend_Call ¶ added in v0.46.0
ParticipantState_Extend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extend'
func (*ParticipantState_Extend_Call) Return ¶ added in v0.46.0
func (_c *ParticipantState_Extend_Call) Return(err error) *ParticipantState_Extend_Call
func (*ParticipantState_Extend_Call) Run ¶ added in v0.46.0
func (_c *ParticipantState_Extend_Call) Run(run func(ctx context.Context, candidate *flow.Proposal)) *ParticipantState_Extend_Call
func (*ParticipantState_Extend_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantState_Extend_Call) RunAndReturn(run func(ctx context.Context, candidate *flow.Proposal) error) *ParticipantState_Extend_Call
type ParticipantState_Final_Call ¶ added in v0.46.0
ParticipantState_Final_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Final'
func (*ParticipantState_Final_Call) Return ¶ added in v0.46.0
func (_c *ParticipantState_Final_Call) Return(snapshot protocol.Snapshot) *ParticipantState_Final_Call
func (*ParticipantState_Final_Call) Run ¶ added in v0.46.0
func (_c *ParticipantState_Final_Call) Run(run func()) *ParticipantState_Final_Call
func (*ParticipantState_Final_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantState_Final_Call) RunAndReturn(run func() protocol.Snapshot) *ParticipantState_Final_Call
type ParticipantState_Finalize_Call ¶ added in v0.46.0
ParticipantState_Finalize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Finalize'
func (*ParticipantState_Finalize_Call) Return ¶ added in v0.46.0
func (_c *ParticipantState_Finalize_Call) Return(err error) *ParticipantState_Finalize_Call
func (*ParticipantState_Finalize_Call) Run ¶ added in v0.46.0
func (_c *ParticipantState_Finalize_Call) Run(run func(ctx context.Context, blockID flow.Identifier)) *ParticipantState_Finalize_Call
func (*ParticipantState_Finalize_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantState_Finalize_Call) RunAndReturn(run func(ctx context.Context, blockID flow.Identifier) error) *ParticipantState_Finalize_Call
type ParticipantState_Params_Call ¶ added in v0.46.0
ParticipantState_Params_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Params'
func (*ParticipantState_Params_Call) Return ¶ added in v0.46.0
func (_c *ParticipantState_Params_Call) Return(params protocol.Params) *ParticipantState_Params_Call
func (*ParticipantState_Params_Call) Run ¶ added in v0.46.0
func (_c *ParticipantState_Params_Call) Run(run func()) *ParticipantState_Params_Call
func (*ParticipantState_Params_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantState_Params_Call) RunAndReturn(run func() protocol.Params) *ParticipantState_Params_Call
type ParticipantState_Sealed_Call ¶ added in v0.46.0
ParticipantState_Sealed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sealed'
func (*ParticipantState_Sealed_Call) Return ¶ added in v0.46.0
func (_c *ParticipantState_Sealed_Call) Return(snapshot protocol.Snapshot) *ParticipantState_Sealed_Call
func (*ParticipantState_Sealed_Call) Run ¶ added in v0.46.0
func (_c *ParticipantState_Sealed_Call) Run(run func()) *ParticipantState_Sealed_Call
func (*ParticipantState_Sealed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ParticipantState_Sealed_Call) RunAndReturn(run func() protocol.Snapshot) *ParticipantState_Sealed_Call
type ProtocolState ¶ added in v0.33.30
ProtocolState is an autogenerated mock type for the ProtocolState type
func NewProtocolState ¶ added in v0.33.30
func NewProtocolState(t interface {
mock.TestingT
Cleanup(func())
}) *ProtocolState
NewProtocolState creates a new instance of ProtocolState. 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 (*ProtocolState) EXPECT ¶ added in v0.46.0
func (_m *ProtocolState) EXPECT() *ProtocolState_Expecter
func (*ProtocolState) EpochStateAtBlockID ¶ added in v0.33.30
func (_mock *ProtocolState) EpochStateAtBlockID(blockID flow.Identifier) (protocol.EpochProtocolState, error)
EpochStateAtBlockID provides a mock function for the type ProtocolState
func (*ProtocolState) GlobalParams ¶ added in v0.33.30
func (_mock *ProtocolState) GlobalParams() protocol.GlobalParams
GlobalParams provides a mock function for the type ProtocolState
func (*ProtocolState) KVStoreAtBlockID ¶ added in v0.33.30
func (_mock *ProtocolState) KVStoreAtBlockID(blockID flow.Identifier) (protocol.KVStoreReader, error)
KVStoreAtBlockID provides a mock function for the type ProtocolState
type ProtocolState_EpochStateAtBlockID_Call ¶ added in v0.46.0
ProtocolState_EpochStateAtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochStateAtBlockID'
func (*ProtocolState_EpochStateAtBlockID_Call) Return ¶ added in v0.46.0
func (_c *ProtocolState_EpochStateAtBlockID_Call) Return(epochProtocolState protocol.EpochProtocolState, err error) *ProtocolState_EpochStateAtBlockID_Call
func (*ProtocolState_EpochStateAtBlockID_Call) Run ¶ added in v0.46.0
func (_c *ProtocolState_EpochStateAtBlockID_Call) Run(run func(blockID flow.Identifier)) *ProtocolState_EpochStateAtBlockID_Call
func (*ProtocolState_EpochStateAtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProtocolState_EpochStateAtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol.EpochProtocolState, error)) *ProtocolState_EpochStateAtBlockID_Call
type ProtocolState_Expecter ¶ added in v0.46.0
type ProtocolState_Expecter struct {
// contains filtered or unexported fields
}
func (*ProtocolState_Expecter) EpochStateAtBlockID ¶ added in v0.46.0
func (_e *ProtocolState_Expecter) EpochStateAtBlockID(blockID interface{}) *ProtocolState_EpochStateAtBlockID_Call
EpochStateAtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
func (*ProtocolState_Expecter) GlobalParams ¶ added in v0.46.0
func (_e *ProtocolState_Expecter) GlobalParams() *ProtocolState_GlobalParams_Call
GlobalParams is a helper method to define mock.On call
func (*ProtocolState_Expecter) KVStoreAtBlockID ¶ added in v0.46.0
func (_e *ProtocolState_Expecter) KVStoreAtBlockID(blockID interface{}) *ProtocolState_KVStoreAtBlockID_Call
KVStoreAtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
type ProtocolState_GlobalParams_Call ¶ added in v0.46.0
ProtocolState_GlobalParams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GlobalParams'
func (*ProtocolState_GlobalParams_Call) Return ¶ added in v0.46.0
func (_c *ProtocolState_GlobalParams_Call) Return(globalParams protocol.GlobalParams) *ProtocolState_GlobalParams_Call
func (*ProtocolState_GlobalParams_Call) Run ¶ added in v0.46.0
func (_c *ProtocolState_GlobalParams_Call) Run(run func()) *ProtocolState_GlobalParams_Call
func (*ProtocolState_GlobalParams_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProtocolState_GlobalParams_Call) RunAndReturn(run func() protocol.GlobalParams) *ProtocolState_GlobalParams_Call
type ProtocolState_KVStoreAtBlockID_Call ¶ added in v0.46.0
ProtocolState_KVStoreAtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'KVStoreAtBlockID'
func (*ProtocolState_KVStoreAtBlockID_Call) Return ¶ added in v0.46.0
func (_c *ProtocolState_KVStoreAtBlockID_Call) Return(kVStoreReader protocol.KVStoreReader, err error) *ProtocolState_KVStoreAtBlockID_Call
func (*ProtocolState_KVStoreAtBlockID_Call) Run ¶ added in v0.46.0
func (_c *ProtocolState_KVStoreAtBlockID_Call) Run(run func(blockID flow.Identifier)) *ProtocolState_KVStoreAtBlockID_Call
func (*ProtocolState_KVStoreAtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *ProtocolState_KVStoreAtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) (protocol.KVStoreReader, error)) *ProtocolState_KVStoreAtBlockID_Call
type Snapshot ¶
Snapshot is an autogenerated mock type for the Snapshot type
func NewSnapshot ¶ added in v0.26.1
NewSnapshot creates a new instance of Snapshot. 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 (*Snapshot) Commit ¶
func (_mock *Snapshot) Commit() (flow.StateCommitment, error)
Commit provides a mock function for the type Snapshot
func (*Snapshot) Descendants ¶ added in v0.17.6
func (_mock *Snapshot) Descendants() ([]flow.Identifier, error)
Descendants provides a mock function for the type Snapshot
func (*Snapshot) EXPECT ¶ added in v0.46.0
func (_m *Snapshot) EXPECT() *Snapshot_Expecter
func (*Snapshot) EpochPhase ¶ added in v0.37.1
func (_mock *Snapshot) EpochPhase() (flow.EpochPhase, error)
EpochPhase provides a mock function for the type Snapshot
func (*Snapshot) EpochProtocolState ¶ added in v0.33.30
func (_mock *Snapshot) EpochProtocolState() (protocol.EpochProtocolState, error)
EpochProtocolState provides a mock function for the type Snapshot
func (*Snapshot) Epochs ¶
func (_mock *Snapshot) Epochs() protocol.EpochQuery
Epochs provides a mock function for the type Snapshot
func (*Snapshot) Identities ¶
func (_mock *Snapshot) Identities(selector flow.IdentityFilter[flow.Identity]) (flow.IdentityList, error)
Identities provides a mock function for the type Snapshot
func (*Snapshot) Params ¶ added in v0.23.2
func (_mock *Snapshot) Params() protocol.GlobalParams
Params provides a mock function for the type Snapshot
func (*Snapshot) ProtocolState ¶ added in v0.33.30
func (_mock *Snapshot) ProtocolState() (protocol.KVStoreReader, error)
ProtocolState provides a mock function for the type Snapshot
func (*Snapshot) QuorumCertificate ¶ added in v0.15.0
func (_mock *Snapshot) QuorumCertificate() (*flow.QuorumCertificate, error)
QuorumCertificate provides a mock function for the type Snapshot
func (*Snapshot) RandomSource ¶ added in v0.25.0
RandomSource provides a mock function for the type Snapshot
func (*Snapshot) SealedResult ¶ added in v0.15.0
SealedResult provides a mock function for the type Snapshot
func (*Snapshot) SealingSegment ¶ added in v0.15.0
func (_mock *Snapshot) SealingSegment() (*flow.SealingSegment, error)
SealingSegment provides a mock function for the type Snapshot
func (*Snapshot) VersionBeacon ¶ added in v0.31.0
func (_mock *Snapshot) VersionBeacon() (*flow.SealedVersionBeacon, error)
VersionBeacon provides a mock function for the type Snapshot
type SnapshotExecutionSubset ¶ added in v0.37.25
SnapshotExecutionSubset is an autogenerated mock type for the SnapshotExecutionSubset type
func NewSnapshotExecutionSubset ¶ added in v0.37.25
func NewSnapshotExecutionSubset(t interface {
mock.TestingT
Cleanup(func())
}) *SnapshotExecutionSubset
NewSnapshotExecutionSubset creates a new instance of SnapshotExecutionSubset. 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 (*SnapshotExecutionSubset) EXPECT ¶ added in v0.46.0
func (_m *SnapshotExecutionSubset) EXPECT() *SnapshotExecutionSubset_Expecter
func (*SnapshotExecutionSubset) RandomSource ¶ added in v0.37.25
func (_mock *SnapshotExecutionSubset) RandomSource() ([]byte, error)
RandomSource provides a mock function for the type SnapshotExecutionSubset
func (*SnapshotExecutionSubset) VersionBeacon ¶ added in v0.37.25
func (_mock *SnapshotExecutionSubset) VersionBeacon() (*flow.SealedVersionBeacon, error)
VersionBeacon provides a mock function for the type SnapshotExecutionSubset
type SnapshotExecutionSubsetProvider ¶ added in v0.37.25
SnapshotExecutionSubsetProvider is an autogenerated mock type for the SnapshotExecutionSubsetProvider type
func NewSnapshotExecutionSubsetProvider ¶ added in v0.37.25
func NewSnapshotExecutionSubsetProvider(t interface {
mock.TestingT
Cleanup(func())
}) *SnapshotExecutionSubsetProvider
NewSnapshotExecutionSubsetProvider creates a new instance of SnapshotExecutionSubsetProvider. 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 (*SnapshotExecutionSubsetProvider) AtBlockID ¶ added in v0.37.25
func (_mock *SnapshotExecutionSubsetProvider) AtBlockID(blockID flow.Identifier) protocol.SnapshotExecutionSubset
AtBlockID provides a mock function for the type SnapshotExecutionSubsetProvider
func (*SnapshotExecutionSubsetProvider) EXPECT ¶ added in v0.46.0
func (_m *SnapshotExecutionSubsetProvider) EXPECT() *SnapshotExecutionSubsetProvider_Expecter
type SnapshotExecutionSubsetProvider_AtBlockID_Call ¶ added in v0.46.0
SnapshotExecutionSubsetProvider_AtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AtBlockID'
func (*SnapshotExecutionSubsetProvider_AtBlockID_Call) Return ¶ added in v0.46.0
func (_c *SnapshotExecutionSubsetProvider_AtBlockID_Call) Return(snapshotExecutionSubset protocol.SnapshotExecutionSubset) *SnapshotExecutionSubsetProvider_AtBlockID_Call
func (*SnapshotExecutionSubsetProvider_AtBlockID_Call) Run ¶ added in v0.46.0
func (_c *SnapshotExecutionSubsetProvider_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *SnapshotExecutionSubsetProvider_AtBlockID_Call
func (*SnapshotExecutionSubsetProvider_AtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *SnapshotExecutionSubsetProvider_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) protocol.SnapshotExecutionSubset) *SnapshotExecutionSubsetProvider_AtBlockID_Call
type SnapshotExecutionSubsetProvider_Expecter ¶ added in v0.46.0
type SnapshotExecutionSubsetProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*SnapshotExecutionSubsetProvider_Expecter) AtBlockID ¶ added in v0.46.0
func (_e *SnapshotExecutionSubsetProvider_Expecter) AtBlockID(blockID interface{}) *SnapshotExecutionSubsetProvider_AtBlockID_Call
AtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
type SnapshotExecutionSubset_Expecter ¶ added in v0.46.0
type SnapshotExecutionSubset_Expecter struct {
// contains filtered or unexported fields
}
func (*SnapshotExecutionSubset_Expecter) RandomSource ¶ added in v0.46.0
func (_e *SnapshotExecutionSubset_Expecter) RandomSource() *SnapshotExecutionSubset_RandomSource_Call
RandomSource is a helper method to define mock.On call
func (*SnapshotExecutionSubset_Expecter) VersionBeacon ¶ added in v0.46.0
func (_e *SnapshotExecutionSubset_Expecter) VersionBeacon() *SnapshotExecutionSubset_VersionBeacon_Call
VersionBeacon is a helper method to define mock.On call
type SnapshotExecutionSubset_RandomSource_Call ¶ added in v0.46.0
SnapshotExecutionSubset_RandomSource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RandomSource'
func (*SnapshotExecutionSubset_RandomSource_Call) Return ¶ added in v0.46.0
func (_c *SnapshotExecutionSubset_RandomSource_Call) Return(bytes []byte, err error) *SnapshotExecutionSubset_RandomSource_Call
func (*SnapshotExecutionSubset_RandomSource_Call) Run ¶ added in v0.46.0
func (_c *SnapshotExecutionSubset_RandomSource_Call) Run(run func()) *SnapshotExecutionSubset_RandomSource_Call
func (*SnapshotExecutionSubset_RandomSource_Call) RunAndReturn ¶ added in v0.46.0
func (_c *SnapshotExecutionSubset_RandomSource_Call) RunAndReturn(run func() ([]byte, error)) *SnapshotExecutionSubset_RandomSource_Call
type SnapshotExecutionSubset_VersionBeacon_Call ¶ added in v0.46.0
SnapshotExecutionSubset_VersionBeacon_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VersionBeacon'
func (*SnapshotExecutionSubset_VersionBeacon_Call) Return ¶ added in v0.46.0
func (_c *SnapshotExecutionSubset_VersionBeacon_Call) Return(sealedVersionBeacon *flow.SealedVersionBeacon, err error) *SnapshotExecutionSubset_VersionBeacon_Call
func (*SnapshotExecutionSubset_VersionBeacon_Call) Run ¶ added in v0.46.0
func (_c *SnapshotExecutionSubset_VersionBeacon_Call) Run(run func()) *SnapshotExecutionSubset_VersionBeacon_Call
func (*SnapshotExecutionSubset_VersionBeacon_Call) RunAndReturn ¶ added in v0.46.0
func (_c *SnapshotExecutionSubset_VersionBeacon_Call) RunAndReturn(run func() (*flow.SealedVersionBeacon, error)) *SnapshotExecutionSubset_VersionBeacon_Call
type Snapshot_Commit_Call ¶ added in v0.46.0
Snapshot_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*Snapshot_Commit_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Commit_Call) Return(stateCommitment flow.StateCommitment, err error) *Snapshot_Commit_Call
func (*Snapshot_Commit_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Commit_Call) Run(run func()) *Snapshot_Commit_Call
func (*Snapshot_Commit_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Commit_Call) RunAndReturn(run func() (flow.StateCommitment, error)) *Snapshot_Commit_Call
type Snapshot_Descendants_Call ¶ added in v0.46.0
Snapshot_Descendants_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Descendants'
func (*Snapshot_Descendants_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Descendants_Call) Return(identifiers []flow.Identifier, err error) *Snapshot_Descendants_Call
func (*Snapshot_Descendants_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Descendants_Call) Run(run func()) *Snapshot_Descendants_Call
func (*Snapshot_Descendants_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Descendants_Call) RunAndReturn(run func() ([]flow.Identifier, error)) *Snapshot_Descendants_Call
type Snapshot_EpochPhase_Call ¶ added in v0.46.0
Snapshot_EpochPhase_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochPhase'
func (*Snapshot_EpochPhase_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_EpochPhase_Call) Return(epochPhase flow.EpochPhase, err error) *Snapshot_EpochPhase_Call
func (*Snapshot_EpochPhase_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_EpochPhase_Call) Run(run func()) *Snapshot_EpochPhase_Call
func (*Snapshot_EpochPhase_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_EpochPhase_Call) RunAndReturn(run func() (flow.EpochPhase, error)) *Snapshot_EpochPhase_Call
type Snapshot_EpochProtocolState_Call ¶ added in v0.46.0
Snapshot_EpochProtocolState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EpochProtocolState'
func (*Snapshot_EpochProtocolState_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_EpochProtocolState_Call) Return(epochProtocolState protocol.EpochProtocolState, err error) *Snapshot_EpochProtocolState_Call
func (*Snapshot_EpochProtocolState_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_EpochProtocolState_Call) Run(run func()) *Snapshot_EpochProtocolState_Call
func (*Snapshot_EpochProtocolState_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_EpochProtocolState_Call) RunAndReturn(run func() (protocol.EpochProtocolState, error)) *Snapshot_EpochProtocolState_Call
type Snapshot_Epochs_Call ¶ added in v0.46.0
Snapshot_Epochs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Epochs'
func (*Snapshot_Epochs_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Epochs_Call) Return(epochQuery protocol.EpochQuery) *Snapshot_Epochs_Call
func (*Snapshot_Epochs_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Epochs_Call) Run(run func()) *Snapshot_Epochs_Call
func (*Snapshot_Epochs_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Epochs_Call) RunAndReturn(run func() protocol.EpochQuery) *Snapshot_Epochs_Call
type Snapshot_Expecter ¶ added in v0.46.0
type Snapshot_Expecter struct {
// contains filtered or unexported fields
}
func (*Snapshot_Expecter) Commit ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Commit() *Snapshot_Commit_Call
Commit is a helper method to define mock.On call
func (*Snapshot_Expecter) Descendants ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Descendants() *Snapshot_Descendants_Call
Descendants is a helper method to define mock.On call
func (*Snapshot_Expecter) EpochPhase ¶ added in v0.46.0
func (_e *Snapshot_Expecter) EpochPhase() *Snapshot_EpochPhase_Call
EpochPhase is a helper method to define mock.On call
func (*Snapshot_Expecter) EpochProtocolState ¶ added in v0.46.0
func (_e *Snapshot_Expecter) EpochProtocolState() *Snapshot_EpochProtocolState_Call
EpochProtocolState is a helper method to define mock.On call
func (*Snapshot_Expecter) Epochs ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Epochs() *Snapshot_Epochs_Call
Epochs is a helper method to define mock.On call
func (*Snapshot_Expecter) Head ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Head() *Snapshot_Head_Call
Head is a helper method to define mock.On call
func (*Snapshot_Expecter) Identities ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Identities(selector interface{}) *Snapshot_Identities_Call
Identities is a helper method to define mock.On call
- selector flow.IdentityFilter[flow.Identity]
func (*Snapshot_Expecter) Identity ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Identity(nodeID interface{}) *Snapshot_Identity_Call
Identity is a helper method to define mock.On call
- nodeID flow.Identifier
func (*Snapshot_Expecter) Params ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Params() *Snapshot_Params_Call
Params is a helper method to define mock.On call
func (*Snapshot_Expecter) ProtocolState ¶ added in v0.46.0
func (_e *Snapshot_Expecter) ProtocolState() *Snapshot_ProtocolState_Call
ProtocolState is a helper method to define mock.On call
func (*Snapshot_Expecter) QuorumCertificate ¶ added in v0.46.0
func (_e *Snapshot_Expecter) QuorumCertificate() *Snapshot_QuorumCertificate_Call
QuorumCertificate is a helper method to define mock.On call
func (*Snapshot_Expecter) RandomSource ¶ added in v0.46.0
func (_e *Snapshot_Expecter) RandomSource() *Snapshot_RandomSource_Call
RandomSource is a helper method to define mock.On call
func (*Snapshot_Expecter) SealedResult ¶ added in v0.46.0
func (_e *Snapshot_Expecter) SealedResult() *Snapshot_SealedResult_Call
SealedResult is a helper method to define mock.On call
func (*Snapshot_Expecter) SealingSegment ¶ added in v0.46.0
func (_e *Snapshot_Expecter) SealingSegment() *Snapshot_SealingSegment_Call
SealingSegment is a helper method to define mock.On call
func (*Snapshot_Expecter) VersionBeacon ¶ added in v0.46.0
func (_e *Snapshot_Expecter) VersionBeacon() *Snapshot_VersionBeacon_Call
VersionBeacon is a helper method to define mock.On call
type Snapshot_Head_Call ¶ added in v0.46.0
Snapshot_Head_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Head'
func (*Snapshot_Head_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Head_Call) Return(header *flow.Header, err error) *Snapshot_Head_Call
func (*Snapshot_Head_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Head_Call) Run(run func()) *Snapshot_Head_Call
func (*Snapshot_Head_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Head_Call) RunAndReturn(run func() (*flow.Header, error)) *Snapshot_Head_Call
type Snapshot_Identities_Call ¶ added in v0.46.0
Snapshot_Identities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Identities'
func (*Snapshot_Identities_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Identities_Call) Return(v flow.IdentityList, err error) *Snapshot_Identities_Call
func (*Snapshot_Identities_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Identities_Call) Run(run func(selector flow.IdentityFilter[flow.Identity])) *Snapshot_Identities_Call
func (*Snapshot_Identities_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Identities_Call) RunAndReturn(run func(selector flow.IdentityFilter[flow.Identity]) (flow.IdentityList, error)) *Snapshot_Identities_Call
type Snapshot_Identity_Call ¶ added in v0.46.0
Snapshot_Identity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Identity'
func (*Snapshot_Identity_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Identity_Call) Return(identity *flow.Identity, err error) *Snapshot_Identity_Call
func (*Snapshot_Identity_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Identity_Call) Run(run func(nodeID flow.Identifier)) *Snapshot_Identity_Call
func (*Snapshot_Identity_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Identity_Call) RunAndReturn(run func(nodeID flow.Identifier) (*flow.Identity, error)) *Snapshot_Identity_Call
type Snapshot_Params_Call ¶ added in v0.46.0
Snapshot_Params_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Params'
func (*Snapshot_Params_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Params_Call) Return(globalParams protocol.GlobalParams) *Snapshot_Params_Call
func (*Snapshot_Params_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Params_Call) Run(run func()) *Snapshot_Params_Call
func (*Snapshot_Params_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Params_Call) RunAndReturn(run func() protocol.GlobalParams) *Snapshot_Params_Call
type Snapshot_ProtocolState_Call ¶ added in v0.46.0
Snapshot_ProtocolState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProtocolState'
func (*Snapshot_ProtocolState_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_ProtocolState_Call) Return(kVStoreReader protocol.KVStoreReader, err error) *Snapshot_ProtocolState_Call
func (*Snapshot_ProtocolState_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_ProtocolState_Call) Run(run func()) *Snapshot_ProtocolState_Call
func (*Snapshot_ProtocolState_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_ProtocolState_Call) RunAndReturn(run func() (protocol.KVStoreReader, error)) *Snapshot_ProtocolState_Call
type Snapshot_QuorumCertificate_Call ¶ added in v0.46.0
Snapshot_QuorumCertificate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QuorumCertificate'
func (*Snapshot_QuorumCertificate_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_QuorumCertificate_Call) Return(quorumCertificate *flow.QuorumCertificate, err error) *Snapshot_QuorumCertificate_Call
func (*Snapshot_QuorumCertificate_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_QuorumCertificate_Call) Run(run func()) *Snapshot_QuorumCertificate_Call
func (*Snapshot_QuorumCertificate_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_QuorumCertificate_Call) RunAndReturn(run func() (*flow.QuorumCertificate, error)) *Snapshot_QuorumCertificate_Call
type Snapshot_RandomSource_Call ¶ added in v0.46.0
Snapshot_RandomSource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RandomSource'
func (*Snapshot_RandomSource_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_RandomSource_Call) Return(bytes []byte, err error) *Snapshot_RandomSource_Call
func (*Snapshot_RandomSource_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_RandomSource_Call) Run(run func()) *Snapshot_RandomSource_Call
func (*Snapshot_RandomSource_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_RandomSource_Call) RunAndReturn(run func() ([]byte, error)) *Snapshot_RandomSource_Call
type Snapshot_SealedResult_Call ¶ added in v0.46.0
Snapshot_SealedResult_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SealedResult'
func (*Snapshot_SealedResult_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_SealedResult_Call) Return(executionResult *flow.ExecutionResult, seal *flow.Seal, err error) *Snapshot_SealedResult_Call
func (*Snapshot_SealedResult_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_SealedResult_Call) Run(run func()) *Snapshot_SealedResult_Call
func (*Snapshot_SealedResult_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_SealedResult_Call) RunAndReturn(run func() (*flow.ExecutionResult, *flow.Seal, error)) *Snapshot_SealedResult_Call
type Snapshot_SealingSegment_Call ¶ added in v0.46.0
Snapshot_SealingSegment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SealingSegment'
func (*Snapshot_SealingSegment_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_SealingSegment_Call) Return(sealingSegment *flow.SealingSegment, err error) *Snapshot_SealingSegment_Call
func (*Snapshot_SealingSegment_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_SealingSegment_Call) Run(run func()) *Snapshot_SealingSegment_Call
func (*Snapshot_SealingSegment_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_SealingSegment_Call) RunAndReturn(run func() (*flow.SealingSegment, error)) *Snapshot_SealingSegment_Call
type Snapshot_VersionBeacon_Call ¶ added in v0.46.0
Snapshot_VersionBeacon_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VersionBeacon'
func (*Snapshot_VersionBeacon_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_VersionBeacon_Call) Return(sealedVersionBeacon *flow.SealedVersionBeacon, err error) *Snapshot_VersionBeacon_Call
func (*Snapshot_VersionBeacon_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_VersionBeacon_Call) Run(run func()) *Snapshot_VersionBeacon_Call
func (*Snapshot_VersionBeacon_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_VersionBeacon_Call) RunAndReturn(run func() (*flow.SealedVersionBeacon, error)) *Snapshot_VersionBeacon_Call
type State ¶
State is an autogenerated mock type for the State type
func NewState ¶ added in v0.26.1
NewState creates a new instance of State. 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 (*State) AtBlockID ¶
func (_mock *State) AtBlockID(blockID flow.Identifier) protocol.Snapshot
AtBlockID provides a mock function for the type State
func (*State) EXPECT ¶ added in v0.46.0
func (_m *State) EXPECT() *State_Expecter
type State_AtBlockID_Call ¶ added in v0.46.0
State_AtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AtBlockID'
func (*State_AtBlockID_Call) Return ¶ added in v0.46.0
func (_c *State_AtBlockID_Call) Return(snapshot protocol.Snapshot) *State_AtBlockID_Call
func (*State_AtBlockID_Call) Run ¶ added in v0.46.0
func (_c *State_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *State_AtBlockID_Call
func (*State_AtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *State_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) protocol.Snapshot) *State_AtBlockID_Call
type State_AtHeight_Call ¶ added in v0.46.0
State_AtHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AtHeight'
func (*State_AtHeight_Call) Return ¶ added in v0.46.0
func (_c *State_AtHeight_Call) Return(snapshot protocol.Snapshot) *State_AtHeight_Call
func (*State_AtHeight_Call) Run ¶ added in v0.46.0
func (_c *State_AtHeight_Call) Run(run func(height uint64)) *State_AtHeight_Call
func (*State_AtHeight_Call) RunAndReturn ¶ added in v0.46.0
func (_c *State_AtHeight_Call) RunAndReturn(run func(height uint64) protocol.Snapshot) *State_AtHeight_Call
type State_Expecter ¶ added in v0.46.0
type State_Expecter struct {
// contains filtered or unexported fields
}
func (*State_Expecter) AtBlockID ¶ added in v0.46.0
func (_e *State_Expecter) AtBlockID(blockID interface{}) *State_AtBlockID_Call
AtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
func (*State_Expecter) AtHeight ¶ added in v0.46.0
func (_e *State_Expecter) AtHeight(height interface{}) *State_AtHeight_Call
AtHeight is a helper method to define mock.On call
- height uint64
func (*State_Expecter) Final ¶ added in v0.46.0
func (_e *State_Expecter) Final() *State_Final_Call
Final is a helper method to define mock.On call
func (*State_Expecter) Params ¶ added in v0.46.0
func (_e *State_Expecter) Params() *State_Params_Call
Params is a helper method to define mock.On call
func (*State_Expecter) Sealed ¶ added in v0.46.0
func (_e *State_Expecter) Sealed() *State_Sealed_Call
Sealed is a helper method to define mock.On call
type State_Final_Call ¶ added in v0.46.0
State_Final_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Final'
func (*State_Final_Call) Return ¶ added in v0.46.0
func (_c *State_Final_Call) Return(snapshot protocol.Snapshot) *State_Final_Call
func (*State_Final_Call) Run ¶ added in v0.46.0
func (_c *State_Final_Call) Run(run func()) *State_Final_Call
func (*State_Final_Call) RunAndReturn ¶ added in v0.46.0
func (_c *State_Final_Call) RunAndReturn(run func() protocol.Snapshot) *State_Final_Call
type State_Params_Call ¶ added in v0.46.0
State_Params_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Params'
func (*State_Params_Call) Return ¶ added in v0.46.0
func (_c *State_Params_Call) Return(params protocol.Params) *State_Params_Call
func (*State_Params_Call) Run ¶ added in v0.46.0
func (_c *State_Params_Call) Run(run func()) *State_Params_Call
func (*State_Params_Call) RunAndReturn ¶ added in v0.46.0
func (_c *State_Params_Call) RunAndReturn(run func() protocol.Params) *State_Params_Call
type State_Sealed_Call ¶ added in v0.46.0
State_Sealed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sealed'
func (*State_Sealed_Call) Return ¶ added in v0.46.0
func (_c *State_Sealed_Call) Return(snapshot protocol.Snapshot) *State_Sealed_Call
func (*State_Sealed_Call) Run ¶ added in v0.46.0
func (_c *State_Sealed_Call) Run(run func()) *State_Sealed_Call
func (*State_Sealed_Call) RunAndReturn ¶ added in v0.46.0
func (_c *State_Sealed_Call) RunAndReturn(run func() protocol.Snapshot) *State_Sealed_Call
type TentativeEpoch ¶ added in v0.39.2
TentativeEpoch is an autogenerated mock type for the TentativeEpoch type
func NewTentativeEpoch ¶ added in v0.39.2
func NewTentativeEpoch(t interface {
mock.TestingT
Cleanup(func())
}) *TentativeEpoch
NewTentativeEpoch creates a new instance of TentativeEpoch. 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 (*TentativeEpoch) Clustering ¶ added in v0.39.2
func (_mock *TentativeEpoch) Clustering() (flow.ClusterList, error)
Clustering provides a mock function for the type TentativeEpoch
func (*TentativeEpoch) Counter ¶ added in v0.39.2
func (_mock *TentativeEpoch) Counter() uint64
Counter provides a mock function for the type TentativeEpoch
func (*TentativeEpoch) EXPECT ¶ added in v0.46.0
func (_m *TentativeEpoch) EXPECT() *TentativeEpoch_Expecter
func (*TentativeEpoch) InitialIdentities ¶ added in v0.39.2
func (_mock *TentativeEpoch) InitialIdentities() flow.IdentitySkeletonList
InitialIdentities provides a mock function for the type TentativeEpoch
type TentativeEpoch_Clustering_Call ¶ added in v0.46.0
TentativeEpoch_Clustering_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clustering'
func (*TentativeEpoch_Clustering_Call) Return ¶ added in v0.46.0
func (_c *TentativeEpoch_Clustering_Call) Return(clusterList flow.ClusterList, err error) *TentativeEpoch_Clustering_Call
func (*TentativeEpoch_Clustering_Call) Run ¶ added in v0.46.0
func (_c *TentativeEpoch_Clustering_Call) Run(run func()) *TentativeEpoch_Clustering_Call
func (*TentativeEpoch_Clustering_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TentativeEpoch_Clustering_Call) RunAndReturn(run func() (flow.ClusterList, error)) *TentativeEpoch_Clustering_Call
type TentativeEpoch_Counter_Call ¶ added in v0.46.0
TentativeEpoch_Counter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Counter'
func (*TentativeEpoch_Counter_Call) Return ¶ added in v0.46.0
func (_c *TentativeEpoch_Counter_Call) Return(v uint64) *TentativeEpoch_Counter_Call
func (*TentativeEpoch_Counter_Call) Run ¶ added in v0.46.0
func (_c *TentativeEpoch_Counter_Call) Run(run func()) *TentativeEpoch_Counter_Call
func (*TentativeEpoch_Counter_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TentativeEpoch_Counter_Call) RunAndReturn(run func() uint64) *TentativeEpoch_Counter_Call
type TentativeEpoch_Expecter ¶ added in v0.46.0
type TentativeEpoch_Expecter struct {
// contains filtered or unexported fields
}
func (*TentativeEpoch_Expecter) Clustering ¶ added in v0.46.0
func (_e *TentativeEpoch_Expecter) Clustering() *TentativeEpoch_Clustering_Call
Clustering is a helper method to define mock.On call
func (*TentativeEpoch_Expecter) Counter ¶ added in v0.46.0
func (_e *TentativeEpoch_Expecter) Counter() *TentativeEpoch_Counter_Call
Counter is a helper method to define mock.On call
func (*TentativeEpoch_Expecter) InitialIdentities ¶ added in v0.46.0
func (_e *TentativeEpoch_Expecter) InitialIdentities() *TentativeEpoch_InitialIdentities_Call
InitialIdentities is a helper method to define mock.On call
type TentativeEpoch_InitialIdentities_Call ¶ added in v0.46.0
TentativeEpoch_InitialIdentities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitialIdentities'
func (*TentativeEpoch_InitialIdentities_Call) Return ¶ added in v0.46.0
func (_c *TentativeEpoch_InitialIdentities_Call) Return(v flow.IdentitySkeletonList) *TentativeEpoch_InitialIdentities_Call
func (*TentativeEpoch_InitialIdentities_Call) Run ¶ added in v0.46.0
func (_c *TentativeEpoch_InitialIdentities_Call) Run(run func()) *TentativeEpoch_InitialIdentities_Call
func (*TentativeEpoch_InitialIdentities_Call) RunAndReturn ¶ added in v0.46.0
func (_c *TentativeEpoch_InitialIdentities_Call) RunAndReturn(run func() flow.IdentitySkeletonList) *TentativeEpoch_InitialIdentities_Call
type VersionedEncodable ¶ added in v0.33.30
VersionedEncodable is an autogenerated mock type for the VersionedEncodable type
func NewVersionedEncodable ¶ added in v0.33.30
func NewVersionedEncodable(t interface {
mock.TestingT
Cleanup(func())
}) *VersionedEncodable
NewVersionedEncodable creates a new instance of VersionedEncodable. 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 (*VersionedEncodable) EXPECT ¶ added in v0.46.0
func (_m *VersionedEncodable) EXPECT() *VersionedEncodable_Expecter
func (*VersionedEncodable) VersionedEncode ¶ added in v0.33.30
func (_mock *VersionedEncodable) VersionedEncode() (uint64, []byte, error)
VersionedEncode provides a mock function for the type VersionedEncodable
type VersionedEncodable_Expecter ¶ added in v0.46.0
type VersionedEncodable_Expecter struct {
// contains filtered or unexported fields
}
func (*VersionedEncodable_Expecter) VersionedEncode ¶ added in v0.46.0
func (_e *VersionedEncodable_Expecter) VersionedEncode() *VersionedEncodable_VersionedEncode_Call
VersionedEncode is a helper method to define mock.On call
type VersionedEncodable_VersionedEncode_Call ¶ added in v0.46.0
VersionedEncodable_VersionedEncode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VersionedEncode'
func (*VersionedEncodable_VersionedEncode_Call) Return ¶ added in v0.46.0
func (_c *VersionedEncodable_VersionedEncode_Call) Return(v uint64, bytes []byte, err error) *VersionedEncodable_VersionedEncode_Call
func (*VersionedEncodable_VersionedEncode_Call) Run ¶ added in v0.46.0
func (_c *VersionedEncodable_VersionedEncode_Call) Run(run func()) *VersionedEncodable_VersionedEncode_Call
func (*VersionedEncodable_VersionedEncode_Call) RunAndReturn ¶ added in v0.46.0
func (_c *VersionedEncodable_VersionedEncode_Call) RunAndReturn(run func() (uint64, []byte, error)) *VersionedEncodable_VersionedEncode_Call
Source Files
¶
- block_timer.go
- cluster.go
- committed_epoch.go
- consumer.go
- dkg.go
- epoch_protocol_state.go
- epoch_query.go
- follower_state.go
- global_params.go
- instance_params.go
- kv_store_reader.go
- mutable_protocol_state.go
- params.go
- participant_state.go
- protocol_state.go
- snapshot.go
- snapshot_execution_subset.go
- snapshot_execution_subset_provider.go
- state.go
- tentative_epoch.go
- versioned_encodable.go