mock

package
v0.29.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessMetrics

type AccessMetrics struct {
	mock.Mock
}

AccessMetrics is an autogenerated mock type for the AccessMetrics type

func NewAccessMetrics

func NewAccessMetrics(t mockConstructorTestingTNewAccessMetrics) *AccessMetrics

NewAccessMetrics creates a new instance of AccessMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AccessMetrics) ConnectionAddedToPool

func (_m *AccessMetrics) ConnectionAddedToPool()

ConnectionAddedToPool provides a mock function with given fields:

func (*AccessMetrics) ConnectionFromPoolEvicted

func (_m *AccessMetrics) ConnectionFromPoolEvicted()

ConnectionFromPoolEvicted provides a mock function with given fields:

func (*AccessMetrics) ConnectionFromPoolInvalidated

func (_m *AccessMetrics) ConnectionFromPoolInvalidated()

ConnectionFromPoolInvalidated provides a mock function with given fields:

func (*AccessMetrics) ConnectionFromPoolReused

func (_m *AccessMetrics) ConnectionFromPoolReused()

ConnectionFromPoolReused provides a mock function with given fields:

func (*AccessMetrics) ConnectionFromPoolUpdated

func (_m *AccessMetrics) ConnectionFromPoolUpdated()

ConnectionFromPoolUpdated provides a mock function with given fields:

func (*AccessMetrics) NewConnectionEstablished

func (_m *AccessMetrics) NewConnectionEstablished()

NewConnectionEstablished provides a mock function with given fields:

func (*AccessMetrics) TotalConnectionsInPool

func (_m *AccessMetrics) TotalConnectionsInPool(connectionCount uint, connectionPoolSize uint)

TotalConnectionsInPool provides a mock function with given fields: connectionCount, connectionPoolSize

type BackendScriptsMetrics

type BackendScriptsMetrics struct {
	mock.Mock
}

BackendScriptsMetrics is an autogenerated mock type for the BackendScriptsMetrics type

func NewBackendScriptsMetrics

func NewBackendScriptsMetrics(t mockConstructorTestingTNewBackendScriptsMetrics) *BackendScriptsMetrics

NewBackendScriptsMetrics creates a new instance of BackendScriptsMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BackendScriptsMetrics) ScriptExecuted

func (_m *BackendScriptsMetrics) ScriptExecuted(dur time.Duration, size int)

ScriptExecuted provides a mock function with given fields: dur, size

type BitswapMetrics

type BitswapMetrics struct {
	mock.Mock
}

BitswapMetrics is an autogenerated mock type for the BitswapMetrics type

func NewBitswapMetrics

func NewBitswapMetrics(t mockConstructorTestingTNewBitswapMetrics) *BitswapMetrics

NewBitswapMetrics creates a new instance of BitswapMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BitswapMetrics) BlobsReceived

func (_m *BitswapMetrics) BlobsReceived(prefix string, n uint64)

BlobsReceived provides a mock function with given fields: prefix, n

func (*BitswapMetrics) BlobsSent

func (_m *BitswapMetrics) BlobsSent(prefix string, n uint64)

BlobsSent provides a mock function with given fields: prefix, n

func (*BitswapMetrics) DataReceived

func (_m *BitswapMetrics) DataReceived(prefix string, n uint64)

DataReceived provides a mock function with given fields: prefix, n

func (*BitswapMetrics) DataSent

func (_m *BitswapMetrics) DataSent(prefix string, n uint64)

DataSent provides a mock function with given fields: prefix, n

func (*BitswapMetrics) DupBlobsReceived

func (_m *BitswapMetrics) DupBlobsReceived(prefix string, n uint64)

DupBlobsReceived provides a mock function with given fields: prefix, n

func (*BitswapMetrics) DupDataReceived

func (_m *BitswapMetrics) DupDataReceived(prefix string, n uint64)

DupDataReceived provides a mock function with given fields: prefix, n

func (*BitswapMetrics) MessagesReceived

func (_m *BitswapMetrics) MessagesReceived(prefix string, n uint64)

MessagesReceived provides a mock function with given fields: prefix, n

func (*BitswapMetrics) Peers

func (_m *BitswapMetrics) Peers(prefix string, n int)

Peers provides a mock function with given fields: prefix, n

func (*BitswapMetrics) Wantlist

func (_m *BitswapMetrics) Wantlist(prefix string, n int)

Wantlist provides a mock function with given fields: prefix, n

type BlockRequester

type BlockRequester struct {
	mock.Mock
}

BlockRequester is an autogenerated mock type for the BlockRequester type

func NewBlockRequester

func NewBlockRequester(t mockConstructorTestingTNewBlockRequester) *BlockRequester

NewBlockRequester creates a new instance of BlockRequester. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BlockRequester) Prune

func (_m *BlockRequester) Prune(final *flow.Header)

Prune provides a mock function with given fields: final

func (*BlockRequester) RequestBlock

func (_m *BlockRequester) RequestBlock(blockID flow.Identifier, height uint64)

RequestBlock provides a mock function with given fields: blockID, height

func (*BlockRequester) RequestHeight

func (_m *BlockRequester) RequestHeight(height uint64)

RequestHeight provides a mock function with given fields: height

type Builder

type Builder struct {
	mock.Mock
}

Builder is an autogenerated mock type for the Builder type

func NewBuilder

func NewBuilder(t mockConstructorTestingTNewBuilder) *Builder

NewBuilder creates a new instance of Builder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Builder) BuildOn

func (_m *Builder) BuildOn(parentID flow.Identifier, setter func(*flow.Header) error) (*flow.Header, error)

BuildOn provides a mock function with given fields: parentID, setter

type CacheMetrics

type CacheMetrics struct {
	mock.Mock
}

CacheMetrics is an autogenerated mock type for the CacheMetrics type

func NewCacheMetrics

func NewCacheMetrics(t mockConstructorTestingTNewCacheMetrics) *CacheMetrics

NewCacheMetrics creates a new instance of CacheMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CacheMetrics) CacheEntries

func (_m *CacheMetrics) CacheEntries(resource string, entries uint)

CacheEntries provides a mock function with given fields: resource, entries

func (*CacheMetrics) CacheHit

func (_m *CacheMetrics) CacheHit(resource string)

CacheHit provides a mock function with given fields: resource

func (*CacheMetrics) CacheMiss

func (_m *CacheMetrics) CacheMiss(resource string)

CacheMiss provides a mock function with given fields: resource

func (*CacheMetrics) CacheNotFound

func (_m *CacheMetrics) CacheNotFound(resource string)

CacheNotFound provides a mock function with given fields: resource

type ChainSyncMetrics

type ChainSyncMetrics struct {
	mock.Mock
}

ChainSyncMetrics is an autogenerated mock type for the ChainSyncMetrics type

func NewChainSyncMetrics

func NewChainSyncMetrics(t mockConstructorTestingTNewChainSyncMetrics) *ChainSyncMetrics

NewChainSyncMetrics creates a new instance of ChainSyncMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ChainSyncMetrics) BatchRequested

func (_m *ChainSyncMetrics) BatchRequested(batch chainsync.Batch)

BatchRequested provides a mock function with given fields: batch

func (*ChainSyncMetrics) PrunedBlockByHeight

func (_m *ChainSyncMetrics) PrunedBlockByHeight(status *chainsync.Status)

PrunedBlockByHeight provides a mock function with given fields: status

func (*ChainSyncMetrics) PrunedBlockById

func (_m *ChainSyncMetrics) PrunedBlockById(status *chainsync.Status)

PrunedBlockById provides a mock function with given fields: status

func (*ChainSyncMetrics) PrunedBlocks

func (_m *ChainSyncMetrics) PrunedBlocks(totalByHeight int, totalById int, storedByHeight int, storedById int)

PrunedBlocks provides a mock function with given fields: totalByHeight, totalById, storedByHeight, storedById

func (*ChainSyncMetrics) RangeRequested

func (_m *ChainSyncMetrics) RangeRequested(ran chainsync.Range)

RangeRequested provides a mock function with given fields: ran

type ChunkAssigner

type ChunkAssigner struct {
	mock.Mock
}

ChunkAssigner is an autogenerated mock type for the ChunkAssigner type

func NewChunkAssigner

func NewChunkAssigner(t mockConstructorTestingTNewChunkAssigner) *ChunkAssigner

NewChunkAssigner creates a new instance of ChunkAssigner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ChunkAssigner) Assign

func (_m *ChunkAssigner) Assign(result *flow.ExecutionResult, blockID flow.Identifier) (*chunks.Assignment, error)

Assign provides a mock function with given fields: result, blockID

type ChunkVerifier

type ChunkVerifier struct {
	mock.Mock
}

ChunkVerifier is an autogenerated mock type for the ChunkVerifier type

func NewChunkVerifier

func NewChunkVerifier(t mockConstructorTestingTNewChunkVerifier) *ChunkVerifier

NewChunkVerifier creates a new instance of ChunkVerifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ChunkVerifier) Verify

Verify provides a mock function with given fields: ch

type CleanerMetrics

type CleanerMetrics struct {
	mock.Mock
}

CleanerMetrics is an autogenerated mock type for the CleanerMetrics type

func NewCleanerMetrics

func NewCleanerMetrics(t mockConstructorTestingTNewCleanerMetrics) *CleanerMetrics

NewCleanerMetrics creates a new instance of CleanerMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CleanerMetrics) RanGC

func (_m *CleanerMetrics) RanGC(took time.Duration)

RanGC provides a mock function with given fields: took

type ClusterRootQCVoter

type ClusterRootQCVoter struct {
	mock.Mock
}

ClusterRootQCVoter is an autogenerated mock type for the ClusterRootQCVoter type

func NewClusterRootQCVoter

func NewClusterRootQCVoter(t mockConstructorTestingTNewClusterRootQCVoter) *ClusterRootQCVoter

NewClusterRootQCVoter creates a new instance of ClusterRootQCVoter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ClusterRootQCVoter) Vote

Vote provides a mock function with given fields: _a0, _a1

type CollectionMetrics

type CollectionMetrics struct {
	mock.Mock
}

CollectionMetrics is an autogenerated mock type for the CollectionMetrics type

func NewCollectionMetrics

func NewCollectionMetrics(t mockConstructorTestingTNewCollectionMetrics) *CollectionMetrics

NewCollectionMetrics creates a new instance of CollectionMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CollectionMetrics) ClusterBlockFinalized

func (_m *CollectionMetrics) ClusterBlockFinalized(block *cluster.Block)

ClusterBlockFinalized provides a mock function with given fields: block

func (*CollectionMetrics) ClusterBlockProposed

func (_m *CollectionMetrics) ClusterBlockProposed(block *cluster.Block)

ClusterBlockProposed provides a mock function with given fields: block

func (*CollectionMetrics) TransactionIngested

func (_m *CollectionMetrics) TransactionIngested(txID flow.Identifier)

TransactionIngested provides a mock function with given fields: txID

type ComplianceMetrics

type ComplianceMetrics struct {
	mock.Mock
}

ComplianceMetrics is an autogenerated mock type for the ComplianceMetrics type

func NewComplianceMetrics

func NewComplianceMetrics(t mockConstructorTestingTNewComplianceMetrics) *ComplianceMetrics

NewComplianceMetrics creates a new instance of ComplianceMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ComplianceMetrics) BlockFinalized

func (_m *ComplianceMetrics) BlockFinalized(_a0 *flow.Block)

BlockFinalized provides a mock function with given fields: _a0

func (*ComplianceMetrics) BlockProposalDuration

func (_m *ComplianceMetrics) BlockProposalDuration(duration time.Duration)

BlockProposalDuration provides a mock function with given fields: duration

func (*ComplianceMetrics) BlockSealed

func (_m *ComplianceMetrics) BlockSealed(_a0 *flow.Block)

BlockSealed provides a mock function with given fields: _a0

func (*ComplianceMetrics) CommittedEpochFinalView

func (_m *ComplianceMetrics) CommittedEpochFinalView(view uint64)

CommittedEpochFinalView provides a mock function with given fields: view

func (*ComplianceMetrics) CurrentDKGPhase1FinalView

func (_m *ComplianceMetrics) CurrentDKGPhase1FinalView(view uint64)

CurrentDKGPhase1FinalView provides a mock function with given fields: view

func (*ComplianceMetrics) CurrentDKGPhase2FinalView

func (_m *ComplianceMetrics) CurrentDKGPhase2FinalView(view uint64)

CurrentDKGPhase2FinalView provides a mock function with given fields: view

func (*ComplianceMetrics) CurrentDKGPhase3FinalView

func (_m *ComplianceMetrics) CurrentDKGPhase3FinalView(view uint64)

CurrentDKGPhase3FinalView provides a mock function with given fields: view

func (*ComplianceMetrics) CurrentEpochCounter

func (_m *ComplianceMetrics) CurrentEpochCounter(counter uint64)

CurrentEpochCounter provides a mock function with given fields: counter

func (*ComplianceMetrics) CurrentEpochFinalView

func (_m *ComplianceMetrics) CurrentEpochFinalView(view uint64)

CurrentEpochFinalView provides a mock function with given fields: view

func (*ComplianceMetrics) CurrentEpochPhase

func (_m *ComplianceMetrics) CurrentEpochPhase(phase flow.EpochPhase)

CurrentEpochPhase provides a mock function with given fields: phase

func (*ComplianceMetrics) EpochEmergencyFallbackTriggered

func (_m *ComplianceMetrics) EpochEmergencyFallbackTriggered()

EpochEmergencyFallbackTriggered provides a mock function with given fields:

func (*ComplianceMetrics) FinalizedHeight

func (_m *ComplianceMetrics) FinalizedHeight(height uint64)

FinalizedHeight provides a mock function with given fields: height

func (*ComplianceMetrics) SealedHeight

func (_m *ComplianceMetrics) SealedHeight(height uint64)

SealedHeight provides a mock function with given fields: height

type ConsensusMetrics

type ConsensusMetrics struct {
	mock.Mock
}

ConsensusMetrics is an autogenerated mock type for the ConsensusMetrics type

func NewConsensusMetrics

func NewConsensusMetrics(t mockConstructorTestingTNewConsensusMetrics) *ConsensusMetrics

NewConsensusMetrics creates a new instance of ConsensusMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConsensusMetrics) CheckSealingDuration

func (_m *ConsensusMetrics) CheckSealingDuration(duration time.Duration)

CheckSealingDuration provides a mock function with given fields: duration

func (*ConsensusMetrics) EmergencySeal

func (_m *ConsensusMetrics) EmergencySeal()

EmergencySeal provides a mock function with given fields:

func (*ConsensusMetrics) FinishBlockToSeal

func (_m *ConsensusMetrics) FinishBlockToSeal(blockID flow.Identifier)

FinishBlockToSeal provides a mock function with given fields: blockID

func (*ConsensusMetrics) FinishCollectionToFinalized

func (_m *ConsensusMetrics) FinishCollectionToFinalized(collectionID flow.Identifier)

FinishCollectionToFinalized provides a mock function with given fields: collectionID

func (*ConsensusMetrics) OnApprovalProcessingDuration

func (_m *ConsensusMetrics) OnApprovalProcessingDuration(duration time.Duration)

OnApprovalProcessingDuration provides a mock function with given fields: duration

func (*ConsensusMetrics) OnReceiptProcessingDuration

func (_m *ConsensusMetrics) OnReceiptProcessingDuration(duration time.Duration)

OnReceiptProcessingDuration provides a mock function with given fields: duration

func (*ConsensusMetrics) StartBlockToSeal

func (_m *ConsensusMetrics) StartBlockToSeal(blockID flow.Identifier)

StartBlockToSeal provides a mock function with given fields: blockID

func (*ConsensusMetrics) StartCollectionToFinalized

func (_m *ConsensusMetrics) StartCollectionToFinalized(collectionID flow.Identifier)

StartCollectionToFinalized provides a mock function with given fields: collectionID

type DHTMetrics

type DHTMetrics struct {
	mock.Mock
}

DHTMetrics is an autogenerated mock type for the DHTMetrics type

func NewDHTMetrics

func NewDHTMetrics(t mockConstructorTestingTNewDHTMetrics) *DHTMetrics

NewDHTMetrics creates a new instance of DHTMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DHTMetrics) RoutingTablePeerAdded

func (_m *DHTMetrics) RoutingTablePeerAdded()

RoutingTablePeerAdded provides a mock function with given fields:

func (*DHTMetrics) RoutingTablePeerRemoved

func (_m *DHTMetrics) RoutingTablePeerRemoved()

RoutingTablePeerRemoved provides a mock function with given fields:

type DKGBroker

type DKGBroker struct {
	mock.Mock
}

DKGBroker is an autogenerated mock type for the DKGBroker type

func NewDKGBroker

func NewDKGBroker(t mockConstructorTestingTNewDKGBroker) *DKGBroker

NewDKGBroker creates a new instance of DKGBroker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DKGBroker) Broadcast

func (_m *DKGBroker) Broadcast(data []byte)

Broadcast provides a mock function with given fields: data

func (*DKGBroker) Disqualify

func (_m *DKGBroker) Disqualify(participant int, log string)

Disqualify provides a mock function with given fields: participant, log

func (*DKGBroker) FlagMisbehavior

func (_m *DKGBroker) FlagMisbehavior(participant int, log string)

FlagMisbehavior provides a mock function with given fields: participant, log

func (*DKGBroker) GetBroadcastMsgCh

func (_m *DKGBroker) GetBroadcastMsgCh() <-chan messages.BroadcastDKGMessage

GetBroadcastMsgCh provides a mock function with given fields:

func (*DKGBroker) GetIndex

func (_m *DKGBroker) GetIndex() int

GetIndex provides a mock function with given fields:

func (*DKGBroker) GetPrivateMsgCh

func (_m *DKGBroker) GetPrivateMsgCh() <-chan messages.PrivDKGMessageIn

GetPrivateMsgCh provides a mock function with given fields:

func (*DKGBroker) Poll

func (_m *DKGBroker) Poll(referenceBlock flow.Identifier) error

Poll provides a mock function with given fields: referenceBlock

func (*DKGBroker) PrivateSend

func (_m *DKGBroker) PrivateSend(dest int, data []byte)

PrivateSend provides a mock function with given fields: dest, data

func (*DKGBroker) Shutdown

func (_m *DKGBroker) Shutdown()

Shutdown provides a mock function with given fields:

func (*DKGBroker) SubmitResult

func (_m *DKGBroker) SubmitResult(_a0 crypto.PublicKey, _a1 []crypto.PublicKey) error

SubmitResult provides a mock function with given fields: _a0, _a1

type DKGContractClient

type DKGContractClient struct {
	mock.Mock
}

DKGContractClient is an autogenerated mock type for the DKGContractClient type

func NewDKGContractClient

func NewDKGContractClient(t mockConstructorTestingTNewDKGContractClient) *DKGContractClient

NewDKGContractClient creates a new instance of DKGContractClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DKGContractClient) Broadcast

Broadcast provides a mock function with given fields: msg

func (*DKGContractClient) ReadBroadcast

func (_m *DKGContractClient) ReadBroadcast(fromIndex uint, referenceBlock flow.Identifier) ([]messages.BroadcastDKGMessage, error)

ReadBroadcast provides a mock function with given fields: fromIndex, referenceBlock

func (*DKGContractClient) SubmitResult

func (_m *DKGContractClient) SubmitResult(_a0 crypto.PublicKey, _a1 []crypto.PublicKey) error

SubmitResult provides a mock function with given fields: _a0, _a1

type DKGController

type DKGController struct {
	mock.Mock
}

DKGController is an autogenerated mock type for the DKGController type

func NewDKGController

func NewDKGController(t mockConstructorTestingTNewDKGController) *DKGController

NewDKGController creates a new instance of DKGController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DKGController) End

func (_m *DKGController) End() error

End provides a mock function with given fields:

func (*DKGController) EndPhase1

func (_m *DKGController) EndPhase1() error

EndPhase1 provides a mock function with given fields:

func (*DKGController) EndPhase2

func (_m *DKGController) EndPhase2() error

EndPhase2 provides a mock function with given fields:

func (*DKGController) GetArtifacts

func (_m *DKGController) GetArtifacts() (crypto.PrivateKey, crypto.PublicKey, []crypto.PublicKey)

GetArtifacts provides a mock function with given fields:

func (*DKGController) GetIndex

func (_m *DKGController) GetIndex() int

GetIndex provides a mock function with given fields:

func (*DKGController) Poll

func (_m *DKGController) Poll(blockReference flow.Identifier) error

Poll provides a mock function with given fields: blockReference

func (*DKGController) Run

func (_m *DKGController) Run() error

Run provides a mock function with given fields:

func (*DKGController) Shutdown

func (_m *DKGController) Shutdown()

Shutdown provides a mock function with given fields:

func (*DKGController) SubmitResult

func (_m *DKGController) SubmitResult() error

SubmitResult provides a mock function with given fields:

type DKGControllerFactory

type DKGControllerFactory struct {
	mock.Mock
}

DKGControllerFactory is an autogenerated mock type for the DKGControllerFactory type

func NewDKGControllerFactory

func NewDKGControllerFactory(t mockConstructorTestingTNewDKGControllerFactory) *DKGControllerFactory

NewDKGControllerFactory creates a new instance of DKGControllerFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DKGControllerFactory) Create

func (_m *DKGControllerFactory) Create(dkgInstanceID string, participants flow.IdentityList, seed []byte) (module.DKGController, error)

Create provides a mock function with given fields: dkgInstanceID, participants, seed

type EngineMetrics

type EngineMetrics struct {
	mock.Mock
}

EngineMetrics is an autogenerated mock type for the EngineMetrics type

func NewEngineMetrics

func NewEngineMetrics(t mockConstructorTestingTNewEngineMetrics) *EngineMetrics

NewEngineMetrics creates a new instance of EngineMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EngineMetrics) MessageHandled

func (_m *EngineMetrics) MessageHandled(engine string, messages string)

MessageHandled provides a mock function with given fields: engine, messages

func (*EngineMetrics) MessageReceived

func (_m *EngineMetrics) MessageReceived(engine string, message string)

MessageReceived provides a mock function with given fields: engine, message

func (*EngineMetrics) MessageSent

func (_m *EngineMetrics) MessageSent(engine string, message string)

MessageSent provides a mock function with given fields: engine, message

type EntriesFunc

type EntriesFunc struct {
	mock.Mock
}

EntriesFunc is an autogenerated mock type for the EntriesFunc type

func NewEntriesFunc

func NewEntriesFunc(t mockConstructorTestingTNewEntriesFunc) *EntriesFunc

NewEntriesFunc creates a new instance of EntriesFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EntriesFunc) Execute

func (_m *EntriesFunc) Execute() uint

Execute provides a mock function with given fields:

type EpochLookup

type EpochLookup struct {
	mock.Mock
}

EpochLookup is an autogenerated mock type for the EpochLookup type

func NewEpochLookup

func NewEpochLookup(t mockConstructorTestingTNewEpochLookup) *EpochLookup

NewEpochLookup creates a new instance of EpochLookup. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EpochLookup) EpochForView

func (_m *EpochLookup) EpochForView(view uint64) (uint64, error)

EpochForView provides a mock function with given fields: view

func (*EpochLookup) EpochForViewWithFallback

func (_m *EpochLookup) EpochForViewWithFallback(view uint64) (uint64, error)

EpochForViewWithFallback provides a mock function with given fields: view

type ExecutionDataProviderMetrics

type ExecutionDataProviderMetrics struct {
	mock.Mock
}

ExecutionDataProviderMetrics is an autogenerated mock type for the ExecutionDataProviderMetrics type

func NewExecutionDataProviderMetrics

func NewExecutionDataProviderMetrics(t mockConstructorTestingTNewExecutionDataProviderMetrics) *ExecutionDataProviderMetrics

NewExecutionDataProviderMetrics creates a new instance of ExecutionDataProviderMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecutionDataProviderMetrics) AddBlobsFailed

func (_m *ExecutionDataProviderMetrics) AddBlobsFailed()

AddBlobsFailed provides a mock function with given fields:

func (*ExecutionDataProviderMetrics) AddBlobsSucceeded

func (_m *ExecutionDataProviderMetrics) AddBlobsSucceeded(duration time.Duration, totalSize uint64)

AddBlobsSucceeded provides a mock function with given fields: duration, totalSize

func (*ExecutionDataProviderMetrics) RootIDComputed

func (_m *ExecutionDataProviderMetrics) RootIDComputed(duration time.Duration, numberOfChunks int)

RootIDComputed provides a mock function with given fields: duration, numberOfChunks

type ExecutionDataPrunerMetrics

type ExecutionDataPrunerMetrics struct {
	mock.Mock
}

ExecutionDataPrunerMetrics is an autogenerated mock type for the ExecutionDataPrunerMetrics type

func NewExecutionDataPrunerMetrics

func NewExecutionDataPrunerMetrics(t mockConstructorTestingTNewExecutionDataPrunerMetrics) *ExecutionDataPrunerMetrics

NewExecutionDataPrunerMetrics creates a new instance of ExecutionDataPrunerMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecutionDataPrunerMetrics) Pruned

func (_m *ExecutionDataPrunerMetrics) Pruned(height uint64, duration time.Duration)

Pruned provides a mock function with given fields: height, duration

type ExecutionDataRequesterMetrics

type ExecutionDataRequesterMetrics struct {
	mock.Mock
}

ExecutionDataRequesterMetrics is an autogenerated mock type for the ExecutionDataRequesterMetrics type

func NewExecutionDataRequesterMetrics

func NewExecutionDataRequesterMetrics(t mockConstructorTestingTNewExecutionDataRequesterMetrics) *ExecutionDataRequesterMetrics

NewExecutionDataRequesterMetrics creates a new instance of ExecutionDataRequesterMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecutionDataRequesterMetrics) ExecutionDataFetchFinished

func (_m *ExecutionDataRequesterMetrics) ExecutionDataFetchFinished(duration time.Duration, success bool, height uint64)

ExecutionDataFetchFinished provides a mock function with given fields: duration, success, height

func (*ExecutionDataRequesterMetrics) ExecutionDataFetchStarted

func (_m *ExecutionDataRequesterMetrics) ExecutionDataFetchStarted()

ExecutionDataFetchStarted provides a mock function with given fields:

func (*ExecutionDataRequesterMetrics) FetchRetried

func (_m *ExecutionDataRequesterMetrics) FetchRetried()

FetchRetried provides a mock function with given fields:

func (*ExecutionDataRequesterMetrics) NotificationSent

func (_m *ExecutionDataRequesterMetrics) NotificationSent(height uint64)

NotificationSent provides a mock function with given fields: height

type ExecutionDataRequesterV2Metrics

type ExecutionDataRequesterV2Metrics struct {
	mock.Mock
}

ExecutionDataRequesterV2Metrics is an autogenerated mock type for the ExecutionDataRequesterV2Metrics type

func NewExecutionDataRequesterV2Metrics

func NewExecutionDataRequesterV2Metrics(t mockConstructorTestingTNewExecutionDataRequesterV2Metrics) *ExecutionDataRequesterV2Metrics

NewExecutionDataRequesterV2Metrics creates a new instance of ExecutionDataRequesterV2Metrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecutionDataRequesterV2Metrics) FulfilledHeight

func (_m *ExecutionDataRequesterV2Metrics) FulfilledHeight(blockHeight uint64)

FulfilledHeight provides a mock function with given fields: blockHeight

func (*ExecutionDataRequesterV2Metrics) ReceiptSkipped

func (_m *ExecutionDataRequesterV2Metrics) ReceiptSkipped()

ReceiptSkipped provides a mock function with given fields:

func (*ExecutionDataRequesterV2Metrics) RequestCanceled

func (_m *ExecutionDataRequesterV2Metrics) RequestCanceled()

RequestCanceled provides a mock function with given fields:

func (*ExecutionDataRequesterV2Metrics) RequestFailed

func (_m *ExecutionDataRequesterV2Metrics) RequestFailed(duration time.Duration, retryable bool)

RequestFailed provides a mock function with given fields: duration, retryable

func (*ExecutionDataRequesterV2Metrics) RequestSucceeded

func (_m *ExecutionDataRequesterV2Metrics) RequestSucceeded(blockHeight uint64, duration time.Duration, totalSize uint64, numberOfAttempts int)

RequestSucceeded provides a mock function with given fields: blockHeight, duration, totalSize, numberOfAttempts

func (*ExecutionDataRequesterV2Metrics) ResponseDropped

func (_m *ExecutionDataRequesterV2Metrics) ResponseDropped()

ResponseDropped provides a mock function with given fields:

type ExecutionMetrics

type ExecutionMetrics struct {
	mock.Mock
}

ExecutionMetrics is an autogenerated mock type for the ExecutionMetrics type

func NewExecutionMetrics

func NewExecutionMetrics(t mockConstructorTestingTNewExecutionMetrics) *ExecutionMetrics

NewExecutionMetrics creates a new instance of ExecutionMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecutionMetrics) ChunkDataPackRequestProcessed

func (_m *ExecutionMetrics) ChunkDataPackRequestProcessed()

ChunkDataPackRequestProcessed provides a mock function with given fields:

func (*ExecutionMetrics) ExecutionBlockDataUploadFinished

func (_m *ExecutionMetrics) ExecutionBlockDataUploadFinished(dur time.Duration)

ExecutionBlockDataUploadFinished provides a mock function with given fields: dur

func (*ExecutionMetrics) ExecutionBlockDataUploadStarted

func (_m *ExecutionMetrics) ExecutionBlockDataUploadStarted()

ExecutionBlockDataUploadStarted provides a mock function with given fields:

func (*ExecutionMetrics) ExecutionBlockExecuted

func (_m *ExecutionMetrics) ExecutionBlockExecuted(dur time.Duration, stats module.ExecutionResultStats)

ExecutionBlockExecuted provides a mock function with given fields: dur, stats

func (*ExecutionMetrics) ExecutionBlockExecutionEffortVectorComponent

func (_m *ExecutionMetrics) ExecutionBlockExecutionEffortVectorComponent(_a0 string, _a1 uint)

ExecutionBlockExecutionEffortVectorComponent provides a mock function with given fields: _a0, _a1

func (*ExecutionMetrics) ExecutionChunkDataPackGenerated

func (_m *ExecutionMetrics) ExecutionChunkDataPackGenerated(proofSize int, numberOfTransactions int)

ExecutionChunkDataPackGenerated provides a mock function with given fields: proofSize, numberOfTransactions

func (*ExecutionMetrics) ExecutionCollectionExecuted

func (_m *ExecutionMetrics) ExecutionCollectionExecuted(dur time.Duration, stats module.ExecutionResultStats)

ExecutionCollectionExecuted provides a mock function with given fields: dur, stats

func (*ExecutionMetrics) ExecutionCollectionRequestRetried

func (_m *ExecutionMetrics) ExecutionCollectionRequestRetried()

ExecutionCollectionRequestRetried provides a mock function with given fields:

func (*ExecutionMetrics) ExecutionCollectionRequestSent

func (_m *ExecutionMetrics) ExecutionCollectionRequestSent()

ExecutionCollectionRequestSent provides a mock function with given fields:

func (*ExecutionMetrics) ExecutionComputationResultUploadRetried

func (_m *ExecutionMetrics) ExecutionComputationResultUploadRetried()

ExecutionComputationResultUploadRetried provides a mock function with given fields:

func (*ExecutionMetrics) ExecutionComputationResultUploaded

func (_m *ExecutionMetrics) ExecutionComputationResultUploaded()

ExecutionComputationResultUploaded provides a mock function with given fields:

func (*ExecutionMetrics) ExecutionLastExecutedBlockHeight

func (_m *ExecutionMetrics) ExecutionLastExecutedBlockHeight(height uint64)

ExecutionLastExecutedBlockHeight provides a mock function with given fields: height

func (*ExecutionMetrics) ExecutionScriptExecuted

func (_m *ExecutionMetrics) ExecutionScriptExecuted(dur time.Duration, compUsed uint64, memoryUsed uint64, memoryEstimate uint64)

ExecutionScriptExecuted provides a mock function with given fields: dur, compUsed, memoryUsed, memoryEstimate

func (*ExecutionMetrics) ExecutionStorageStateCommitment

func (_m *ExecutionMetrics) ExecutionStorageStateCommitment(bytes int64)

ExecutionStorageStateCommitment provides a mock function with given fields: bytes

func (*ExecutionMetrics) ExecutionSync

func (_m *ExecutionMetrics) ExecutionSync(syncing bool)

ExecutionSync provides a mock function with given fields: syncing

func (*ExecutionMetrics) ExecutionTransactionExecuted

func (_m *ExecutionMetrics) ExecutionTransactionExecuted(dur time.Duration, compUsed uint64, memoryUsed uint64, actualMemoryUsed uint64, eventCounts int, eventSize int, failed bool)

ExecutionTransactionExecuted provides a mock function with given fields: dur, compUsed, memoryUsed, actualMemoryUsed, eventCounts, eventSize, failed

func (*ExecutionMetrics) FinishBlockReceivedToExecuted

func (_m *ExecutionMetrics) FinishBlockReceivedToExecuted(blockID flow.Identifier)

FinishBlockReceivedToExecuted provides a mock function with given fields: blockID

func (*ExecutionMetrics) ForestApproxMemorySize

func (_m *ExecutionMetrics) ForestApproxMemorySize(bytes uint64)

ForestApproxMemorySize provides a mock function with given fields: bytes

func (*ExecutionMetrics) ForestNumberOfTrees

func (_m *ExecutionMetrics) ForestNumberOfTrees(number uint64)

ForestNumberOfTrees provides a mock function with given fields: number

func (*ExecutionMetrics) LatestTrieMaxDepthTouched

func (_m *ExecutionMetrics) LatestTrieMaxDepthTouched(maxDepth uint16)

LatestTrieMaxDepthTouched provides a mock function with given fields: maxDepth

func (*ExecutionMetrics) LatestTrieRegCount

func (_m *ExecutionMetrics) LatestTrieRegCount(number uint64)

LatestTrieRegCount provides a mock function with given fields: number

func (*ExecutionMetrics) LatestTrieRegCountDiff

func (_m *ExecutionMetrics) LatestTrieRegCountDiff(number int64)

LatestTrieRegCountDiff provides a mock function with given fields: number

func (*ExecutionMetrics) LatestTrieRegSize

func (_m *ExecutionMetrics) LatestTrieRegSize(size uint64)

LatestTrieRegSize provides a mock function with given fields: size

func (*ExecutionMetrics) LatestTrieRegSizeDiff

func (_m *ExecutionMetrics) LatestTrieRegSizeDiff(size int64)

LatestTrieRegSizeDiff provides a mock function with given fields: size

func (*ExecutionMetrics) ProofSize

func (_m *ExecutionMetrics) ProofSize(bytes uint32)

ProofSize provides a mock function with given fields: bytes

func (*ExecutionMetrics) ReadDuration

func (_m *ExecutionMetrics) ReadDuration(duration time.Duration)

ReadDuration provides a mock function with given fields: duration

func (*ExecutionMetrics) ReadDurationPerItem

func (_m *ExecutionMetrics) ReadDurationPerItem(duration time.Duration)

ReadDurationPerItem provides a mock function with given fields: duration

func (*ExecutionMetrics) ReadValuesNumber

func (_m *ExecutionMetrics) ReadValuesNumber(number uint64)

ReadValuesNumber provides a mock function with given fields: number

func (*ExecutionMetrics) ReadValuesSize

func (_m *ExecutionMetrics) ReadValuesSize(byte uint64)

ReadValuesSize provides a mock function with given fields: byte

func (*ExecutionMetrics) RuntimeSetNumberOfAccounts

func (_m *ExecutionMetrics) RuntimeSetNumberOfAccounts(count uint64)

RuntimeSetNumberOfAccounts provides a mock function with given fields: count

func (*ExecutionMetrics) RuntimeTransactionChecked

func (_m *ExecutionMetrics) RuntimeTransactionChecked(dur time.Duration)

RuntimeTransactionChecked provides a mock function with given fields: dur

func (*ExecutionMetrics) RuntimeTransactionInterpreted

func (_m *ExecutionMetrics) RuntimeTransactionInterpreted(dur time.Duration)

RuntimeTransactionInterpreted provides a mock function with given fields: dur

func (*ExecutionMetrics) RuntimeTransactionParsed

func (_m *ExecutionMetrics) RuntimeTransactionParsed(dur time.Duration)

RuntimeTransactionParsed provides a mock function with given fields: dur

func (*ExecutionMetrics) StartBlockReceivedToExecuted

func (_m *ExecutionMetrics) StartBlockReceivedToExecuted(blockID flow.Identifier)

StartBlockReceivedToExecuted provides a mock function with given fields: blockID

func (*ExecutionMetrics) UpdateCollectionMaxHeight

func (_m *ExecutionMetrics) UpdateCollectionMaxHeight(height uint64)

UpdateCollectionMaxHeight provides a mock function with given fields: height

func (*ExecutionMetrics) UpdateCount

func (_m *ExecutionMetrics) UpdateCount()

UpdateCount provides a mock function with given fields:

func (*ExecutionMetrics) UpdateDuration

func (_m *ExecutionMetrics) UpdateDuration(duration time.Duration)

UpdateDuration provides a mock function with given fields: duration

func (*ExecutionMetrics) UpdateDurationPerItem

func (_m *ExecutionMetrics) UpdateDurationPerItem(duration time.Duration)

UpdateDurationPerItem provides a mock function with given fields: duration

func (*ExecutionMetrics) UpdateValuesNumber

func (_m *ExecutionMetrics) UpdateValuesNumber(number uint64)

UpdateValuesNumber provides a mock function with given fields: number

func (*ExecutionMetrics) UpdateValuesSize

func (_m *ExecutionMetrics) UpdateValuesSize(byte uint64)

UpdateValuesSize provides a mock function with given fields: byte

type Finalizer

type Finalizer struct {
	mock.Mock
}

Finalizer is an autogenerated mock type for the Finalizer type

func NewFinalizer

func NewFinalizer(t mockConstructorTestingTNewFinalizer) *Finalizer

NewFinalizer creates a new instance of Finalizer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Finalizer) MakeFinal

func (_m *Finalizer) MakeFinal(blockID flow.Identifier) error

MakeFinal provides a mock function with given fields: blockID

func (*Finalizer) MakeValid

func (_m *Finalizer) MakeValid(blockID flow.Identifier) error

MakeValid provides a mock function with given fields: blockID

type GossipSubRouterMetrics

type GossipSubRouterMetrics struct {
	mock.Mock
}

GossipSubRouterMetrics is an autogenerated mock type for the GossipSubRouterMetrics type

func NewGossipSubRouterMetrics

func NewGossipSubRouterMetrics(t mockConstructorTestingTNewGossipSubRouterMetrics) *GossipSubRouterMetrics

NewGossipSubRouterMetrics creates a new instance of GossipSubRouterMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GossipSubRouterMetrics) OnGraftReceived

func (_m *GossipSubRouterMetrics) OnGraftReceived(count int)

OnGraftReceived provides a mock function with given fields: count

func (*GossipSubRouterMetrics) OnIHaveReceived

func (_m *GossipSubRouterMetrics) OnIHaveReceived(count int)

OnIHaveReceived provides a mock function with given fields: count

func (*GossipSubRouterMetrics) OnIWantReceived

func (_m *GossipSubRouterMetrics) OnIWantReceived(count int)

OnIWantReceived provides a mock function with given fields: count

func (*GossipSubRouterMetrics) OnIncomingRpcAcceptedFully

func (_m *GossipSubRouterMetrics) OnIncomingRpcAcceptedFully()

OnIncomingRpcAcceptedFully provides a mock function with given fields:

func (*GossipSubRouterMetrics) OnIncomingRpcAcceptedOnlyForControlMessages

func (_m *GossipSubRouterMetrics) OnIncomingRpcAcceptedOnlyForControlMessages()

OnIncomingRpcAcceptedOnlyForControlMessages provides a mock function with given fields:

func (*GossipSubRouterMetrics) OnIncomingRpcRejected

func (_m *GossipSubRouterMetrics) OnIncomingRpcRejected()

OnIncomingRpcRejected provides a mock function with given fields:

func (*GossipSubRouterMetrics) OnPruneReceived

func (_m *GossipSubRouterMetrics) OnPruneReceived(count int)

OnPruneReceived provides a mock function with given fields: count

func (*GossipSubRouterMetrics) OnPublishedGossipMessagesReceived

func (_m *GossipSubRouterMetrics) OnPublishedGossipMessagesReceived(count int)

OnPublishedGossipMessagesReceived provides a mock function with given fields: count

type HeroCacheMetrics

type HeroCacheMetrics struct {
	mock.Mock
}

HeroCacheMetrics is an autogenerated mock type for the HeroCacheMetrics type

func NewHeroCacheMetrics

func NewHeroCacheMetrics(t mockConstructorTestingTNewHeroCacheMetrics) *HeroCacheMetrics

NewHeroCacheMetrics creates a new instance of HeroCacheMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HeroCacheMetrics) BucketAvailableSlots

func (_m *HeroCacheMetrics) BucketAvailableSlots(_a0 uint64, _a1 uint64)

BucketAvailableSlots provides a mock function with given fields: _a0, _a1

func (*HeroCacheMetrics) OnEntityEjectionDueToEmergency

func (_m *HeroCacheMetrics) OnEntityEjectionDueToEmergency()

OnEntityEjectionDueToEmergency provides a mock function with given fields:

func (*HeroCacheMetrics) OnEntityEjectionDueToFullCapacity

func (_m *HeroCacheMetrics) OnEntityEjectionDueToFullCapacity()

OnEntityEjectionDueToFullCapacity provides a mock function with given fields:

func (*HeroCacheMetrics) OnKeyGetFailure

func (_m *HeroCacheMetrics) OnKeyGetFailure()

OnKeyGetFailure provides a mock function with given fields:

func (*HeroCacheMetrics) OnKeyGetSuccess

func (_m *HeroCacheMetrics) OnKeyGetSuccess()

OnKeyGetSuccess provides a mock function with given fields:

func (*HeroCacheMetrics) OnKeyPutAttempt

func (_m *HeroCacheMetrics) OnKeyPutAttempt(size uint32)

OnKeyPutAttempt provides a mock function with given fields: size

func (*HeroCacheMetrics) OnKeyPutDeduplicated

func (_m *HeroCacheMetrics) OnKeyPutDeduplicated()

OnKeyPutDeduplicated provides a mock function with given fields:

func (*HeroCacheMetrics) OnKeyPutDrop

func (_m *HeroCacheMetrics) OnKeyPutDrop()

OnKeyPutDrop provides a mock function with given fields:

func (*HeroCacheMetrics) OnKeyPutSuccess

func (_m *HeroCacheMetrics) OnKeyPutSuccess(size uint32)

OnKeyPutSuccess provides a mock function with given fields: size

func (*HeroCacheMetrics) OnKeyRemoved

func (_m *HeroCacheMetrics) OnKeyRemoved(size uint32)

OnKeyRemoved provides a mock function with given fields: size

type HotStuff

type HotStuff struct {
	mock.Mock
}

HotStuff is an autogenerated mock type for the HotStuff type

func NewHotStuff

func NewHotStuff(t mockConstructorTestingTNewHotStuff) *HotStuff

NewHotStuff creates a new instance of HotStuff. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HotStuff) Done

func (_m *HotStuff) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*HotStuff) Ready

func (_m *HotStuff) Ready() <-chan struct{}

Ready provides a mock function with given fields:

func (*HotStuff) Start

func (_m *HotStuff) Start(_a0 irrecoverable.SignalerContext)

Start provides a mock function with given fields: _a0

func (*HotStuff) SubmitProposal

func (_m *HotStuff) SubmitProposal(proposal *flow.Header, parentView uint64) <-chan struct{}

SubmitProposal provides a mock function with given fields: proposal, parentView

type HotStuffFollower

type HotStuffFollower struct {
	mock.Mock
}

HotStuffFollower is an autogenerated mock type for the HotStuffFollower type

func NewHotStuffFollower

func NewHotStuffFollower(t mockConstructorTestingTNewHotStuffFollower) *HotStuffFollower

NewHotStuffFollower creates a new instance of HotStuffFollower. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HotStuffFollower) Done

func (_m *HotStuffFollower) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*HotStuffFollower) Ready

func (_m *HotStuffFollower) Ready() <-chan struct{}

Ready provides a mock function with given fields:

func (*HotStuffFollower) SubmitProposal

func (_m *HotStuffFollower) SubmitProposal(proposal *flow.Header, parentView uint64) <-chan struct{}

SubmitProposal provides a mock function with given fields: proposal, parentView

type HotstuffMetrics

type HotstuffMetrics struct {
	mock.Mock
}

HotstuffMetrics is an autogenerated mock type for the HotstuffMetrics type

func NewHotstuffMetrics

func NewHotstuffMetrics(t mockConstructorTestingTNewHotstuffMetrics) *HotstuffMetrics

NewHotstuffMetrics creates a new instance of HotstuffMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*HotstuffMetrics) CommitteeProcessingDuration

func (_m *HotstuffMetrics) CommitteeProcessingDuration(duration time.Duration)

CommitteeProcessingDuration provides a mock function with given fields: duration

func (*HotstuffMetrics) CountSkipped

func (_m *HotstuffMetrics) CountSkipped()

CountSkipped provides a mock function with given fields:

func (*HotstuffMetrics) CountTimeout

func (_m *HotstuffMetrics) CountTimeout()

CountTimeout provides a mock function with given fields:

func (*HotstuffMetrics) HotStuffBusyDuration

func (_m *HotstuffMetrics) HotStuffBusyDuration(duration time.Duration, event string)

HotStuffBusyDuration provides a mock function with given fields: duration, event

func (*HotstuffMetrics) HotStuffIdleDuration

func (_m *HotstuffMetrics) HotStuffIdleDuration(duration time.Duration)

HotStuffIdleDuration provides a mock function with given fields: duration

func (*HotstuffMetrics) HotStuffWaitDuration

func (_m *HotstuffMetrics) HotStuffWaitDuration(duration time.Duration, event string)

HotStuffWaitDuration provides a mock function with given fields: duration, event

func (*HotstuffMetrics) PayloadProductionDuration

func (_m *HotstuffMetrics) PayloadProductionDuration(duration time.Duration)

PayloadProductionDuration provides a mock function with given fields: duration

func (*HotstuffMetrics) SetCurView

func (_m *HotstuffMetrics) SetCurView(view uint64)

SetCurView provides a mock function with given fields: view

func (*HotstuffMetrics) SetQCView

func (_m *HotstuffMetrics) SetQCView(view uint64)

SetQCView provides a mock function with given fields: view

func (*HotstuffMetrics) SetTimeout

func (_m *HotstuffMetrics) SetTimeout(duration time.Duration)

SetTimeout provides a mock function with given fields: duration

func (*HotstuffMetrics) SignerProcessingDuration

func (_m *HotstuffMetrics) SignerProcessingDuration(duration time.Duration)

SignerProcessingDuration provides a mock function with given fields: duration

func (*HotstuffMetrics) ValidatorProcessingDuration

func (_m *HotstuffMetrics) ValidatorProcessingDuration(duration time.Duration)

ValidatorProcessingDuration provides a mock function with given fields: duration

type IdentifierProvider

type IdentifierProvider struct {
	mock.Mock
}

IdentifierProvider is an autogenerated mock type for the IdentifierProvider type

func NewIdentifierProvider

func NewIdentifierProvider(t mockConstructorTestingTNewIdentifierProvider) *IdentifierProvider

NewIdentifierProvider creates a new instance of IdentifierProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IdentifierProvider) Identifiers

func (_m *IdentifierProvider) Identifiers() flow.IdentifierList

Identifiers provides a mock function with given fields:

type IdentityProvider

type IdentityProvider struct {
	mock.Mock
}

IdentityProvider is an autogenerated mock type for the IdentityProvider type

func NewIdentityProvider

func NewIdentityProvider(t mockConstructorTestingTNewIdentityProvider) *IdentityProvider

NewIdentityProvider creates a new instance of IdentityProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IdentityProvider) ByNodeID

func (_m *IdentityProvider) ByNodeID(_a0 flow.Identifier) (*flow.Identity, bool)

ByNodeID provides a mock function with given fields: _a0

func (*IdentityProvider) ByPeerID

func (_m *IdentityProvider) ByPeerID(_a0 peer.ID) (*flow.Identity, bool)

ByPeerID provides a mock function with given fields: _a0

func (*IdentityProvider) Identities

Identities provides a mock function with given fields: _a0

type Job

type Job struct {
	mock.Mock
}

Job is an autogenerated mock type for the Job type

func NewJob

func NewJob(t mockConstructorTestingTNewJob) *Job

NewJob creates a new instance of Job. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Job) ID

func (_m *Job) ID() module.JobID

ID provides a mock function with given fields:

type JobConsumer

type JobConsumer struct {
	mock.Mock
}

JobConsumer is an autogenerated mock type for the JobConsumer type

func NewJobConsumer

func NewJobConsumer(t mockConstructorTestingTNewJobConsumer) *JobConsumer

NewJobConsumer creates a new instance of JobConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*JobConsumer) Check

func (_m *JobConsumer) Check()

Check provides a mock function with given fields:

func (*JobConsumer) LastProcessedIndex

func (_m *JobConsumer) LastProcessedIndex() uint64

LastProcessedIndex provides a mock function with given fields:

func (*JobConsumer) NotifyJobIsDone

func (_m *JobConsumer) NotifyJobIsDone(_a0 module.JobID) uint64

NotifyJobIsDone provides a mock function with given fields: _a0

func (*JobConsumer) Size

func (_m *JobConsumer) Size() uint

Size provides a mock function with given fields:

func (*JobConsumer) Start

func (_m *JobConsumer) Start(defaultIndex uint64) error

Start provides a mock function with given fields: defaultIndex

func (*JobConsumer) Stop

func (_m *JobConsumer) Stop()

Stop provides a mock function with given fields:

type JobQueue

type JobQueue struct {
	mock.Mock
}

JobQueue is an autogenerated mock type for the JobQueue type

func NewJobQueue

func NewJobQueue(t mockConstructorTestingTNewJobQueue) *JobQueue

NewJobQueue creates a new instance of JobQueue. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*JobQueue) Add

func (_m *JobQueue) Add(job module.Job) error

Add provides a mock function with given fields: job

type Jobs

type Jobs struct {
	mock.Mock
}

Jobs is an autogenerated mock type for the Jobs type

func NewJobs

func NewJobs(t mockConstructorTestingTNewJobs) *Jobs

NewJobs creates a new instance of Jobs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Jobs) AtIndex

func (_m *Jobs) AtIndex(index uint64) (module.Job, error)

AtIndex provides a mock function with given fields: index

func (*Jobs) Head

func (_m *Jobs) Head() (uint64, error)

Head provides a mock function with given fields:

type LedgerMetrics

type LedgerMetrics struct {
	mock.Mock
}

LedgerMetrics is an autogenerated mock type for the LedgerMetrics type

func NewLedgerMetrics

func NewLedgerMetrics(t mockConstructorTestingTNewLedgerMetrics) *LedgerMetrics

NewLedgerMetrics creates a new instance of LedgerMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*LedgerMetrics) ForestApproxMemorySize

func (_m *LedgerMetrics) ForestApproxMemorySize(bytes uint64)

ForestApproxMemorySize provides a mock function with given fields: bytes

func (*LedgerMetrics) ForestNumberOfTrees

func (_m *LedgerMetrics) ForestNumberOfTrees(number uint64)

ForestNumberOfTrees provides a mock function with given fields: number

func (*LedgerMetrics) LatestTrieMaxDepthTouched

func (_m *LedgerMetrics) LatestTrieMaxDepthTouched(maxDepth uint16)

LatestTrieMaxDepthTouched provides a mock function with given fields: maxDepth

func (*LedgerMetrics) LatestTrieRegCount

func (_m *LedgerMetrics) LatestTrieRegCount(number uint64)

LatestTrieRegCount provides a mock function with given fields: number

func (*LedgerMetrics) LatestTrieRegCountDiff

func (_m *LedgerMetrics) LatestTrieRegCountDiff(number int64)

LatestTrieRegCountDiff provides a mock function with given fields: number

func (*LedgerMetrics) LatestTrieRegSize

func (_m *LedgerMetrics) LatestTrieRegSize(size uint64)

LatestTrieRegSize provides a mock function with given fields: size

func (*LedgerMetrics) LatestTrieRegSizeDiff

func (_m *LedgerMetrics) LatestTrieRegSizeDiff(size int64)

LatestTrieRegSizeDiff provides a mock function with given fields: size

func (*LedgerMetrics) ProofSize

func (_m *LedgerMetrics) ProofSize(bytes uint32)

ProofSize provides a mock function with given fields: bytes

func (*LedgerMetrics) ReadDuration

func (_m *LedgerMetrics) ReadDuration(duration time.Duration)

ReadDuration provides a mock function with given fields: duration

func (*LedgerMetrics) ReadDurationPerItem

func (_m *LedgerMetrics) ReadDurationPerItem(duration time.Duration)

ReadDurationPerItem provides a mock function with given fields: duration

func (*LedgerMetrics) ReadValuesNumber

func (_m *LedgerMetrics) ReadValuesNumber(number uint64)

ReadValuesNumber provides a mock function with given fields: number

func (*LedgerMetrics) ReadValuesSize

func (_m *LedgerMetrics) ReadValuesSize(byte uint64)

ReadValuesSize provides a mock function with given fields: byte

func (*LedgerMetrics) UpdateCount

func (_m *LedgerMetrics) UpdateCount()

UpdateCount provides a mock function with given fields:

func (*LedgerMetrics) UpdateDuration

func (_m *LedgerMetrics) UpdateDuration(duration time.Duration)

UpdateDuration provides a mock function with given fields: duration

func (*LedgerMetrics) UpdateDurationPerItem

func (_m *LedgerMetrics) UpdateDurationPerItem(duration time.Duration)

UpdateDurationPerItem provides a mock function with given fields: duration

func (*LedgerMetrics) UpdateValuesNumber

func (_m *LedgerMetrics) UpdateValuesNumber(number uint64)

UpdateValuesNumber provides a mock function with given fields: number

func (*LedgerMetrics) UpdateValuesSize

func (_m *LedgerMetrics) UpdateValuesSize(byte uint64)

UpdateValuesSize provides a mock function with given fields: byte

type LibP2PConnectionMetrics

type LibP2PConnectionMetrics struct {
	mock.Mock
}

LibP2PConnectionMetrics is an autogenerated mock type for the LibP2PConnectionMetrics type

func NewLibP2PConnectionMetrics

func NewLibP2PConnectionMetrics(t mockConstructorTestingTNewLibP2PConnectionMetrics) *LibP2PConnectionMetrics

NewLibP2PConnectionMetrics creates a new instance of LibP2PConnectionMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*LibP2PConnectionMetrics) InboundConnections

func (_m *LibP2PConnectionMetrics) InboundConnections(connectionCount uint)

InboundConnections provides a mock function with given fields: connectionCount

func (*LibP2PConnectionMetrics) OutboundConnections

func (_m *LibP2PConnectionMetrics) OutboundConnections(connectionCount uint)

OutboundConnections provides a mock function with given fields: connectionCount

type LibP2PMetrics

type LibP2PMetrics struct {
	mock.Mock
}

LibP2PMetrics is an autogenerated mock type for the LibP2PMetrics type

func NewLibP2PMetrics

func NewLibP2PMetrics(t mockConstructorTestingTNewLibP2PMetrics) *LibP2PMetrics

NewLibP2PMetrics creates a new instance of LibP2PMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*LibP2PMetrics) AllowConn

func (_m *LibP2PMetrics) AllowConn(dir network.Direction, usefd bool)

AllowConn provides a mock function with given fields: dir, usefd

func (*LibP2PMetrics) AllowMemory

func (_m *LibP2PMetrics) AllowMemory(size int)

AllowMemory provides a mock function with given fields: size

func (*LibP2PMetrics) AllowPeer

func (_m *LibP2PMetrics) AllowPeer(p peer.ID)

AllowPeer provides a mock function with given fields: p

func (*LibP2PMetrics) AllowProtocol

func (_m *LibP2PMetrics) AllowProtocol(proto protocol.ID)

AllowProtocol provides a mock function with given fields: proto

func (*LibP2PMetrics) AllowService

func (_m *LibP2PMetrics) AllowService(svc string)

AllowService provides a mock function with given fields: svc

func (*LibP2PMetrics) AllowStream

func (_m *LibP2PMetrics) AllowStream(p peer.ID, dir network.Direction)

AllowStream provides a mock function with given fields: p, dir

func (*LibP2PMetrics) BlockConn

func (_m *LibP2PMetrics) BlockConn(dir network.Direction, usefd bool)

BlockConn provides a mock function with given fields: dir, usefd

func (*LibP2PMetrics) BlockMemory

func (_m *LibP2PMetrics) BlockMemory(size int)

BlockMemory provides a mock function with given fields: size

func (*LibP2PMetrics) BlockPeer

func (_m *LibP2PMetrics) BlockPeer(p peer.ID)

BlockPeer provides a mock function with given fields: p

func (*LibP2PMetrics) BlockProtocol

func (_m *LibP2PMetrics) BlockProtocol(proto protocol.ID)

BlockProtocol provides a mock function with given fields: proto

func (*LibP2PMetrics) BlockProtocolPeer

func (_m *LibP2PMetrics) BlockProtocolPeer(proto protocol.ID, p peer.ID)

BlockProtocolPeer provides a mock function with given fields: proto, p

func (*LibP2PMetrics) BlockService

func (_m *LibP2PMetrics) BlockService(svc string)

BlockService provides a mock function with given fields: svc

func (*LibP2PMetrics) BlockServicePeer

func (_m *LibP2PMetrics) BlockServicePeer(svc string, p peer.ID)

BlockServicePeer provides a mock function with given fields: svc, p

func (*LibP2PMetrics) BlockStream

func (_m *LibP2PMetrics) BlockStream(p peer.ID, dir network.Direction)

BlockStream provides a mock function with given fields: p, dir

func (*LibP2PMetrics) DNSLookupDuration

func (_m *LibP2PMetrics) DNSLookupDuration(duration time.Duration)

DNSLookupDuration provides a mock function with given fields: duration

func (*LibP2PMetrics) InboundConnections

func (_m *LibP2PMetrics) InboundConnections(connectionCount uint)

InboundConnections provides a mock function with given fields: connectionCount

func (*LibP2PMetrics) OnDNSCacheHit

func (_m *LibP2PMetrics) OnDNSCacheHit()

OnDNSCacheHit provides a mock function with given fields:

func (*LibP2PMetrics) OnDNSCacheInvalidated

func (_m *LibP2PMetrics) OnDNSCacheInvalidated()

OnDNSCacheInvalidated provides a mock function with given fields:

func (*LibP2PMetrics) OnDNSCacheMiss

func (_m *LibP2PMetrics) OnDNSCacheMiss()

OnDNSCacheMiss provides a mock function with given fields:

func (*LibP2PMetrics) OnDNSLookupRequestDropped

func (_m *LibP2PMetrics) OnDNSLookupRequestDropped()

OnDNSLookupRequestDropped provides a mock function with given fields:

func (*LibP2PMetrics) OnGraftReceived

func (_m *LibP2PMetrics) OnGraftReceived(count int)

OnGraftReceived provides a mock function with given fields: count

func (*LibP2PMetrics) OnIHaveReceived

func (_m *LibP2PMetrics) OnIHaveReceived(count int)

OnIHaveReceived provides a mock function with given fields: count

func (*LibP2PMetrics) OnIWantReceived

func (_m *LibP2PMetrics) OnIWantReceived(count int)

OnIWantReceived provides a mock function with given fields: count

func (*LibP2PMetrics) OnIncomingRpcAcceptedFully

func (_m *LibP2PMetrics) OnIncomingRpcAcceptedFully()

OnIncomingRpcAcceptedFully provides a mock function with given fields:

func (*LibP2PMetrics) OnIncomingRpcAcceptedOnlyForControlMessages

func (_m *LibP2PMetrics) OnIncomingRpcAcceptedOnlyForControlMessages()

OnIncomingRpcAcceptedOnlyForControlMessages provides a mock function with given fields:

func (*LibP2PMetrics) OnIncomingRpcRejected

func (_m *LibP2PMetrics) OnIncomingRpcRejected()

OnIncomingRpcRejected provides a mock function with given fields:

func (*LibP2PMetrics) OnPruneReceived

func (_m *LibP2PMetrics) OnPruneReceived(count int)

OnPruneReceived provides a mock function with given fields: count

func (*LibP2PMetrics) OnPublishedGossipMessagesReceived

func (_m *LibP2PMetrics) OnPublishedGossipMessagesReceived(count int)

OnPublishedGossipMessagesReceived provides a mock function with given fields: count

func (*LibP2PMetrics) OutboundConnections

func (_m *LibP2PMetrics) OutboundConnections(connectionCount uint)

OutboundConnections provides a mock function with given fields: connectionCount

func (*LibP2PMetrics) RoutingTablePeerAdded

func (_m *LibP2PMetrics) RoutingTablePeerAdded()

RoutingTablePeerAdded provides a mock function with given fields:

func (*LibP2PMetrics) RoutingTablePeerRemoved

func (_m *LibP2PMetrics) RoutingTablePeerRemoved()

RoutingTablePeerRemoved provides a mock function with given fields:

type Local

type Local struct {
	mock.Mock
}

Local is an autogenerated mock type for the Local type

func NewLocal

func NewLocal(t mockConstructorTestingTNewLocal) *Local

NewLocal creates a new instance of Local. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Local) Address

func (_m *Local) Address() string

Address provides a mock function with given fields:

func (*Local) NodeID

func (_m *Local) NodeID() flow.Identifier

NodeID provides a mock function with given fields:

func (*Local) NotMeFilter

func (_m *Local) NotMeFilter() flow.IdentityFilter

NotMeFilter provides a mock function with given fields:

func (*Local) Sign

func (_m *Local) Sign(_a0 []byte, _a1 hash.Hasher) (crypto.Signature, error)

Sign provides a mock function with given fields: _a0, _a1

func (*Local) SignFunc

func (_m *Local) SignFunc(_a0 []byte, _a1 hash.Hasher, _a2 func(crypto.PrivateKey, []byte, hash.Hasher) (crypto.Signature, error)) (crypto.Signature, error)

SignFunc provides a mock function with given fields: _a0, _a1, _a2

type MempoolMetrics

type MempoolMetrics struct {
	mock.Mock
}

MempoolMetrics is an autogenerated mock type for the MempoolMetrics type

func NewMempoolMetrics

func NewMempoolMetrics(t mockConstructorTestingTNewMempoolMetrics) *MempoolMetrics

NewMempoolMetrics creates a new instance of MempoolMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MempoolMetrics) MempoolEntries

func (_m *MempoolMetrics) MempoolEntries(resource string, entries uint)

MempoolEntries provides a mock function with given fields: resource, entries

func (*MempoolMetrics) Register

func (_m *MempoolMetrics) Register(resource string, entriesFunc module.EntriesFunc) error

Register provides a mock function with given fields: resource, entriesFunc

type NetworkCoreMetrics

type NetworkCoreMetrics struct {
	mock.Mock
}

NetworkCoreMetrics is an autogenerated mock type for the NetworkCoreMetrics type

func NewNetworkCoreMetrics

func NewNetworkCoreMetrics(t mockConstructorTestingTNewNetworkCoreMetrics) *NetworkCoreMetrics

NewNetworkCoreMetrics creates a new instance of NetworkCoreMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NetworkCoreMetrics) DuplicateInboundMessagesDropped

func (_m *NetworkCoreMetrics) DuplicateInboundMessagesDropped(topic string, protocol string, messageType string)

DuplicateInboundMessagesDropped provides a mock function with given fields: topic, protocol, messageType

func (*NetworkCoreMetrics) InboundMessageReceived

func (_m *NetworkCoreMetrics) InboundMessageReceived(sizeBytes int, topic string, protocol string, messageType string)

InboundMessageReceived provides a mock function with given fields: sizeBytes, topic, protocol, messageType

func (*NetworkCoreMetrics) MessageAdded

func (_m *NetworkCoreMetrics) MessageAdded(priority int)

MessageAdded provides a mock function with given fields: priority

func (*NetworkCoreMetrics) MessageProcessingFinished

func (_m *NetworkCoreMetrics) MessageProcessingFinished(topic string, duration time.Duration)

MessageProcessingFinished provides a mock function with given fields: topic, duration

func (*NetworkCoreMetrics) MessageProcessingStarted

func (_m *NetworkCoreMetrics) MessageProcessingStarted(topic string)

MessageProcessingStarted provides a mock function with given fields: topic

func (*NetworkCoreMetrics) MessageRemoved

func (_m *NetworkCoreMetrics) MessageRemoved(priority int)

MessageRemoved provides a mock function with given fields: priority

func (*NetworkCoreMetrics) OutboundMessageSent

func (_m *NetworkCoreMetrics) OutboundMessageSent(sizeBytes int, topic string, protocol string, messageType string)

OutboundMessageSent provides a mock function with given fields: sizeBytes, topic, protocol, messageType

func (*NetworkCoreMetrics) QueueDuration

func (_m *NetworkCoreMetrics) QueueDuration(duration time.Duration, priority int)

QueueDuration provides a mock function with given fields: duration, priority

func (*NetworkCoreMetrics) UnicastMessageSendingCompleted

func (_m *NetworkCoreMetrics) UnicastMessageSendingCompleted(topic string)

UnicastMessageSendingCompleted provides a mock function with given fields: topic

func (*NetworkCoreMetrics) UnicastMessageSendingStarted

func (_m *NetworkCoreMetrics) UnicastMessageSendingStarted(topic string)

UnicastMessageSendingStarted provides a mock function with given fields: topic

type NetworkInboundQueueMetrics

type NetworkInboundQueueMetrics struct {
	mock.Mock
}

NetworkInboundQueueMetrics is an autogenerated mock type for the NetworkInboundQueueMetrics type

func NewNetworkInboundQueueMetrics

func NewNetworkInboundQueueMetrics(t mockConstructorTestingTNewNetworkInboundQueueMetrics) *NetworkInboundQueueMetrics

NewNetworkInboundQueueMetrics creates a new instance of NetworkInboundQueueMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NetworkInboundQueueMetrics) MessageAdded

func (_m *NetworkInboundQueueMetrics) MessageAdded(priority int)

MessageAdded provides a mock function with given fields: priority

func (*NetworkInboundQueueMetrics) MessageRemoved

func (_m *NetworkInboundQueueMetrics) MessageRemoved(priority int)

MessageRemoved provides a mock function with given fields: priority

func (*NetworkInboundQueueMetrics) QueueDuration

func (_m *NetworkInboundQueueMetrics) QueueDuration(duration time.Duration, priority int)

QueueDuration provides a mock function with given fields: duration, priority

type NetworkMetrics

type NetworkMetrics struct {
	mock.Mock
}

NetworkMetrics is an autogenerated mock type for the NetworkMetrics type

func NewNetworkMetrics

func NewNetworkMetrics(t mockConstructorTestingTNewNetworkMetrics) *NetworkMetrics

NewNetworkMetrics creates a new instance of NetworkMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NetworkMetrics) AllowConn

func (_m *NetworkMetrics) AllowConn(dir network.Direction, usefd bool)

AllowConn provides a mock function with given fields: dir, usefd

func (*NetworkMetrics) AllowMemory

func (_m *NetworkMetrics) AllowMemory(size int)

AllowMemory provides a mock function with given fields: size

func (*NetworkMetrics) AllowPeer

func (_m *NetworkMetrics) AllowPeer(p peer.ID)

AllowPeer provides a mock function with given fields: p

func (*NetworkMetrics) AllowProtocol

func (_m *NetworkMetrics) AllowProtocol(proto protocol.ID)

AllowProtocol provides a mock function with given fields: proto

func (*NetworkMetrics) AllowService

func (_m *NetworkMetrics) AllowService(svc string)

AllowService provides a mock function with given fields: svc

func (*NetworkMetrics) AllowStream

func (_m *NetworkMetrics) AllowStream(p peer.ID, dir network.Direction)

AllowStream provides a mock function with given fields: p, dir

func (*NetworkMetrics) BlockConn

func (_m *NetworkMetrics) BlockConn(dir network.Direction, usefd bool)

BlockConn provides a mock function with given fields: dir, usefd

func (*NetworkMetrics) BlockMemory

func (_m *NetworkMetrics) BlockMemory(size int)

BlockMemory provides a mock function with given fields: size

func (*NetworkMetrics) BlockPeer

func (_m *NetworkMetrics) BlockPeer(p peer.ID)

BlockPeer provides a mock function with given fields: p

func (*NetworkMetrics) BlockProtocol

func (_m *NetworkMetrics) BlockProtocol(proto protocol.ID)

BlockProtocol provides a mock function with given fields: proto

func (*NetworkMetrics) BlockProtocolPeer

func (_m *NetworkMetrics) BlockProtocolPeer(proto protocol.ID, p peer.ID)

BlockProtocolPeer provides a mock function with given fields: proto, p

func (*NetworkMetrics) BlockService

func (_m *NetworkMetrics) BlockService(svc string)

BlockService provides a mock function with given fields: svc

func (*NetworkMetrics) BlockServicePeer

func (_m *NetworkMetrics) BlockServicePeer(svc string, p peer.ID)

BlockServicePeer provides a mock function with given fields: svc, p

func (*NetworkMetrics) BlockStream

func (_m *NetworkMetrics) BlockStream(p peer.ID, dir network.Direction)

BlockStream provides a mock function with given fields: p, dir

func (*NetworkMetrics) DNSLookupDuration

func (_m *NetworkMetrics) DNSLookupDuration(duration time.Duration)

DNSLookupDuration provides a mock function with given fields: duration

func (*NetworkMetrics) DuplicateInboundMessagesDropped

func (_m *NetworkMetrics) DuplicateInboundMessagesDropped(topic string, _a1 string, messageType string)

DuplicateInboundMessagesDropped provides a mock function with given fields: topic, _a1, messageType

func (*NetworkMetrics) InboundConnections

func (_m *NetworkMetrics) InboundConnections(connectionCount uint)

InboundConnections provides a mock function with given fields: connectionCount

func (*NetworkMetrics) InboundMessageReceived

func (_m *NetworkMetrics) InboundMessageReceived(sizeBytes int, topic string, _a2 string, messageType string)

InboundMessageReceived provides a mock function with given fields: sizeBytes, topic, _a2, messageType

func (*NetworkMetrics) MessageAdded

func (_m *NetworkMetrics) MessageAdded(priority int)

MessageAdded provides a mock function with given fields: priority

func (*NetworkMetrics) MessageProcessingFinished

func (_m *NetworkMetrics) MessageProcessingFinished(topic string, duration time.Duration)

MessageProcessingFinished provides a mock function with given fields: topic, duration

func (*NetworkMetrics) MessageProcessingStarted

func (_m *NetworkMetrics) MessageProcessingStarted(topic string)

MessageProcessingStarted provides a mock function with given fields: topic

func (*NetworkMetrics) MessageRemoved

func (_m *NetworkMetrics) MessageRemoved(priority int)

MessageRemoved provides a mock function with given fields: priority

func (*NetworkMetrics) OnDNSCacheHit

func (_m *NetworkMetrics) OnDNSCacheHit()

OnDNSCacheHit provides a mock function with given fields:

func (*NetworkMetrics) OnDNSCacheInvalidated

func (_m *NetworkMetrics) OnDNSCacheInvalidated()

OnDNSCacheInvalidated provides a mock function with given fields:

func (*NetworkMetrics) OnDNSCacheMiss

func (_m *NetworkMetrics) OnDNSCacheMiss()

OnDNSCacheMiss provides a mock function with given fields:

func (*NetworkMetrics) OnDNSLookupRequestDropped

func (_m *NetworkMetrics) OnDNSLookupRequestDropped()

OnDNSLookupRequestDropped provides a mock function with given fields:

func (*NetworkMetrics) OnGraftReceived

func (_m *NetworkMetrics) OnGraftReceived(count int)

OnGraftReceived provides a mock function with given fields: count

func (*NetworkMetrics) OnIHaveReceived

func (_m *NetworkMetrics) OnIHaveReceived(count int)

OnIHaveReceived provides a mock function with given fields: count

func (*NetworkMetrics) OnIWantReceived

func (_m *NetworkMetrics) OnIWantReceived(count int)

OnIWantReceived provides a mock function with given fields: count

func (*NetworkMetrics) OnIncomingRpcAcceptedFully

func (_m *NetworkMetrics) OnIncomingRpcAcceptedFully()

OnIncomingRpcAcceptedFully provides a mock function with given fields:

func (*NetworkMetrics) OnIncomingRpcAcceptedOnlyForControlMessages

func (_m *NetworkMetrics) OnIncomingRpcAcceptedOnlyForControlMessages()

OnIncomingRpcAcceptedOnlyForControlMessages provides a mock function with given fields:

func (*NetworkMetrics) OnIncomingRpcRejected

func (_m *NetworkMetrics) OnIncomingRpcRejected()

OnIncomingRpcRejected provides a mock function with given fields:

func (*NetworkMetrics) OnPruneReceived

func (_m *NetworkMetrics) OnPruneReceived(count int)

OnPruneReceived provides a mock function with given fields: count

func (*NetworkMetrics) OnPublishedGossipMessagesReceived

func (_m *NetworkMetrics) OnPublishedGossipMessagesReceived(count int)

OnPublishedGossipMessagesReceived provides a mock function with given fields: count

func (*NetworkMetrics) OnRateLimitedUnicastMessage

func (_m *NetworkMetrics) OnRateLimitedUnicastMessage(role string, msgType string, topic string, reason string)

OnRateLimitedUnicastMessage provides a mock function with given fields: role, msgType, topic, reason

func (*NetworkMetrics) OnUnauthorizedMessage

func (_m *NetworkMetrics) OnUnauthorizedMessage(role string, msgType string, topic string, offense string)

OnUnauthorizedMessage provides a mock function with given fields: role, msgType, topic, offense

func (*NetworkMetrics) OutboundConnections

func (_m *NetworkMetrics) OutboundConnections(connectionCount uint)

OutboundConnections provides a mock function with given fields: connectionCount

func (*NetworkMetrics) OutboundMessageSent

func (_m *NetworkMetrics) OutboundMessageSent(sizeBytes int, topic string, _a2 string, messageType string)

OutboundMessageSent provides a mock function with given fields: sizeBytes, topic, _a2, messageType

func (*NetworkMetrics) QueueDuration

func (_m *NetworkMetrics) QueueDuration(duration time.Duration, priority int)

QueueDuration provides a mock function with given fields: duration, priority

func (*NetworkMetrics) RoutingTablePeerAdded

func (_m *NetworkMetrics) RoutingTablePeerAdded()

RoutingTablePeerAdded provides a mock function with given fields:

func (*NetworkMetrics) RoutingTablePeerRemoved

func (_m *NetworkMetrics) RoutingTablePeerRemoved()

RoutingTablePeerRemoved provides a mock function with given fields:

func (*NetworkMetrics) UnicastMessageSendingCompleted

func (_m *NetworkMetrics) UnicastMessageSendingCompleted(topic string)

UnicastMessageSendingCompleted provides a mock function with given fields: topic

func (*NetworkMetrics) UnicastMessageSendingStarted

func (_m *NetworkMetrics) UnicastMessageSendingStarted(topic string)

UnicastMessageSendingStarted provides a mock function with given fields: topic

type NetworkSecurityMetrics

type NetworkSecurityMetrics struct {
	mock.Mock
}

NetworkSecurityMetrics is an autogenerated mock type for the NetworkSecurityMetrics type

func NewNetworkSecurityMetrics

func NewNetworkSecurityMetrics(t mockConstructorTestingTNewNetworkSecurityMetrics) *NetworkSecurityMetrics

NewNetworkSecurityMetrics creates a new instance of NetworkSecurityMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NetworkSecurityMetrics) OnRateLimitedUnicastMessage

func (_m *NetworkSecurityMetrics) OnRateLimitedUnicastMessage(role string, msgType string, topic string, reason string)

OnRateLimitedUnicastMessage provides a mock function with given fields: role, msgType, topic, reason

func (*NetworkSecurityMetrics) OnUnauthorizedMessage

func (_m *NetworkSecurityMetrics) OnUnauthorizedMessage(role string, msgType string, topic string, offense string)

OnUnauthorizedMessage provides a mock function with given fields: role, msgType, topic, offense

type NewJobListener

type NewJobListener struct {
	mock.Mock
}

NewJobListener is an autogenerated mock type for the NewJobListener type

func NewNewJobListener

func NewNewJobListener(t mockConstructorTestingTNewNewJobListener) *NewJobListener

NewNewJobListener creates a new instance of NewJobListener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NewJobListener) Check

func (_m *NewJobListener) Check()

Check provides a mock function with given fields:

type PendingBlockBuffer

type PendingBlockBuffer struct {
	mock.Mock
}

PendingBlockBuffer is an autogenerated mock type for the PendingBlockBuffer type

func NewPendingBlockBuffer

func NewPendingBlockBuffer(t mockConstructorTestingTNewPendingBlockBuffer) *PendingBlockBuffer

NewPendingBlockBuffer creates a new instance of PendingBlockBuffer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PendingBlockBuffer) Add

func (_m *PendingBlockBuffer) Add(originID flow.Identifier, block *flow.Block) bool

Add provides a mock function with given fields: originID, block

func (*PendingBlockBuffer) ByID

ByID provides a mock function with given fields: blockID

func (*PendingBlockBuffer) ByParentID

func (_m *PendingBlockBuffer) ByParentID(parentID flow.Identifier) ([]flow.Slashable[flow.Block], bool)

ByParentID provides a mock function with given fields: parentID

func (*PendingBlockBuffer) DropForParent

func (_m *PendingBlockBuffer) DropForParent(parentID flow.Identifier)

DropForParent provides a mock function with given fields: parentID

func (*PendingBlockBuffer) PruneByView

func (_m *PendingBlockBuffer) PruneByView(view uint64)

PruneByView provides a mock function with given fields: view

func (*PendingBlockBuffer) Size

func (_m *PendingBlockBuffer) Size() uint

Size provides a mock function with given fields:

type PendingClusterBlockBuffer

type PendingClusterBlockBuffer struct {
	mock.Mock
}

PendingClusterBlockBuffer is an autogenerated mock type for the PendingClusterBlockBuffer type

func NewPendingClusterBlockBuffer

func NewPendingClusterBlockBuffer(t mockConstructorTestingTNewPendingClusterBlockBuffer) *PendingClusterBlockBuffer

NewPendingClusterBlockBuffer creates a new instance of PendingClusterBlockBuffer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PendingClusterBlockBuffer) Add

func (_m *PendingClusterBlockBuffer) Add(originID flow.Identifier, block *cluster.Block) bool

Add provides a mock function with given fields: originID, block

func (*PendingClusterBlockBuffer) ByID

ByID provides a mock function with given fields: blockID

func (*PendingClusterBlockBuffer) ByParentID

func (_m *PendingClusterBlockBuffer) ByParentID(parentID flow.Identifier) ([]flow.Slashable[cluster.Block], bool)

ByParentID provides a mock function with given fields: parentID

func (*PendingClusterBlockBuffer) DropForParent

func (_m *PendingClusterBlockBuffer) DropForParent(parentID flow.Identifier)

DropForParent provides a mock function with given fields: parentID

func (*PendingClusterBlockBuffer) PruneByView

func (_m *PendingClusterBlockBuffer) PruneByView(view uint64)

PruneByView provides a mock function with given fields: view

func (*PendingClusterBlockBuffer) Size

func (_m *PendingClusterBlockBuffer) Size() uint

Size provides a mock function with given fields:

type PingMetrics

type PingMetrics struct {
	mock.Mock
}

PingMetrics is an autogenerated mock type for the PingMetrics type

func NewPingMetrics

func NewPingMetrics(t mockConstructorTestingTNewPingMetrics) *PingMetrics

NewPingMetrics creates a new instance of PingMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PingMetrics) NodeInfo

func (_m *PingMetrics) NodeInfo(node *flow.Identity, nodeInfo string, version string, sealedHeight uint64, hotstuffCurView uint64)

NodeInfo provides a mock function with given fields: node, nodeInfo, version, sealedHeight, hotstuffCurView

func (*PingMetrics) NodeReachable

func (_m *PingMetrics) NodeReachable(node *flow.Identity, nodeInfo string, rtt time.Duration)

NodeReachable provides a mock function with given fields: node, nodeInfo, rtt

type ProcessingNotifier

type ProcessingNotifier struct {
	mock.Mock
}

ProcessingNotifier is an autogenerated mock type for the ProcessingNotifier type

func NewProcessingNotifier

func NewProcessingNotifier(t mockConstructorTestingTNewProcessingNotifier) *ProcessingNotifier

NewProcessingNotifier creates a new instance of ProcessingNotifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProcessingNotifier) Notify

func (_m *ProcessingNotifier) Notify(entityID flow.Identifier)

Notify provides a mock function with given fields: entityID

type ProviderMetrics

type ProviderMetrics struct {
	mock.Mock
}

ProviderMetrics is an autogenerated mock type for the ProviderMetrics type

func NewProviderMetrics

func NewProviderMetrics(t mockConstructorTestingTNewProviderMetrics) *ProviderMetrics

NewProviderMetrics creates a new instance of ProviderMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProviderMetrics) ChunkDataPackRequestProcessed

func (_m *ProviderMetrics) ChunkDataPackRequestProcessed()

ChunkDataPackRequestProcessed provides a mock function with given fields:

type PublicKey

type PublicKey struct {
	mock.Mock
}

PublicKey is an autogenerated mock type for the PublicKey type

func NewPublicKey

func NewPublicKey(t mockConstructorTestingTNewPublicKey) *PublicKey

NewPublicKey creates a new instance of PublicKey. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PublicKey) Algorithm

func (_m *PublicKey) Algorithm() crypto.SigningAlgorithm

Algorithm provides a mock function with given fields:

func (*PublicKey) Encode

func (_m *PublicKey) Encode() []byte

Encode provides a mock function with given fields:

func (*PublicKey) EncodeCompressed

func (_m *PublicKey) EncodeCompressed() []byte

EncodeCompressed provides a mock function with given fields:

func (*PublicKey) Equals

func (_m *PublicKey) Equals(_a0 crypto.PublicKey) bool

Equals provides a mock function with given fields: _a0

func (*PublicKey) Size

func (_m *PublicKey) Size() int

Size provides a mock function with given fields:

func (*PublicKey) String

func (_m *PublicKey) String() string

String provides a mock function with given fields:

func (*PublicKey) Verify

func (_m *PublicKey) Verify(_a0 crypto.Signature, _a1 []byte, _a2 hash.Hasher) (bool, error)

Verify provides a mock function with given fields: _a0, _a1, _a2

type QCContractClient

type QCContractClient struct {
	mock.Mock
}

QCContractClient is an autogenerated mock type for the QCContractClient type

func NewQCContractClient

func NewQCContractClient(t mockConstructorTestingTNewQCContractClient) *QCContractClient

NewQCContractClient creates a new instance of QCContractClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*QCContractClient) SubmitVote

func (_m *QCContractClient) SubmitVote(ctx context.Context, vote *model.Vote) error

SubmitVote provides a mock function with given fields: ctx, vote

func (*QCContractClient) Voted

func (_m *QCContractClient) Voted(ctx context.Context) (bool, error)

Voted provides a mock function with given fields: ctx

type RandomBeaconKeyStore

type RandomBeaconKeyStore struct {
	mock.Mock
}

RandomBeaconKeyStore is an autogenerated mock type for the RandomBeaconKeyStore type

func NewRandomBeaconKeyStore

func NewRandomBeaconKeyStore(t mockConstructorTestingTNewRandomBeaconKeyStore) *RandomBeaconKeyStore

NewRandomBeaconKeyStore creates a new instance of RandomBeaconKeyStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RandomBeaconKeyStore) ByView

func (_m *RandomBeaconKeyStore) ByView(view uint64) (crypto.PrivateKey, error)

ByView provides a mock function with given fields: view

type RateLimitedBlockstoreMetrics

type RateLimitedBlockstoreMetrics struct {
	mock.Mock
}

RateLimitedBlockstoreMetrics is an autogenerated mock type for the RateLimitedBlockstoreMetrics type

func NewRateLimitedBlockstoreMetrics

func NewRateLimitedBlockstoreMetrics(t mockConstructorTestingTNewRateLimitedBlockstoreMetrics) *RateLimitedBlockstoreMetrics

NewRateLimitedBlockstoreMetrics creates a new instance of RateLimitedBlockstoreMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RateLimitedBlockstoreMetrics) BytesRead

func (_m *RateLimitedBlockstoreMetrics) BytesRead(_a0 int)

BytesRead provides a mock function with given fields: _a0

type ReadyDoneAware

type ReadyDoneAware struct {
	mock.Mock
}

ReadyDoneAware is an autogenerated mock type for the ReadyDoneAware type

func NewReadyDoneAware

func NewReadyDoneAware(t mockConstructorTestingTNewReadyDoneAware) *ReadyDoneAware

NewReadyDoneAware creates a new instance of ReadyDoneAware. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ReadyDoneAware) Done

func (_m *ReadyDoneAware) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*ReadyDoneAware) Ready

func (_m *ReadyDoneAware) Ready() <-chan struct{}

Ready provides a mock function with given fields:

type ReceiptValidator

type ReceiptValidator struct {
	mock.Mock
}

ReceiptValidator is an autogenerated mock type for the ReceiptValidator type

func NewReceiptValidator

func NewReceiptValidator(t mockConstructorTestingTNewReceiptValidator) *ReceiptValidator

NewReceiptValidator creates a new instance of ReceiptValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ReceiptValidator) Validate

func (_m *ReceiptValidator) Validate(receipts *flow.ExecutionReceipt) error

Validate provides a mock function with given fields: receipts

func (*ReceiptValidator) ValidatePayload

func (_m *ReceiptValidator) ValidatePayload(candidate *flow.Block) error

ValidatePayload provides a mock function with given fields: candidate

type Requester

type Requester struct {
	mock.Mock
}

Requester is an autogenerated mock type for the Requester type

func NewRequester

func NewRequester(t mockConstructorTestingTNewRequester) *Requester

NewRequester creates a new instance of Requester. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Requester) EntityByID

func (_m *Requester) EntityByID(entityID flow.Identifier, selector flow.IdentityFilter)

EntityByID provides a mock function with given fields: entityID, selector

func (*Requester) Force

func (_m *Requester) Force()

Force provides a mock function with given fields:

func (*Requester) Query

func (_m *Requester) Query(key flow.Identifier, selector flow.IdentityFilter)

Query provides a mock function with given fields: key, selector

type ResolverMetrics

type ResolverMetrics struct {
	mock.Mock
}

ResolverMetrics is an autogenerated mock type for the ResolverMetrics type

func NewResolverMetrics

func NewResolverMetrics(t mockConstructorTestingTNewResolverMetrics) *ResolverMetrics

NewResolverMetrics creates a new instance of ResolverMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ResolverMetrics) DNSLookupDuration

func (_m *ResolverMetrics) DNSLookupDuration(duration time.Duration)

DNSLookupDuration provides a mock function with given fields: duration

func (*ResolverMetrics) OnDNSCacheHit

func (_m *ResolverMetrics) OnDNSCacheHit()

OnDNSCacheHit provides a mock function with given fields:

func (*ResolverMetrics) OnDNSCacheInvalidated

func (_m *ResolverMetrics) OnDNSCacheInvalidated()

OnDNSCacheInvalidated provides a mock function with given fields:

func (*ResolverMetrics) OnDNSCacheMiss

func (_m *ResolverMetrics) OnDNSCacheMiss()

OnDNSCacheMiss provides a mock function with given fields:

func (*ResolverMetrics) OnDNSLookupRequestDropped

func (_m *ResolverMetrics) OnDNSLookupRequestDropped()

OnDNSLookupRequestDropped provides a mock function with given fields:

type RuntimeMetrics

type RuntimeMetrics struct {
	mock.Mock
}

RuntimeMetrics is an autogenerated mock type for the RuntimeMetrics type

func NewRuntimeMetrics

func NewRuntimeMetrics(t mockConstructorTestingTNewRuntimeMetrics) *RuntimeMetrics

NewRuntimeMetrics creates a new instance of RuntimeMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RuntimeMetrics) RuntimeSetNumberOfAccounts

func (_m *RuntimeMetrics) RuntimeSetNumberOfAccounts(count uint64)

RuntimeSetNumberOfAccounts provides a mock function with given fields: count

func (*RuntimeMetrics) RuntimeTransactionChecked

func (_m *RuntimeMetrics) RuntimeTransactionChecked(dur time.Duration)

RuntimeTransactionChecked provides a mock function with given fields: dur

func (*RuntimeMetrics) RuntimeTransactionInterpreted

func (_m *RuntimeMetrics) RuntimeTransactionInterpreted(dur time.Duration)

RuntimeTransactionInterpreted provides a mock function with given fields: dur

func (*RuntimeMetrics) RuntimeTransactionParsed

func (_m *RuntimeMetrics) RuntimeTransactionParsed(dur time.Duration)

RuntimeTransactionParsed provides a mock function with given fields: dur

type SDKClientWrapper

type SDKClientWrapper struct {
	mock.Mock
}

SDKClientWrapper is an autogenerated mock type for the SDKClientWrapper type

func NewSDKClientWrapper

func NewSDKClientWrapper(t mockConstructorTestingTNewSDKClientWrapper) *SDKClientWrapper

NewSDKClientWrapper creates a new instance of SDKClientWrapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SDKClientWrapper) ExecuteScriptAtBlockID

func (_m *SDKClientWrapper) ExecuteScriptAtBlockID(_a0 context.Context, _a1 flow.Identifier, _a2 []byte, _a3 []cadence.Value) (cadence.Value, error)

ExecuteScriptAtBlockID provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*SDKClientWrapper) ExecuteScriptAtLatestBlock

func (_m *SDKClientWrapper) ExecuteScriptAtLatestBlock(_a0 context.Context, _a1 []byte, _a2 []cadence.Value) (cadence.Value, error)

ExecuteScriptAtLatestBlock provides a mock function with given fields: _a0, _a1, _a2

func (*SDKClientWrapper) GetAccount

func (_m *SDKClientWrapper) GetAccount(_a0 context.Context, _a1 flow.Address) (*flow.Account, error)

GetAccount provides a mock function with given fields: _a0, _a1

func (*SDKClientWrapper) GetAccountAtLatestBlock

func (_m *SDKClientWrapper) GetAccountAtLatestBlock(_a0 context.Context, _a1 flow.Address) (*flow.Account, error)

GetAccountAtLatestBlock provides a mock function with given fields: _a0, _a1

func (*SDKClientWrapper) GetLatestBlock

func (_m *SDKClientWrapper) GetLatestBlock(_a0 context.Context, _a1 bool) (*flow.Block, error)

GetLatestBlock provides a mock function with given fields: _a0, _a1

func (*SDKClientWrapper) GetTransactionResult

func (_m *SDKClientWrapper) GetTransactionResult(_a0 context.Context, _a1 flow.Identifier) (*flow.TransactionResult, error)

GetTransactionResult provides a mock function with given fields: _a0, _a1

func (*SDKClientWrapper) SendTransaction

func (_m *SDKClientWrapper) SendTransaction(_a0 context.Context, _a1 flow.Transaction) error

SendTransaction provides a mock function with given fields: _a0, _a1

type SealValidator

type SealValidator struct {
	mock.Mock
}

SealValidator is an autogenerated mock type for the SealValidator type

func NewSealValidator

func NewSealValidator(t mockConstructorTestingTNewSealValidator) *SealValidator

NewSealValidator creates a new instance of SealValidator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SealValidator) Validate

func (_m *SealValidator) Validate(candidate *flow.Block) (*flow.Seal, error)

Validate provides a mock function with given fields: candidate

type SealingConfigsGetter

type SealingConfigsGetter struct {
	mock.Mock
}

SealingConfigsGetter is an autogenerated mock type for the SealingConfigsGetter type

func NewSealingConfigsGetter

func NewSealingConfigsGetter(t mockConstructorTestingTNewSealingConfigsGetter) *SealingConfigsGetter

NewSealingConfigsGetter creates a new instance of SealingConfigsGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SealingConfigsGetter) ApprovalRequestsThresholdConst

func (_m *SealingConfigsGetter) ApprovalRequestsThresholdConst() uint64

ApprovalRequestsThresholdConst provides a mock function with given fields:

func (*SealingConfigsGetter) ChunkAlphaConst

func (_m *SealingConfigsGetter) ChunkAlphaConst() uint

ChunkAlphaConst provides a mock function with given fields:

func (*SealingConfigsGetter) EmergencySealingActiveConst

func (_m *SealingConfigsGetter) EmergencySealingActiveConst() bool

EmergencySealingActiveConst provides a mock function with given fields:

func (*SealingConfigsGetter) RequireApprovalsForSealConstructionDynamicValue

func (_m *SealingConfigsGetter) RequireApprovalsForSealConstructionDynamicValue() uint

RequireApprovalsForSealConstructionDynamicValue provides a mock function with given fields:

func (*SealingConfigsGetter) RequireApprovalsForSealVerificationConst

func (_m *SealingConfigsGetter) RequireApprovalsForSealVerificationConst() uint

RequireApprovalsForSealVerificationConst provides a mock function with given fields:

type SealingConfigsSetter

type SealingConfigsSetter struct {
	mock.Mock
}

SealingConfigsSetter is an autogenerated mock type for the SealingConfigsSetter type

func NewSealingConfigsSetter

func NewSealingConfigsSetter(t mockConstructorTestingTNewSealingConfigsSetter) *SealingConfigsSetter

NewSealingConfigsSetter creates a new instance of SealingConfigsSetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SealingConfigsSetter) ApprovalRequestsThresholdConst

func (_m *SealingConfigsSetter) ApprovalRequestsThresholdConst() uint64

ApprovalRequestsThresholdConst provides a mock function with given fields:

func (*SealingConfigsSetter) ChunkAlphaConst

func (_m *SealingConfigsSetter) ChunkAlphaConst() uint

ChunkAlphaConst provides a mock function with given fields:

func (*SealingConfigsSetter) EmergencySealingActiveConst

func (_m *SealingConfigsSetter) EmergencySealingActiveConst() bool

EmergencySealingActiveConst provides a mock function with given fields:

func (*SealingConfigsSetter) RequireApprovalsForSealConstructionDynamicValue

func (_m *SealingConfigsSetter) RequireApprovalsForSealConstructionDynamicValue() uint

RequireApprovalsForSealConstructionDynamicValue provides a mock function with given fields:

func (*SealingConfigsSetter) RequireApprovalsForSealVerificationConst

func (_m *SealingConfigsSetter) RequireApprovalsForSealVerificationConst() uint

RequireApprovalsForSealVerificationConst provides a mock function with given fields:

func (*SealingConfigsSetter) SetRequiredApprovalsForSealingConstruction

func (_m *SealingConfigsSetter) SetRequiredApprovalsForSealingConstruction(newVal uint) error

SetRequiredApprovalsForSealingConstruction provides a mock function with given fields: newVal

type Startable

type Startable struct {
	mock.Mock
}

Startable is an autogenerated mock type for the Startable type

func NewStartable

func NewStartable(t mockConstructorTestingTNewStartable) *Startable

NewStartable creates a new instance of Startable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Startable) Start

func (_m *Startable) Start(_a0 irrecoverable.SignalerContext)

Start provides a mock function with given fields: _a0

type SyncCore

type SyncCore struct {
	mock.Mock
}

SyncCore is an autogenerated mock type for the SyncCore type

func NewSyncCore

func NewSyncCore(t mockConstructorTestingTNewSyncCore) *SyncCore

NewSyncCore creates a new instance of SyncCore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SyncCore) BatchRequested

func (_m *SyncCore) BatchRequested(batch chainsync.Batch)

BatchRequested provides a mock function with given fields: batch

func (*SyncCore) HandleBlock

func (_m *SyncCore) HandleBlock(header *flow.Header) bool

HandleBlock provides a mock function with given fields: header

func (*SyncCore) HandleHeight

func (_m *SyncCore) HandleHeight(final *flow.Header, height uint64)

HandleHeight provides a mock function with given fields: final, height

func (*SyncCore) RangeRequested

func (_m *SyncCore) RangeRequested(ran chainsync.Range)

RangeRequested provides a mock function with given fields: ran

func (*SyncCore) ScanPending

func (_m *SyncCore) ScanPending(final *flow.Header) ([]chainsync.Range, []chainsync.Batch)

ScanPending provides a mock function with given fields: final

func (*SyncCore) WithinTolerance

func (_m *SyncCore) WithinTolerance(final *flow.Header, height uint64) bool

WithinTolerance provides a mock function with given fields: final, height

type Tracer

type Tracer struct {
	mock.Mock
}

Tracer is an autogenerated mock type for the Tracer type

func NewTracer

func NewTracer(t mockConstructorTestingTNewTracer) *Tracer

NewTracer creates a new instance of Tracer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Tracer) Done

func (_m *Tracer) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*Tracer) Ready

func (_m *Tracer) Ready() <-chan struct{}

Ready provides a mock function with given fields:

func (*Tracer) StartBlockSpan

func (_m *Tracer) StartBlockSpan(ctx context.Context, blockID flow.Identifier, spanName trace.SpanName, opts ...oteltrace.SpanStartOption) (oteltrace.Span, context.Context)

StartBlockSpan provides a mock function with given fields: ctx, blockID, spanName, opts

func (*Tracer) StartCollectionSpan

func (_m *Tracer) StartCollectionSpan(ctx context.Context, collectionID flow.Identifier, spanName trace.SpanName, opts ...oteltrace.SpanStartOption) (oteltrace.Span, context.Context)

StartCollectionSpan provides a mock function with given fields: ctx, collectionID, spanName, opts

func (*Tracer) StartSpanFromContext

func (_m *Tracer) StartSpanFromContext(ctx context.Context, operationName trace.SpanName, opts ...oteltrace.SpanStartOption) (oteltrace.Span, context.Context)

StartSpanFromContext provides a mock function with given fields: ctx, operationName, opts

func (*Tracer) StartSpanFromParent

func (_m *Tracer) StartSpanFromParent(parentSpan oteltrace.Span, operationName trace.SpanName, opts ...oteltrace.SpanStartOption) oteltrace.Span

StartSpanFromParent provides a mock function with given fields: parentSpan, operationName, opts

func (*Tracer) StartTransactionSpan

func (_m *Tracer) StartTransactionSpan(ctx context.Context, transactionID flow.Identifier, spanName trace.SpanName, opts ...oteltrace.SpanStartOption) (oteltrace.Span, context.Context)

StartTransactionSpan provides a mock function with given fields: ctx, transactionID, spanName, opts

func (*Tracer) WithSpanFromContext

func (_m *Tracer) WithSpanFromContext(ctx context.Context, operationName trace.SpanName, f func(), opts ...oteltrace.SpanStartOption)

WithSpanFromContext provides a mock function with given fields: ctx, operationName, f, opts

type TransactionMetrics

type TransactionMetrics struct {
	mock.Mock
}

TransactionMetrics is an autogenerated mock type for the TransactionMetrics type

func NewTransactionMetrics

func NewTransactionMetrics(t mockConstructorTestingTNewTransactionMetrics) *TransactionMetrics

NewTransactionMetrics creates a new instance of TransactionMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TransactionMetrics) ScriptExecuted

func (_m *TransactionMetrics) ScriptExecuted(dur time.Duration, size int)

ScriptExecuted provides a mock function with given fields: dur, size

func (*TransactionMetrics) TransactionExecuted

func (_m *TransactionMetrics) TransactionExecuted(txID flow.Identifier, when time.Time)

TransactionExecuted provides a mock function with given fields: txID, when

func (*TransactionMetrics) TransactionExpired

func (_m *TransactionMetrics) TransactionExpired(txID flow.Identifier)

TransactionExpired provides a mock function with given fields: txID

func (*TransactionMetrics) TransactionFinalized

func (_m *TransactionMetrics) TransactionFinalized(txID flow.Identifier, when time.Time)

TransactionFinalized provides a mock function with given fields: txID, when

func (*TransactionMetrics) TransactionReceived

func (_m *TransactionMetrics) TransactionReceived(txID flow.Identifier, when time.Time)

TransactionReceived provides a mock function with given fields: txID, when

func (*TransactionMetrics) TransactionResultFetched

func (_m *TransactionMetrics) TransactionResultFetched(dur time.Duration, size int)

TransactionResultFetched provides a mock function with given fields: dur, size

func (*TransactionMetrics) TransactionSubmissionFailed

func (_m *TransactionMetrics) TransactionSubmissionFailed()

TransactionSubmissionFailed provides a mock function with given fields:

func (*TransactionMetrics) UpdateExecutionReceiptMaxHeight

func (_m *TransactionMetrics) UpdateExecutionReceiptMaxHeight(height uint64)

UpdateExecutionReceiptMaxHeight provides a mock function with given fields: height

type VerificationMetrics

type VerificationMetrics struct {
	mock.Mock
}

VerificationMetrics is an autogenerated mock type for the VerificationMetrics type

func NewVerificationMetrics

func NewVerificationMetrics(t mockConstructorTestingTNewVerificationMetrics) *VerificationMetrics

NewVerificationMetrics creates a new instance of VerificationMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*VerificationMetrics) OnAssignedChunkProcessedAtAssigner

func (_m *VerificationMetrics) OnAssignedChunkProcessedAtAssigner()

OnAssignedChunkProcessedAtAssigner provides a mock function with given fields:

func (*VerificationMetrics) OnAssignedChunkReceivedAtFetcher

func (_m *VerificationMetrics) OnAssignedChunkReceivedAtFetcher()

OnAssignedChunkReceivedAtFetcher provides a mock function with given fields:

func (*VerificationMetrics) OnBlockConsumerJobDone

func (_m *VerificationMetrics) OnBlockConsumerJobDone(_a0 uint64)

OnBlockConsumerJobDone provides a mock function with given fields: _a0

func (*VerificationMetrics) OnChunkConsumerJobDone

func (_m *VerificationMetrics) OnChunkConsumerJobDone(_a0 uint64)

OnChunkConsumerJobDone provides a mock function with given fields: _a0

func (*VerificationMetrics) OnChunkDataPackArrivedAtFetcher

func (_m *VerificationMetrics) OnChunkDataPackArrivedAtFetcher()

OnChunkDataPackArrivedAtFetcher provides a mock function with given fields:

func (*VerificationMetrics) OnChunkDataPackRequestDispatchedInNetworkByRequester

func (_m *VerificationMetrics) OnChunkDataPackRequestDispatchedInNetworkByRequester()

OnChunkDataPackRequestDispatchedInNetworkByRequester provides a mock function with given fields:

func (*VerificationMetrics) OnChunkDataPackRequestReceivedByRequester

func (_m *VerificationMetrics) OnChunkDataPackRequestReceivedByRequester()

OnChunkDataPackRequestReceivedByRequester provides a mock function with given fields:

func (*VerificationMetrics) OnChunkDataPackRequestSentByFetcher

func (_m *VerificationMetrics) OnChunkDataPackRequestSentByFetcher()

OnChunkDataPackRequestSentByFetcher provides a mock function with given fields:

func (*VerificationMetrics) OnChunkDataPackResponseReceivedFromNetworkByRequester

func (_m *VerificationMetrics) OnChunkDataPackResponseReceivedFromNetworkByRequester()

OnChunkDataPackResponseReceivedFromNetworkByRequester provides a mock function with given fields:

func (*VerificationMetrics) OnChunkDataPackSentToFetcher

func (_m *VerificationMetrics) OnChunkDataPackSentToFetcher()

OnChunkDataPackSentToFetcher provides a mock function with given fields:

func (*VerificationMetrics) OnChunksAssignmentDoneAtAssigner

func (_m *VerificationMetrics) OnChunksAssignmentDoneAtAssigner(chunks int)

OnChunksAssignmentDoneAtAssigner provides a mock function with given fields: chunks

func (*VerificationMetrics) OnExecutionResultReceivedAtAssignerEngine

func (_m *VerificationMetrics) OnExecutionResultReceivedAtAssignerEngine()

OnExecutionResultReceivedAtAssignerEngine provides a mock function with given fields:

func (*VerificationMetrics) OnFinalizedBlockArrivedAtAssigner

func (_m *VerificationMetrics) OnFinalizedBlockArrivedAtAssigner(height uint64)

OnFinalizedBlockArrivedAtAssigner provides a mock function with given fields: height

func (*VerificationMetrics) OnResultApprovalDispatchedInNetworkByVerifier

func (_m *VerificationMetrics) OnResultApprovalDispatchedInNetworkByVerifier()

OnResultApprovalDispatchedInNetworkByVerifier provides a mock function with given fields:

func (*VerificationMetrics) OnVerifiableChunkReceivedAtVerifierEngine

func (_m *VerificationMetrics) OnVerifiableChunkReceivedAtVerifierEngine()

OnVerifiableChunkReceivedAtVerifierEngine provides a mock function with given fields:

func (*VerificationMetrics) OnVerifiableChunkSentToVerifier

func (_m *VerificationMetrics) OnVerifiableChunkSentToVerifier()

OnVerifiableChunkSentToVerifier provides a mock function with given fields:

func (*VerificationMetrics) SetMaxChunkDataPackAttemptsForNextUnsealedHeightAtRequester

func (_m *VerificationMetrics) SetMaxChunkDataPackAttemptsForNextUnsealedHeightAtRequester(attempts uint64)

SetMaxChunkDataPackAttemptsForNextUnsealedHeightAtRequester provides a mock function with given fields: attempts

type WALMetrics

type WALMetrics struct {
	mock.Mock
}

WALMetrics is an autogenerated mock type for the WALMetrics type

func NewWALMetrics

func NewWALMetrics(t mockConstructorTestingTNewWALMetrics) *WALMetrics

NewWALMetrics creates a new instance of WALMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

Source Files

Jump to

Keyboard shortcuts

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