mock

package
v0.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: AGPL-3.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockTimer added in v0.20.0

type BlockTimer struct {
	mock.Mock
}

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

func (*BlockTimer) Validate added in v0.20.0

func (_mock *BlockTimer) Validate(parentTimestamp uint64, currentTimestamp uint64) error

Validate provides a mock function for the type BlockTimer

type BlockTimer_Build_Call added in v0.46.0

type BlockTimer_Build_Call struct {
	*mock.Call
}

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 (*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

type BlockTimer_Validate_Call struct {
	*mock.Call
}

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 (*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

type Cluster struct {
	mock.Mock
}

Cluster is an autogenerated mock type for the Cluster type

func NewCluster added in v0.26.1

func NewCluster(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cluster

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) ChainID

func (_mock *Cluster) ChainID() flow.ChainID

ChainID provides a mock function for the type Cluster

func (*Cluster) EXPECT added in v0.46.0

func (_m *Cluster) EXPECT() *Cluster_Expecter

func (*Cluster) EpochCounter

func (_mock *Cluster) EpochCounter() uint64

EpochCounter provides a mock function for the type Cluster

func (*Cluster) Index

func (_mock *Cluster) Index() uint

Index 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) RootBlock

func (_mock *Cluster) RootBlock() *cluster.Block

RootBlock 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

type Cluster_ChainID_Call struct {
	*mock.Call
}

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 (*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

type Cluster_EpochCounter_Call struct {
	*mock.Call
}

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 (*Cluster_EpochCounter_Call) Run added in v0.46.0

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

type Cluster_Index_Call struct {
	*mock.Call
}

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 (*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

type Cluster_Members_Call struct {
	*mock.Call
}

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 (*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

type Cluster_RootBlock_Call added in v0.46.0

type Cluster_RootBlock_Call struct {
	*mock.Call
}

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 (*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

type Cluster_RootQC_Call struct {
	*mock.Call
}

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

type CommittedEpoch struct {
	mock.Mock
}

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

func (_mock *CommittedEpoch) ClusterByChainID(chainID flow.ChainID) (protocol.Cluster, error)

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 (*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

type CommittedEpoch_ClusterByChainID_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_ClusterByChainID_Call) Run added in v0.46.0

func (*CommittedEpoch_ClusterByChainID_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_Cluster_Call added in v0.46.0

type CommittedEpoch_Cluster_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_Cluster_Call) Run added in v0.46.0

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

type CommittedEpoch_Clustering_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_Clustering_Call) Run added in v0.46.0

func (*CommittedEpoch_Clustering_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_Counter_Call added in v0.46.0

type CommittedEpoch_Counter_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_Counter_Call) Run added in v0.46.0

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

type CommittedEpoch_DKGPhase1FinalView_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_DKGPhase1FinalView_Call) Run added in v0.46.0

func (*CommittedEpoch_DKGPhase1FinalView_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_DKGPhase2FinalView_Call added in v0.46.0

type CommittedEpoch_DKGPhase2FinalView_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_DKGPhase2FinalView_Call) Run added in v0.46.0

func (*CommittedEpoch_DKGPhase2FinalView_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_DKGPhase3FinalView_Call added in v0.46.0

type CommittedEpoch_DKGPhase3FinalView_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_DKGPhase3FinalView_Call) Run added in v0.46.0

func (*CommittedEpoch_DKGPhase3FinalView_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_DKG_Call added in v0.46.0

type CommittedEpoch_DKG_Call struct {
	*mock.Call
}

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 (*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

Clustering is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) Counter added in v0.46.0

Counter is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) DKG added in v0.46.0

DKG is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) DKGPhase1FinalView added in v0.46.0

DKGPhase1FinalView is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) DKGPhase2FinalView added in v0.46.0

DKGPhase2FinalView is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) DKGPhase3FinalView added in v0.46.0

DKGPhase3FinalView is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) FinalHeight added in v0.46.0

FinalHeight is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) FinalView added in v0.46.0

FinalView is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) FirstHeight added in v0.46.0

FirstHeight is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) FirstView added in v0.46.0

FirstView is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) InitialIdentities added in v0.46.0

InitialIdentities is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) RandomSource added in v0.46.0

RandomSource is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) TargetDuration added in v0.46.0

TargetDuration is a helper method to define mock.On call

func (*CommittedEpoch_Expecter) TargetEndTime added in v0.46.0

TargetEndTime is a helper method to define mock.On call

type CommittedEpoch_FinalHeight_Call added in v0.46.0

type CommittedEpoch_FinalHeight_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_FinalHeight_Call) Run added in v0.46.0

func (*CommittedEpoch_FinalHeight_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_FinalView_Call added in v0.46.0

type CommittedEpoch_FinalView_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_FinalView_Call) Run added in v0.46.0

func (*CommittedEpoch_FinalView_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_FirstHeight_Call added in v0.46.0

type CommittedEpoch_FirstHeight_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_FirstHeight_Call) Run added in v0.46.0

func (*CommittedEpoch_FirstHeight_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_FirstView_Call added in v0.46.0

type CommittedEpoch_FirstView_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_FirstView_Call) Run added in v0.46.0

func (*CommittedEpoch_FirstView_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_InitialIdentities_Call added in v0.46.0

type CommittedEpoch_InitialIdentities_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_InitialIdentities_Call) Run added in v0.46.0

func (*CommittedEpoch_InitialIdentities_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_RandomSource_Call added in v0.46.0

type CommittedEpoch_RandomSource_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_RandomSource_Call) Run added in v0.46.0

func (*CommittedEpoch_RandomSource_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_TargetDuration_Call added in v0.46.0

type CommittedEpoch_TargetDuration_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_TargetDuration_Call) Run added in v0.46.0

func (*CommittedEpoch_TargetDuration_Call) RunAndReturn added in v0.46.0

type CommittedEpoch_TargetEndTime_Call added in v0.46.0

type CommittedEpoch_TargetEndTime_Call struct {
	*mock.Call
}

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 (*CommittedEpoch_TargetEndTime_Call) Run added in v0.46.0

func (*CommittedEpoch_TargetEndTime_Call) RunAndReturn added in v0.46.0

type Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func NewConsumer added in v0.26.1

func NewConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Consumer

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

func (_mock *Consumer) BlockFinalized(block *flow.Header)

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

func (_mock *Consumer) EpochCommittedPhaseStarted(currentEpochCounter uint64, first *flow.Header)

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

func (_mock *Consumer) EpochFallbackModeExited(epochCounter uint64, header *flow.Header)

EpochFallbackModeExited provides a mock function for the type Consumer

func (*Consumer) EpochFallbackModeTriggered added in v0.37.1

func (_mock *Consumer) EpochFallbackModeTriggered(epochCounter uint64, header *flow.Header)

EpochFallbackModeTriggered provides a mock function for the type Consumer

func (*Consumer) EpochSetupPhaseStarted

func (_mock *Consumer) EpochSetupPhaseStarted(currentEpochCounter uint64, first *flow.Header)

EpochSetupPhaseStarted provides a mock function for the type Consumer

func (*Consumer) EpochTransition

func (_mock *Consumer) EpochTransition(newEpochCounter uint64, first *flow.Header)

EpochTransition provides a mock function for the type Consumer

type Consumer_BlockFinalized_Call added in v0.46.0

type Consumer_BlockFinalized_Call struct {
	*mock.Call
}

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 (*Consumer_BlockFinalized_Call) Run added in v0.46.0

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

type Consumer_BlockProcessable_Call struct {
	*mock.Call
}

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 (*Consumer_BlockProcessable_Call) Run added in v0.46.0

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

type Consumer_EpochCommittedPhaseStarted_Call struct {
	*mock.Call
}

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 (*Consumer_EpochCommittedPhaseStarted_Call) Run added in v0.46.0

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

type Consumer_EpochExtended_Call struct {
	*mock.Call
}

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 (*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

type Consumer_EpochFallbackModeExited_Call struct {
	*mock.Call
}

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 (*Consumer_EpochFallbackModeExited_Call) Run added in v0.46.0

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

type Consumer_EpochFallbackModeTriggered_Call struct {
	*mock.Call
}

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 (*Consumer_EpochFallbackModeTriggered_Call) Run added in v0.46.0

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

type Consumer_EpochSetupPhaseStarted_Call struct {
	*mock.Call
}

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 (*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

type Consumer_EpochTransition_Call struct {
	*mock.Call
}

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 (*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

type DKG struct {
	mock.Mock
}

DKG is an autogenerated mock type for the DKG type

func NewDKG added in v0.26.1

func NewDKG(t interface {
	mock.TestingT
	Cleanup(func())
}) *DKG

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) GroupKey

func (_mock *DKG) GroupKey() crypto.PublicKey

GroupKey provides a mock function for the type DKG

func (*DKG) Index

func (_mock *DKG) Index(nodeID flow.Identifier) (uint, error)

Index provides a mock function for the type DKG

func (*DKG) KeyShare

func (_mock *DKG) KeyShare(nodeID flow.Identifier) (crypto.PublicKey, error)

KeyShare provides a mock function for the type DKG

func (*DKG) KeyShares added in v0.39.0

func (_mock *DKG) KeyShares() []crypto.PublicKey

KeyShares provides a mock function for the type DKG

func (*DKG) NodeID added in v0.39.0

func (_mock *DKG) NodeID(index uint) (flow.Identifier, error)

NodeID provides a mock function for the type DKG

func (*DKG) Size

func (_mock *DKG) Size() uint

Size 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

type DKG_GroupKey_Call struct {
	*mock.Call
}

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

type DKG_Index_Call struct {
	*mock.Call
}

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 {
	*mock.Call
}

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 {
	*mock.Call
}

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

type DKG_NodeID_Call struct {
	*mock.Call
}

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

type DKG_Size_Call struct {
	*mock.Call
}

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

type EpochProtocolState struct {
	mock.Mock
}

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 (*EpochProtocolState) Entry added in v0.33.30

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

type EpochProtocolState_Clustering_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_Clustering_Call) Run added in v0.46.0

func (*EpochProtocolState_Clustering_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_DKG_Call added in v0.46.0

type EpochProtocolState_DKG_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_DKG_Call) Run added in v0.46.0

func (*EpochProtocolState_DKG_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_Entry_Call added in v0.46.0

type EpochProtocolState_Entry_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_Entry_Call) Run added in v0.46.0

func (*EpochProtocolState_Entry_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_EpochCommit_Call added in v0.46.0

type EpochProtocolState_EpochCommit_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_EpochCommit_Call) Run added in v0.46.0

func (*EpochProtocolState_EpochCommit_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_EpochExtensions_Call added in v0.46.0

type EpochProtocolState_EpochExtensions_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_EpochExtensions_Call) Run added in v0.46.0

func (*EpochProtocolState_EpochExtensions_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_EpochFallbackTriggered_Call added in v0.46.0

type EpochProtocolState_EpochFallbackTriggered_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_EpochFallbackTriggered_Call) Run added in v0.46.0

func (*EpochProtocolState_EpochFallbackTriggered_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_EpochPhase_Call added in v0.46.0

type EpochProtocolState_EpochPhase_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_EpochPhase_Call) Run added in v0.46.0

func (*EpochProtocolState_EpochPhase_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_EpochSetup_Call added in v0.46.0

type EpochProtocolState_EpochSetup_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_EpochSetup_Call) Run added in v0.46.0

func (*EpochProtocolState_EpochSetup_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_Epoch_Call added in v0.46.0

type EpochProtocolState_Epoch_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_Epoch_Call) Run added in v0.46.0

func (*EpochProtocolState_Epoch_Call) RunAndReturn added in v0.46.0

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

Clustering is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) DKG added in v0.46.0

DKG is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) Entry added in v0.46.0

Entry is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) Epoch added in v0.46.0

Epoch is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) EpochCommit added in v0.46.0

EpochCommit is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) EpochExtensions added in v0.46.0

EpochExtensions is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) EpochFallbackTriggered added in v0.46.0

EpochFallbackTriggered is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) EpochPhase added in v0.46.0

EpochPhase is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) EpochSetup added in v0.46.0

EpochSetup is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) GlobalParams added in v0.46.0

GlobalParams is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) Identities added in v0.46.0

Identities is a helper method to define mock.On call

func (*EpochProtocolState_Expecter) PreviousEpochExists added in v0.46.0

PreviousEpochExists is a helper method to define mock.On call

type EpochProtocolState_GlobalParams_Call added in v0.46.0

type EpochProtocolState_GlobalParams_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_GlobalParams_Call) Run added in v0.46.0

func (*EpochProtocolState_GlobalParams_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_Identities_Call added in v0.46.0

type EpochProtocolState_Identities_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_Identities_Call) Run added in v0.46.0

func (*EpochProtocolState_Identities_Call) RunAndReturn added in v0.46.0

type EpochProtocolState_PreviousEpochExists_Call added in v0.46.0

type EpochProtocolState_PreviousEpochExists_Call struct {
	*mock.Call
}

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 (*EpochProtocolState_PreviousEpochExists_Call) Run added in v0.46.0

func (*EpochProtocolState_PreviousEpochExists_Call) RunAndReturn added in v0.46.0

type EpochQuery

type EpochQuery struct {
	mock.Mock
}

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

type EpochQuery_Current_Call struct {
	*mock.Call
}

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 (*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

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

Current is a helper method to define mock.On call

func (*EpochQuery_Expecter) NextCommitted added in v0.46.0

NextCommitted is a helper method to define mock.On call

func (*EpochQuery_Expecter) NextUnsafe added in v0.46.0

NextUnsafe is a helper method to define mock.On call

func (*EpochQuery_Expecter) Previous added in v0.46.0

Previous is a helper method to define mock.On call

type EpochQuery_NextCommitted_Call added in v0.46.0

type EpochQuery_NextCommitted_Call struct {
	*mock.Call
}

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 (*EpochQuery_NextCommitted_Call) Run added in v0.46.0

func (*EpochQuery_NextCommitted_Call) RunAndReturn added in v0.46.0

type EpochQuery_NextUnsafe_Call added in v0.46.0

type EpochQuery_NextUnsafe_Call struct {
	*mock.Call
}

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 (*EpochQuery_NextUnsafe_Call) Run added in v0.46.0

func (*EpochQuery_NextUnsafe_Call) RunAndReturn added in v0.46.0

type EpochQuery_Previous_Call added in v0.46.0

type EpochQuery_Previous_Call struct {
	*mock.Call
}

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 (*EpochQuery_Previous_Call) Run added in v0.46.0

func (*EpochQuery_Previous_Call) RunAndReturn added in v0.46.0

type FollowerState added in v0.30.0

type FollowerState struct {
	mock.Mock
}

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

type FollowerState_AtBlockID_Call struct {
	*mock.Call
}

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 (*FollowerState_AtBlockID_Call) Run added in v0.46.0

func (*FollowerState_AtBlockID_Call) RunAndReturn added in v0.46.0

type FollowerState_AtHeight_Call added in v0.46.0

type FollowerState_AtHeight_Call struct {
	*mock.Call
}

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 (*FollowerState_AtHeight_Call) Run added in v0.46.0

func (*FollowerState_AtHeight_Call) RunAndReturn added in v0.46.0

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

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

Params is a helper method to define mock.On call

func (*FollowerState_Expecter) Sealed added in v0.46.0

Sealed is a helper method to define mock.On call

type FollowerState_ExtendCertified_Call added in v0.46.0

type FollowerState_ExtendCertified_Call struct {
	*mock.Call
}

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 (*FollowerState_ExtendCertified_Call) Run added in v0.46.0

func (*FollowerState_ExtendCertified_Call) RunAndReturn added in v0.46.0

type FollowerState_Final_Call added in v0.46.0

type FollowerState_Final_Call struct {
	*mock.Call
}

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 (*FollowerState_Final_Call) Run added in v0.46.0

func (*FollowerState_Final_Call) RunAndReturn added in v0.46.0

type FollowerState_Finalize_Call added in v0.46.0

type FollowerState_Finalize_Call struct {
	*mock.Call
}

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 (*FollowerState_Finalize_Call) Run added in v0.46.0

func (*FollowerState_Finalize_Call) RunAndReturn added in v0.46.0

type FollowerState_Params_Call added in v0.46.0

type FollowerState_Params_Call struct {
	*mock.Call
}

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 (*FollowerState_Params_Call) Run added in v0.46.0

func (*FollowerState_Params_Call) RunAndReturn added in v0.46.0

type FollowerState_Sealed_Call added in v0.46.0

type FollowerState_Sealed_Call struct {
	*mock.Call
}

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 (*FollowerState_Sealed_Call) Run added in v0.46.0

func (*FollowerState_Sealed_Call) RunAndReturn added in v0.46.0

type GlobalParams added in v0.23.2

type GlobalParams struct {
	mock.Mock
}

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

type GlobalParams_ChainID_Call struct {
	*mock.Call
}

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 (*GlobalParams_ChainID_Call) Run added in v0.46.0

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

ChainID is a helper method to define mock.On call

func (*GlobalParams_Expecter) SporkID added in v0.46.0

SporkID is a helper method to define mock.On call

func (*GlobalParams_Expecter) SporkRootBlockHeight added in v0.46.0

SporkRootBlockHeight is a helper method to define mock.On call

func (*GlobalParams_Expecter) SporkRootBlockView added in v0.46.0

SporkRootBlockView is a helper method to define mock.On call

type GlobalParams_SporkID_Call added in v0.46.0

type GlobalParams_SporkID_Call struct {
	*mock.Call
}

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 (*GlobalParams_SporkID_Call) Run added in v0.46.0

func (*GlobalParams_SporkID_Call) RunAndReturn added in v0.46.0

type GlobalParams_SporkRootBlockHeight_Call added in v0.46.0

type GlobalParams_SporkRootBlockHeight_Call struct {
	*mock.Call
}

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 (*GlobalParams_SporkRootBlockHeight_Call) Run added in v0.46.0

func (*GlobalParams_SporkRootBlockHeight_Call) RunAndReturn added in v0.46.0

type GlobalParams_SporkRootBlockView_Call added in v0.46.0

type GlobalParams_SporkRootBlockView_Call struct {
	*mock.Call
}

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 (*GlobalParams_SporkRootBlockView_Call) Run added in v0.46.0

func (*GlobalParams_SporkRootBlockView_Call) RunAndReturn added in v0.46.0

type InstanceParams added in v0.23.2

type InstanceParams struct {
	mock.Mock
}

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 (*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

FinalizedRoot is a helper method to define mock.On call

func (*InstanceParams_Expecter) Seal added in v0.46.0

Seal is a helper method to define mock.On call

func (*InstanceParams_Expecter) SealedRoot added in v0.46.0

SealedRoot is a helper method to define mock.On call

func (*InstanceParams_Expecter) SporkRootBlock added in v0.46.0

SporkRootBlock is a helper method to define mock.On call

type InstanceParams_FinalizedRoot_Call added in v0.46.0

type InstanceParams_FinalizedRoot_Call struct {
	*mock.Call
}

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 (*InstanceParams_FinalizedRoot_Call) Run added in v0.46.0

func (*InstanceParams_FinalizedRoot_Call) RunAndReturn added in v0.46.0

type InstanceParams_Seal_Call added in v0.46.0

type InstanceParams_Seal_Call struct {
	*mock.Call
}

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 (*InstanceParams_Seal_Call) Run added in v0.46.0

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

type InstanceParams_SealedRoot_Call struct {
	*mock.Call
}

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 (*InstanceParams_SealedRoot_Call) Run added in v0.46.0

func (*InstanceParams_SealedRoot_Call) RunAndReturn added in v0.46.0

type InstanceParams_SporkRootBlock_Call added in v0.46.0

type InstanceParams_SporkRootBlock_Call struct {
	*mock.Call
}

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 (*InstanceParams_SporkRootBlock_Call) Run added in v0.46.0

func (*InstanceParams_SporkRootBlock_Call) RunAndReturn added in v0.46.0

type KVStoreReader added in v0.33.30

type KVStoreReader struct {
	mock.Mock
}

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

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

GetEpochExtensionViewCount is a helper method to define mock.On call

func (*KVStoreReader_Expecter) GetEpochStateID added in v0.46.0

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

GetProtocolStateVersion is a helper method to define mock.On call

func (*KVStoreReader_Expecter) GetVersionUpgrade added in v0.46.0

GetVersionUpgrade is a helper method to define mock.On call

func (*KVStoreReader_Expecter) ID added in v0.46.0

ID is a helper method to define mock.On call

func (*KVStoreReader_Expecter) VersionedEncode added in v0.46.0

VersionedEncode is a helper method to define mock.On call

type KVStoreReader_GetCadenceComponentVersionUpgrade_Call added in v0.46.0

type KVStoreReader_GetCadenceComponentVersionUpgrade_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetCadenceComponentVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreReader_GetCadenceComponentVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetCadenceComponentVersion_Call added in v0.46.0

type KVStoreReader_GetCadenceComponentVersion_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetCadenceComponentVersion_Call) Run added in v0.46.0

func (*KVStoreReader_GetCadenceComponentVersion_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetEpochExtensionViewCount_Call added in v0.46.0

type KVStoreReader_GetEpochExtensionViewCount_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetEpochExtensionViewCount_Call) Run added in v0.46.0

func (*KVStoreReader_GetEpochExtensionViewCount_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetEpochStateID_Call added in v0.46.0

type KVStoreReader_GetEpochStateID_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetEpochStateID_Call) Run added in v0.46.0

func (*KVStoreReader_GetEpochStateID_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetExecutionComponentVersionUpgrade_Call added in v0.46.0

type KVStoreReader_GetExecutionComponentVersionUpgrade_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetExecutionComponentVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreReader_GetExecutionComponentVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetExecutionComponentVersion_Call added in v0.46.0

type KVStoreReader_GetExecutionComponentVersion_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetExecutionComponentVersion_Call) Run added in v0.46.0

func (*KVStoreReader_GetExecutionComponentVersion_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetExecutionMeteringParametersUpgrade_Call added in v0.46.0

type KVStoreReader_GetExecutionMeteringParametersUpgrade_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) Run added in v0.46.0

func (*KVStoreReader_GetExecutionMeteringParametersUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetExecutionMeteringParameters_Call added in v0.46.0

type KVStoreReader_GetExecutionMeteringParameters_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetExecutionMeteringParameters_Call) Run added in v0.46.0

func (*KVStoreReader_GetExecutionMeteringParameters_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetFinalizationSafetyThreshold_Call added in v0.46.0

type KVStoreReader_GetFinalizationSafetyThreshold_Call struct {
	*mock.Call
}

KVStoreReader_GetFinalizationSafetyThreshold_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFinalizationSafetyThreshold'

func (*KVStoreReader_GetFinalizationSafetyThreshold_Call) Return added in v0.46.0

func (*KVStoreReader_GetFinalizationSafetyThreshold_Call) Run added in v0.46.0

func (*KVStoreReader_GetFinalizationSafetyThreshold_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetProtocolStateVersion_Call added in v0.46.0

type KVStoreReader_GetProtocolStateVersion_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetProtocolStateVersion_Call) Run added in v0.46.0

func (*KVStoreReader_GetProtocolStateVersion_Call) RunAndReturn added in v0.46.0

type KVStoreReader_GetVersionUpgrade_Call added in v0.46.0

type KVStoreReader_GetVersionUpgrade_Call struct {
	*mock.Call
}

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 (*KVStoreReader_GetVersionUpgrade_Call) Run added in v0.46.0

func (*KVStoreReader_GetVersionUpgrade_Call) RunAndReturn added in v0.46.0

type KVStoreReader_ID_Call added in v0.46.0

type KVStoreReader_ID_Call struct {
	*mock.Call
}

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 (*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

type KVStoreReader_VersionedEncode_Call struct {
	*mock.Call
}

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 (*KVStoreReader_VersionedEncode_Call) Run added in v0.46.0

func (*KVStoreReader_VersionedEncode_Call) RunAndReturn added in v0.46.0

type MutableProtocolState added in v0.33.30

type MutableProtocolState struct {
	mock.Mock
}

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 (*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

type MutableProtocolState_EpochStateAtBlockID_Call struct {
	*mock.Call
}

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 (*MutableProtocolState_EpochStateAtBlockID_Call) Run added in v0.46.0

func (*MutableProtocolState_EpochStateAtBlockID_Call) RunAndReturn added in v0.46.0

type MutableProtocolState_EvolveState_Call added in v0.46.0

type MutableProtocolState_EvolveState_Call struct {
	*mock.Call
}

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 (*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

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

type MutableProtocolState_GlobalParams_Call struct {
	*mock.Call
}

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 (*MutableProtocolState_GlobalParams_Call) Run added in v0.46.0

func (*MutableProtocolState_GlobalParams_Call) RunAndReturn added in v0.46.0

type MutableProtocolState_KVStoreAtBlockID_Call added in v0.46.0

type MutableProtocolState_KVStoreAtBlockID_Call struct {
	*mock.Call
}

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 (*MutableProtocolState_KVStoreAtBlockID_Call) Run added in v0.46.0

func (*MutableProtocolState_KVStoreAtBlockID_Call) RunAndReturn added in v0.46.0

type Params

type Params struct {
	mock.Mock
}

Params is an autogenerated mock type for the Params type

func NewParams added in v0.26.1

func NewParams(t interface {
	mock.TestingT
	Cleanup(func())
}) *Params

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) ChainID

func (_mock *Params) ChainID() flow.ChainID

ChainID provides a mock function for the type Params

func (*Params) EXPECT added in v0.46.0

func (_m *Params) EXPECT() *Params_Expecter

func (*Params) FinalizedRoot added in v0.30.7

func (_mock *Params) FinalizedRoot() *flow.Header

FinalizedRoot provides a mock function for the type Params

func (*Params) Seal

func (_mock *Params) Seal() *flow.Seal

Seal provides a mock function for the type Params

func (*Params) SealedRoot added in v0.30.7

func (_mock *Params) SealedRoot() *flow.Header

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

func (_mock *Params) SporkRootBlock() *flow.Block

SporkRootBlock provides a mock function for the type Params

func (*Params) SporkRootBlockHeight added in v0.29.6

func (_mock *Params) SporkRootBlockHeight() uint64

SporkRootBlockHeight provides a mock function for the type Params

func (*Params) SporkRootBlockView added in v0.43.0

func (_mock *Params) SporkRootBlockView() uint64

SporkRootBlockView provides a mock function for the type Params

type Params_ChainID_Call added in v0.46.0

type Params_ChainID_Call struct {
	*mock.Call
}

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

type Params_FinalizedRoot_Call struct {
	*mock.Call
}

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 (*Params_FinalizedRoot_Call) Run added in v0.46.0

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

type Params_Seal_Call struct {
	*mock.Call
}

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

type Params_SealedRoot_Call struct {
	*mock.Call
}

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 (*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

type Params_SporkID_Call struct {
	*mock.Call
}

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

type Params_SporkRootBlockHeight_Call struct {
	*mock.Call
}

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 (*Params_SporkRootBlockHeight_Call) Run added in v0.46.0

func (*Params_SporkRootBlockHeight_Call) RunAndReturn added in v0.46.0

type Params_SporkRootBlockView_Call added in v0.46.0

type Params_SporkRootBlockView_Call struct {
	*mock.Call
}

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 (*Params_SporkRootBlockView_Call) Run added in v0.46.0

func (*Params_SporkRootBlockView_Call) RunAndReturn added in v0.46.0

type Params_SporkRootBlock_Call added in v0.46.0

type Params_SporkRootBlock_Call struct {
	*mock.Call
}

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 (*Params_SporkRootBlock_Call) Run added in v0.46.0

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

type ParticipantState struct {
	mock.Mock
}

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 (*ParticipantState) Extend added in v0.30.0

func (_mock *ParticipantState) Extend(ctx context.Context, candidate *flow.Proposal) error

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

type ParticipantState_AtBlockID_Call struct {
	*mock.Call
}

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 (*ParticipantState_AtBlockID_Call) Run added in v0.46.0

func (*ParticipantState_AtBlockID_Call) RunAndReturn added in v0.46.0

type ParticipantState_AtHeight_Call added in v0.46.0

type ParticipantState_AtHeight_Call struct {
	*mock.Call
}

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 (*ParticipantState_AtHeight_Call) Run added in v0.46.0

func (*ParticipantState_AtHeight_Call) RunAndReturn added in v0.46.0

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

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

Params is a helper method to define mock.On call

func (*ParticipantState_Expecter) Sealed added in v0.46.0

Sealed is a helper method to define mock.On call

type ParticipantState_ExtendCertified_Call added in v0.46.0

type ParticipantState_ExtendCertified_Call struct {
	*mock.Call
}

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 (*ParticipantState_ExtendCertified_Call) Run added in v0.46.0

func (*ParticipantState_ExtendCertified_Call) RunAndReturn added in v0.46.0

type ParticipantState_Extend_Call added in v0.46.0

type ParticipantState_Extend_Call struct {
	*mock.Call
}

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 (*ParticipantState_Extend_Call) Run added in v0.46.0

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

type ParticipantState_Final_Call struct {
	*mock.Call
}

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 (*ParticipantState_Final_Call) Run added in v0.46.0

func (*ParticipantState_Final_Call) RunAndReturn added in v0.46.0

type ParticipantState_Finalize_Call added in v0.46.0

type ParticipantState_Finalize_Call struct {
	*mock.Call
}

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 (*ParticipantState_Finalize_Call) Run added in v0.46.0

func (*ParticipantState_Finalize_Call) RunAndReturn added in v0.46.0

type ParticipantState_Params_Call added in v0.46.0

type ParticipantState_Params_Call struct {
	*mock.Call
}

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 (*ParticipantState_Params_Call) Run added in v0.46.0

func (*ParticipantState_Params_Call) RunAndReturn added in v0.46.0

type ParticipantState_Sealed_Call added in v0.46.0

type ParticipantState_Sealed_Call struct {
	*mock.Call
}

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 (*ParticipantState_Sealed_Call) Run added in v0.46.0

func (*ParticipantState_Sealed_Call) RunAndReturn added in v0.46.0

type ProtocolState added in v0.33.30

type ProtocolState struct {
	mock.Mock
}

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

type ProtocolState_EpochStateAtBlockID_Call struct {
	*mock.Call
}

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 (*ProtocolState_EpochStateAtBlockID_Call) Run added in v0.46.0

func (*ProtocolState_EpochStateAtBlockID_Call) RunAndReturn added in v0.46.0

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

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

type ProtocolState_GlobalParams_Call struct {
	*mock.Call
}

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 (*ProtocolState_GlobalParams_Call) Run added in v0.46.0

func (*ProtocolState_GlobalParams_Call) RunAndReturn added in v0.46.0

type ProtocolState_KVStoreAtBlockID_Call added in v0.46.0

type ProtocolState_KVStoreAtBlockID_Call struct {
	*mock.Call
}

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 (*ProtocolState_KVStoreAtBlockID_Call) Run added in v0.46.0

func (*ProtocolState_KVStoreAtBlockID_Call) RunAndReturn added in v0.46.0

type Snapshot

type Snapshot struct {
	mock.Mock
}

Snapshot is an autogenerated mock type for the Snapshot type

func NewSnapshot added in v0.26.1

func NewSnapshot(t interface {
	mock.TestingT
	Cleanup(func())
}) *Snapshot

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) Head

func (_mock *Snapshot) Head() (*flow.Header, error)

Head 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) Identity

func (_mock *Snapshot) Identity(nodeID flow.Identifier) (*flow.Identity, error)

Identity 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

func (_mock *Snapshot) RandomSource() ([]byte, error)

RandomSource provides a mock function for the type Snapshot

func (*Snapshot) SealedResult added in v0.15.0

func (_mock *Snapshot) SealedResult() (*flow.ExecutionResult, *flow.Seal, error)

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

type SnapshotExecutionSubset struct {
	mock.Mock
}

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 (*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

type SnapshotExecutionSubsetProvider struct {
	mock.Mock
}

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

AtBlockID provides a mock function for the type SnapshotExecutionSubsetProvider

func (*SnapshotExecutionSubsetProvider) EXPECT added in v0.46.0

type SnapshotExecutionSubsetProvider_AtBlockID_Call added in v0.46.0

type SnapshotExecutionSubsetProvider_AtBlockID_Call struct {
	*mock.Call
}

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 (*SnapshotExecutionSubsetProvider_AtBlockID_Call) Run added in v0.46.0

func (*SnapshotExecutionSubsetProvider_AtBlockID_Call) RunAndReturn added in v0.46.0

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

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

RandomSource is a helper method to define mock.On call

func (*SnapshotExecutionSubset_Expecter) VersionBeacon added in v0.46.0

VersionBeacon is a helper method to define mock.On call

type SnapshotExecutionSubset_RandomSource_Call added in v0.46.0

type SnapshotExecutionSubset_RandomSource_Call struct {
	*mock.Call
}

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 (*SnapshotExecutionSubset_RandomSource_Call) Run added in v0.46.0

func (*SnapshotExecutionSubset_RandomSource_Call) RunAndReturn added in v0.46.0

type SnapshotExecutionSubset_VersionBeacon_Call added in v0.46.0

type SnapshotExecutionSubset_VersionBeacon_Call struct {
	*mock.Call
}

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 (*SnapshotExecutionSubset_VersionBeacon_Call) Run added in v0.46.0

func (*SnapshotExecutionSubset_VersionBeacon_Call) RunAndReturn added in v0.46.0

type Snapshot_Commit_Call added in v0.46.0

type Snapshot_Commit_Call struct {
	*mock.Call
}

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

type Snapshot_Descendants_Call struct {
	*mock.Call
}

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 (*Snapshot_Descendants_Call) Run added in v0.46.0

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

type Snapshot_EpochPhase_Call struct {
	*mock.Call
}

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 (*Snapshot_EpochPhase_Call) Run added in v0.46.0

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

type Snapshot_EpochProtocolState_Call struct {
	*mock.Call
}

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 (*Snapshot_EpochProtocolState_Call) Run added in v0.46.0

func (*Snapshot_EpochProtocolState_Call) RunAndReturn added in v0.46.0

type Snapshot_Epochs_Call added in v0.46.0

type Snapshot_Epochs_Call struct {
	*mock.Call
}

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 (*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

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

Epochs is a helper method to define mock.On call

func (*Snapshot_Expecter) Head added in v0.46.0

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

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

type Snapshot_Head_Call struct {
	*mock.Call
}

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

type Snapshot_Identities_Call struct {
	*mock.Call
}

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 (*Snapshot_Identities_Call) Run added in v0.46.0

func (*Snapshot_Identities_Call) RunAndReturn added in v0.46.0

type Snapshot_Identity_Call added in v0.46.0

type Snapshot_Identity_Call struct {
	*mock.Call
}

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

type Snapshot_Params_Call struct {
	*mock.Call
}

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 (*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

type Snapshot_ProtocolState_Call struct {
	*mock.Call
}

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 (*Snapshot_ProtocolState_Call) Run added in v0.46.0

func (*Snapshot_ProtocolState_Call) RunAndReturn added in v0.46.0

type Snapshot_QuorumCertificate_Call added in v0.46.0

type Snapshot_QuorumCertificate_Call struct {
	*mock.Call
}

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 (*Snapshot_QuorumCertificate_Call) Run added in v0.46.0

func (*Snapshot_QuorumCertificate_Call) RunAndReturn added in v0.46.0

type Snapshot_RandomSource_Call added in v0.46.0

type Snapshot_RandomSource_Call struct {
	*mock.Call
}

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 (*Snapshot_RandomSource_Call) Run added in v0.46.0

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

type Snapshot_SealedResult_Call struct {
	*mock.Call
}

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 (*Snapshot_SealedResult_Call) RunAndReturn added in v0.46.0

type Snapshot_SealingSegment_Call added in v0.46.0

type Snapshot_SealingSegment_Call struct {
	*mock.Call
}

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 (*Snapshot_SealingSegment_Call) Run added in v0.46.0

func (*Snapshot_SealingSegment_Call) RunAndReturn added in v0.46.0

type Snapshot_VersionBeacon_Call added in v0.46.0

type Snapshot_VersionBeacon_Call struct {
	*mock.Call
}

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 (*Snapshot_VersionBeacon_Call) Run added in v0.46.0

func (*Snapshot_VersionBeacon_Call) RunAndReturn added in v0.46.0

type State

type State struct {
	mock.Mock
}

State is an autogenerated mock type for the State type

func NewState added in v0.26.1

func NewState(t interface {
	mock.TestingT
	Cleanup(func())
}) *State

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) AtHeight

func (_mock *State) AtHeight(height uint64) protocol.Snapshot

AtHeight provides a mock function for the type State

func (*State) EXPECT added in v0.46.0

func (_m *State) EXPECT() *State_Expecter

func (*State) Final

func (_mock *State) Final() protocol.Snapshot

Final provides a mock function for the type State

func (*State) Params

func (_mock *State) Params() protocol.Params

Params provides a mock function for the type State

func (*State) Sealed

func (_mock *State) Sealed() protocol.Snapshot

Sealed provides a mock function for the type State

type State_AtBlockID_Call added in v0.46.0

type State_AtBlockID_Call struct {
	*mock.Call
}

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 (*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

type State_AtHeight_Call struct {
	*mock.Call
}

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 (*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

type State_Final_Call struct {
	*mock.Call
}

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

type State_Params_Call struct {
	*mock.Call
}

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

type State_Sealed_Call struct {
	*mock.Call
}

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

type TentativeEpoch struct {
	mock.Mock
}

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 (*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

type TentativeEpoch_Clustering_Call struct {
	*mock.Call
}

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 (*TentativeEpoch_Clustering_Call) Run added in v0.46.0

func (*TentativeEpoch_Clustering_Call) RunAndReturn added in v0.46.0

type TentativeEpoch_Counter_Call added in v0.46.0

type TentativeEpoch_Counter_Call struct {
	*mock.Call
}

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 (*TentativeEpoch_Counter_Call) Run added in v0.46.0

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

Clustering is a helper method to define mock.On call

func (*TentativeEpoch_Expecter) Counter added in v0.46.0

Counter is a helper method to define mock.On call

func (*TentativeEpoch_Expecter) InitialIdentities added in v0.46.0

InitialIdentities is a helper method to define mock.On call

type TentativeEpoch_InitialIdentities_Call added in v0.46.0

type TentativeEpoch_InitialIdentities_Call struct {
	*mock.Call
}

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 (*TentativeEpoch_InitialIdentities_Call) Run added in v0.46.0

func (*TentativeEpoch_InitialIdentities_Call) RunAndReturn added in v0.46.0

type VersionedEncodable added in v0.33.30

type VersionedEncodable struct {
	mock.Mock
}

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 (*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

VersionedEncode is a helper method to define mock.On call

type VersionedEncodable_VersionedEncode_Call added in v0.46.0

type VersionedEncodable_VersionedEncode_Call struct {
	*mock.Call
}

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 (*VersionedEncodable_VersionedEncode_Call) Run added in v0.46.0

func (*VersionedEncodable_VersionedEncode_Call) RunAndReturn added in v0.46.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL