mock

package
v0.39.3-preview.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: AGPL-3.0 Imports: 8 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 (_m *BlockTimer) Build(parentTimestamp time.Time) time.Time

Build provides a mock function with given fields: parentTimestamp

func (*BlockTimer) Validate ¶ added in v0.20.0

func (_m *BlockTimer) Validate(parentTimestamp time.Time, currentTimestamp time.Time) error

Validate provides a mock function with given fields: parentTimestamp, currentTimestamp

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 (_m *Cluster) ChainID() flow.ChainID

ChainID provides a mock function with given fields:

func (*Cluster) EpochCounter ¶

func (_m *Cluster) EpochCounter() uint64

EpochCounter provides a mock function with given fields:

func (*Cluster) Index ¶

func (_m *Cluster) Index() uint

Index provides a mock function with given fields:

func (*Cluster) Members ¶

Members provides a mock function with given fields:

func (*Cluster) RootBlock ¶

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

RootBlock provides a mock function with given fields:

func (*Cluster) RootQC ¶

func (_m *Cluster) RootQC() *flow.QuorumCertificate

RootQC provides a mock function with given fields:

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 (_m *CommittedEpoch) Cluster(index uint) (protocol.Cluster, error)

Cluster provides a mock function with given fields: index

func (*CommittedEpoch) ClusterByChainID ¶ added in v0.39.2

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

ClusterByChainID provides a mock function with given fields: chainID

func (*CommittedEpoch) Clustering ¶ added in v0.39.2

func (_m *CommittedEpoch) Clustering() (flow.ClusterList, error)

Clustering provides a mock function with given fields:

func (*CommittedEpoch) Counter ¶ added in v0.39.2

func (_m *CommittedEpoch) Counter() uint64

Counter provides a mock function with given fields:

func (*CommittedEpoch) DKG ¶ added in v0.39.2

func (_m *CommittedEpoch) DKG() (protocol.DKG, error)

DKG provides a mock function with given fields:

func (*CommittedEpoch) DKGPhase1FinalView ¶ added in v0.39.2

func (_m *CommittedEpoch) DKGPhase1FinalView() uint64

DKGPhase1FinalView provides a mock function with given fields:

func (*CommittedEpoch) DKGPhase2FinalView ¶ added in v0.39.2

func (_m *CommittedEpoch) DKGPhase2FinalView() uint64

DKGPhase2FinalView provides a mock function with given fields:

func (*CommittedEpoch) DKGPhase3FinalView ¶ added in v0.39.2

func (_m *CommittedEpoch) DKGPhase3FinalView() uint64

DKGPhase3FinalView provides a mock function with given fields:

func (*CommittedEpoch) FinalHeight ¶ added in v0.39.2

func (_m *CommittedEpoch) FinalHeight() (uint64, error)

FinalHeight provides a mock function with given fields:

func (*CommittedEpoch) FinalView ¶ added in v0.39.2

func (_m *CommittedEpoch) FinalView() uint64

FinalView provides a mock function with given fields:

func (*CommittedEpoch) FirstHeight ¶ added in v0.39.2

func (_m *CommittedEpoch) FirstHeight() (uint64, error)

FirstHeight provides a mock function with given fields:

func (*CommittedEpoch) FirstView ¶ added in v0.39.2

func (_m *CommittedEpoch) FirstView() uint64

FirstView provides a mock function with given fields:

func (*CommittedEpoch) InitialIdentities ¶ added in v0.39.2

func (_m *CommittedEpoch) InitialIdentities() flow.GenericIdentityList[flow.IdentitySkeleton]

InitialIdentities provides a mock function with given fields:

func (*CommittedEpoch) RandomSource ¶ added in v0.39.2

func (_m *CommittedEpoch) RandomSource() []byte

RandomSource provides a mock function with given fields:

func (*CommittedEpoch) TargetDuration ¶ added in v0.39.2

func (_m *CommittedEpoch) TargetDuration() uint64

TargetDuration provides a mock function with given fields:

func (*CommittedEpoch) TargetEndTime ¶ added in v0.39.2

func (_m *CommittedEpoch) TargetEndTime() uint64

TargetEndTime provides a mock function with given fields:

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 (_m *Consumer) BlockFinalized(block *flow.Header)

BlockFinalized provides a mock function with given fields: block

func (*Consumer) BlockProcessable ¶

func (_m *Consumer) BlockProcessable(block *flow.Header, certifyingQC *flow.QuorumCertificate)

BlockProcessable provides a mock function with given fields: block, certifyingQC

func (*Consumer) EpochCommittedPhaseStarted ¶

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

EpochCommittedPhaseStarted provides a mock function with given fields: currentEpochCounter, first

func (*Consumer) EpochExtended ¶ added in v0.37.1

func (_m *Consumer) EpochExtended(epochCounter uint64, header *flow.Header, extension flow.EpochExtension)

EpochExtended provides a mock function with given fields: epochCounter, header, extension

func (*Consumer) EpochFallbackModeExited ¶ added in v0.37.1

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

EpochFallbackModeExited provides a mock function with given fields: epochCounter, header

func (*Consumer) EpochFallbackModeTriggered ¶ added in v0.37.1

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

EpochFallbackModeTriggered provides a mock function with given fields: epochCounter, header

func (*Consumer) EpochSetupPhaseStarted ¶

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

EpochSetupPhaseStarted provides a mock function with given fields: currentEpochCounter, first

func (*Consumer) EpochTransition ¶

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

EpochTransition provides a mock function with given fields: newEpochCounter, first

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

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

GroupKey provides a mock function with given fields:

func (*DKG) Index ¶

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

Index provides a mock function with given fields: nodeID

func (*DKG) KeyShare ¶

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

KeyShare provides a mock function with given fields: nodeID

func (*DKG) KeyShares ¶ added in v0.39.0

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

KeyShares provides a mock function with given fields:

func (*DKG) NodeID ¶ added in v0.39.0

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

NodeID provides a mock function with given fields: index

func (*DKG) Size ¶

func (_m *DKG) Size() uint

Size provides a mock function with given fields:

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 (_m *EpochProtocolState) Clustering() (flow.ClusterList, error)

Clustering provides a mock function with given fields:

func (*EpochProtocolState) DKG ¶ added in v0.33.30

func (_m *EpochProtocolState) DKG() (protocol.DKG, error)

DKG provides a mock function with given fields:

func (*EpochProtocolState) Entry ¶ added in v0.33.30

Entry provides a mock function with given fields:

func (*EpochProtocolState) Epoch ¶ added in v0.33.30

func (_m *EpochProtocolState) Epoch() uint64

Epoch provides a mock function with given fields:

func (*EpochProtocolState) EpochCommit ¶ added in v0.33.30

func (_m *EpochProtocolState) EpochCommit() *flow.EpochCommit

EpochCommit provides a mock function with given fields:

func (*EpochProtocolState) EpochExtensions ¶ added in v0.37.1

func (_m *EpochProtocolState) EpochExtensions() []flow.EpochExtension

EpochExtensions provides a mock function with given fields:

func (*EpochProtocolState) EpochFallbackTriggered ¶ added in v0.37.1

func (_m *EpochProtocolState) EpochFallbackTriggered() bool

EpochFallbackTriggered provides a mock function with given fields:

func (*EpochProtocolState) EpochPhase ¶ added in v0.33.30

func (_m *EpochProtocolState) EpochPhase() flow.EpochPhase

EpochPhase provides a mock function with given fields:

func (*EpochProtocolState) EpochSetup ¶ added in v0.33.30

func (_m *EpochProtocolState) EpochSetup() *flow.EpochSetup

EpochSetup provides a mock function with given fields:

func (*EpochProtocolState) GlobalParams ¶ added in v0.33.30

func (_m *EpochProtocolState) GlobalParams() protocol.GlobalParams

GlobalParams provides a mock function with given fields:

func (*EpochProtocolState) Identities ¶ added in v0.33.30

Identities provides a mock function with given fields:

func (*EpochProtocolState) PreviousEpochExists ¶ added in v0.33.30

func (_m *EpochProtocolState) PreviousEpochExists() bool

PreviousEpochExists provides a mock function with given fields:

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 (_m *EpochQuery) Current() (protocol.CommittedEpoch, error)

Current provides a mock function with given fields:

func (*EpochQuery) NextCommitted ¶ added in v0.39.2

func (_m *EpochQuery) NextCommitted() (protocol.CommittedEpoch, error)

NextCommitted provides a mock function with given fields:

func (*EpochQuery) NextUnsafe ¶ added in v0.39.2

func (_m *EpochQuery) NextUnsafe() (protocol.TentativeEpoch, error)

NextUnsafe provides a mock function with given fields:

func (*EpochQuery) Previous ¶ added in v0.13.0

func (_m *EpochQuery) Previous() (protocol.CommittedEpoch, error)

Previous provides a mock function with given fields:

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 (_m *FollowerState) AtBlockID(blockID flow.Identifier) protocol.Snapshot

AtBlockID provides a mock function with given fields: blockID

func (*FollowerState) AtHeight ¶ added in v0.30.0

func (_m *FollowerState) AtHeight(height uint64) protocol.Snapshot

AtHeight provides a mock function with given fields: height

func (*FollowerState) ExtendCertified ¶ added in v0.30.0

func (_m *FollowerState) ExtendCertified(ctx context.Context, candidate *flow.Block, qc *flow.QuorumCertificate) error

ExtendCertified provides a mock function with given fields: ctx, candidate, qc

func (*FollowerState) Final ¶ added in v0.30.0

func (_m *FollowerState) Final() protocol.Snapshot

Final provides a mock function with given fields:

func (*FollowerState) Finalize ¶ added in v0.30.0

func (_m *FollowerState) Finalize(ctx context.Context, blockID flow.Identifier) error

Finalize provides a mock function with given fields: ctx, blockID

func (*FollowerState) Params ¶ added in v0.30.0

func (_m *FollowerState) Params() protocol.Params

Params provides a mock function with given fields:

func (*FollowerState) Sealed ¶ added in v0.30.0

func (_m *FollowerState) Sealed() protocol.Snapshot

Sealed provides a mock function with given fields:

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 (_m *GlobalParams) ChainID() flow.ChainID

ChainID provides a mock function with given fields:

func (*GlobalParams) SporkID ¶ added in v0.23.2

func (_m *GlobalParams) SporkID() flow.Identifier

SporkID provides a mock function with given fields:

func (*GlobalParams) SporkRootBlockHeight ¶ added in v0.29.6

func (_m *GlobalParams) SporkRootBlockHeight() uint64

SporkRootBlockHeight provides a mock function with given fields:

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) FinalizedRoot ¶ added in v0.30.7

func (_m *InstanceParams) FinalizedRoot() *flow.Header

FinalizedRoot provides a mock function with given fields:

func (*InstanceParams) Seal ¶ added in v0.23.2

func (_m *InstanceParams) Seal() *flow.Seal

Seal provides a mock function with given fields:

func (*InstanceParams) SealedRoot ¶ added in v0.30.7

func (_m *InstanceParams) SealedRoot() *flow.Header

SealedRoot provides a mock function with given fields:

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) GetEpochExtensionViewCount ¶ added in v0.37.1

func (_m *KVStoreReader) GetEpochExtensionViewCount() uint64

GetEpochExtensionViewCount provides a mock function with given fields:

func (*KVStoreReader) GetEpochStateID ¶ added in v0.33.30

func (_m *KVStoreReader) GetEpochStateID() flow.Identifier

GetEpochStateID provides a mock function with given fields:

func (*KVStoreReader) GetFinalizationSafetyThreshold ¶ added in v0.39.0

func (_m *KVStoreReader) GetFinalizationSafetyThreshold() uint64

GetFinalizationSafetyThreshold provides a mock function with given fields:

func (*KVStoreReader) GetProtocolStateVersion ¶ added in v0.33.30

func (_m *KVStoreReader) GetProtocolStateVersion() uint64

GetProtocolStateVersion provides a mock function with given fields:

func (*KVStoreReader) GetVersionUpgrade ¶ added in v0.33.30

func (_m *KVStoreReader) GetVersionUpgrade() *protocol.ViewBasedActivator[uint64]

GetVersionUpgrade provides a mock function with given fields:

func (*KVStoreReader) ID ¶ added in v0.33.30

func (_m *KVStoreReader) ID() flow.Identifier

ID provides a mock function with given fields:

func (*KVStoreReader) VersionedEncode ¶ added in v0.33.30

func (_m *KVStoreReader) VersionedEncode() (uint64, []byte, error)

VersionedEncode provides a mock function with given fields:

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) EpochStateAtBlockID ¶ added in v0.33.30

func (_m *MutableProtocolState) EpochStateAtBlockID(blockID flow.Identifier) (protocol.EpochProtocolState, error)

EpochStateAtBlockID provides a mock function with given fields: blockID

func (*MutableProtocolState) EvolveState ¶ added in v0.33.30

func (_m *MutableProtocolState) EvolveState(parentBlockID flow.Identifier, candidateView uint64, candidateSeals []*flow.Seal) (flow.Identifier, *transaction.DeferredBlockPersist, error)

EvolveState provides a mock function with given fields: parentBlockID, candidateView, candidateSeals

func (*MutableProtocolState) GlobalParams ¶ added in v0.33.30

func (_m *MutableProtocolState) GlobalParams() protocol.GlobalParams

GlobalParams provides a mock function with given fields:

func (*MutableProtocolState) KVStoreAtBlockID ¶ added in v0.33.30

func (_m *MutableProtocolState) KVStoreAtBlockID(blockID flow.Identifier) (protocol.KVStoreReader, error)

KVStoreAtBlockID provides a mock function with given fields: blockID

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 (_m *Params) ChainID() flow.ChainID

ChainID provides a mock function with given fields:

func (*Params) FinalizedRoot ¶ added in v0.30.7

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

FinalizedRoot provides a mock function with given fields:

func (*Params) Seal ¶

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

Seal provides a mock function with given fields:

func (*Params) SealedRoot ¶ added in v0.30.7

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

SealedRoot provides a mock function with given fields:

func (*Params) SporkID ¶ added in v0.23.2

func (_m *Params) SporkID() flow.Identifier

SporkID provides a mock function with given fields:

func (*Params) SporkRootBlockHeight ¶ added in v0.29.6

func (_m *Params) SporkRootBlockHeight() uint64

SporkRootBlockHeight provides a mock function with given fields:

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 (_m *ParticipantState) AtBlockID(blockID flow.Identifier) protocol.Snapshot

AtBlockID provides a mock function with given fields: blockID

func (*ParticipantState) AtHeight ¶ added in v0.30.0

func (_m *ParticipantState) AtHeight(height uint64) protocol.Snapshot

AtHeight provides a mock function with given fields: height

func (*ParticipantState) Extend ¶ added in v0.30.0

func (_m *ParticipantState) Extend(ctx context.Context, candidate *flow.Block) error

Extend provides a mock function with given fields: ctx, candidate

func (*ParticipantState) ExtendCertified ¶ added in v0.30.0

func (_m *ParticipantState) ExtendCertified(ctx context.Context, candidate *flow.Block, qc *flow.QuorumCertificate) error

ExtendCertified provides a mock function with given fields: ctx, candidate, qc

func (*ParticipantState) Final ¶ added in v0.30.0

func (_m *ParticipantState) Final() protocol.Snapshot

Final provides a mock function with given fields:

func (*ParticipantState) Finalize ¶ added in v0.30.0

func (_m *ParticipantState) Finalize(ctx context.Context, blockID flow.Identifier) error

Finalize provides a mock function with given fields: ctx, blockID

func (*ParticipantState) Params ¶ added in v0.30.0

func (_m *ParticipantState) Params() protocol.Params

Params provides a mock function with given fields:

func (*ParticipantState) Sealed ¶ added in v0.30.0

func (_m *ParticipantState) Sealed() protocol.Snapshot

Sealed provides a mock function with given fields:

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) EpochStateAtBlockID ¶ added in v0.33.30

func (_m *ProtocolState) EpochStateAtBlockID(blockID flow.Identifier) (protocol.EpochProtocolState, error)

EpochStateAtBlockID provides a mock function with given fields: blockID

func (*ProtocolState) GlobalParams ¶ added in v0.33.30

func (_m *ProtocolState) GlobalParams() protocol.GlobalParams

GlobalParams provides a mock function with given fields:

func (*ProtocolState) KVStoreAtBlockID ¶ added in v0.33.30

func (_m *ProtocolState) KVStoreAtBlockID(blockID flow.Identifier) (protocol.KVStoreReader, error)

KVStoreAtBlockID provides a mock function with given fields: blockID

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 (_m *Snapshot) Commit() (flow.StateCommitment, error)

Commit provides a mock function with given fields:

func (*Snapshot) Descendants ¶ added in v0.17.6

func (_m *Snapshot) Descendants() ([]flow.Identifier, error)

Descendants provides a mock function with given fields:

func (*Snapshot) EpochPhase ¶ added in v0.37.1

func (_m *Snapshot) EpochPhase() (flow.EpochPhase, error)

EpochPhase provides a mock function with given fields:

func (*Snapshot) EpochProtocolState ¶ added in v0.33.30

func (_m *Snapshot) EpochProtocolState() (protocol.EpochProtocolState, error)

EpochProtocolState provides a mock function with given fields:

func (*Snapshot) Epochs ¶

func (_m *Snapshot) Epochs() protocol.EpochQuery

Epochs provides a mock function with given fields:

func (*Snapshot) Head ¶

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

Head provides a mock function with given fields:

func (*Snapshot) Identities ¶

Identities provides a mock function with given fields: selector

func (*Snapshot) Identity ¶

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

Identity provides a mock function with given fields: nodeID

func (*Snapshot) Params ¶ added in v0.23.2

func (_m *Snapshot) Params() protocol.GlobalParams

Params provides a mock function with given fields:

func (*Snapshot) ProtocolState ¶ added in v0.33.30

func (_m *Snapshot) ProtocolState() (protocol.KVStoreReader, error)

ProtocolState provides a mock function with given fields:

func (*Snapshot) QuorumCertificate ¶ added in v0.15.0

func (_m *Snapshot) QuorumCertificate() (*flow.QuorumCertificate, error)

QuorumCertificate provides a mock function with given fields:

func (*Snapshot) RandomSource ¶ added in v0.25.0

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

RandomSource provides a mock function with given fields:

func (*Snapshot) SealedResult ¶ added in v0.15.0

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

SealedResult provides a mock function with given fields:

func (*Snapshot) SealingSegment ¶ added in v0.15.0

func (_m *Snapshot) SealingSegment() (*flow.SealingSegment, error)

SealingSegment provides a mock function with given fields:

func (*Snapshot) VersionBeacon ¶ added in v0.31.0

func (_m *Snapshot) VersionBeacon() (*flow.SealedVersionBeacon, error)

VersionBeacon provides a mock function with given fields:

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) ProtocolState ¶ added in v0.39.0

func (_m *SnapshotExecutionSubset) ProtocolState() (protocol.KVStoreReader, error)

ProtocolState provides a mock function with given fields:

func (*SnapshotExecutionSubset) RandomSource ¶ added in v0.37.25

func (_m *SnapshotExecutionSubset) RandomSource() ([]byte, error)

RandomSource provides a mock function with given fields:

func (*SnapshotExecutionSubset) VersionBeacon ¶ added in v0.37.25

func (_m *SnapshotExecutionSubset) VersionBeacon() (*flow.SealedVersionBeacon, error)

VersionBeacon provides a mock function with given fields:

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 with given fields: blockID

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 (_m *State) AtBlockID(blockID flow.Identifier) protocol.Snapshot

AtBlockID provides a mock function with given fields: blockID

func (*State) AtHeight ¶

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

AtHeight provides a mock function with given fields: height

func (*State) Final ¶

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

Final provides a mock function with given fields:

func (*State) Params ¶

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

Params provides a mock function with given fields:

func (*State) Sealed ¶

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

Sealed provides a mock function with given fields:

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 (_m *TentativeEpoch) Clustering() (flow.ClusterList, error)

Clustering provides a mock function with given fields:

func (*TentativeEpoch) Counter ¶ added in v0.39.2

func (_m *TentativeEpoch) Counter() uint64

Counter provides a mock function with given fields:

func (*TentativeEpoch) InitialIdentities ¶ added in v0.39.2

func (_m *TentativeEpoch) InitialIdentities() flow.GenericIdentityList[flow.IdentitySkeleton]

InitialIdentities provides a mock function with given fields:

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) VersionedEncode ¶ added in v0.33.30

func (_m *VersionedEncodable) VersionedEncode() (uint64, []byte, error)

VersionedEncode provides a mock function with given fields:

Jump to

Keyboard shortcuts

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