Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.43.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: AGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch added in v0.38.0

type Batch struct {
	mock.Mock
}

Batch is an autogenerated mock type for the Batch type

func NewBatch added in v0.38.0

func NewBatch(t interface {
	mock.TestingT
	Cleanup(func())
}) *Batch

NewBatch creates a new instance of Batch. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Batch) AddCallback added in v0.38.0

func (_m *Batch) AddCallback(_a0 func(error))

AddCallback provides a mock function with given fields: _a0

func (*Batch) Close added in v0.41.0

func (_m *Batch) Close() error

Close provides a mock function with no fields

func (*Batch) Commit added in v0.38.0

func (_m *Batch) Commit() error

Commit provides a mock function with no fields

func (*Batch) GlobalReader added in v0.38.0

func (_m *Batch) GlobalReader() storage.Reader

GlobalReader provides a mock function with no fields

func (*Batch) ScopedValue added in v0.43.2

func (_m *Batch) ScopedValue(key string) (any, bool)

ScopedValue provides a mock function with given fields: key

func (*Batch) SetScopedValue added in v0.43.2

func (_m *Batch) SetScopedValue(key string, value any)

SetScopedValue provides a mock function with given fields: key, value

func (*Batch) Writer added in v0.38.0

func (_m *Batch) Writer() storage.Writer

Writer provides a mock function with no fields

type BatchStorage added in v0.15.0

type BatchStorage struct {
	mock.Mock
}

BatchStorage is an autogenerated mock type for the BatchStorage type

func NewBatchStorage added in v0.26.1

func NewBatchStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *BatchStorage

NewBatchStorage creates a new instance of BatchStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BatchStorage) Flush added in v0.15.2

func (_m *BatchStorage) Flush() error

Flush provides a mock function with no fields

func (*BatchStorage) GetWriter added in v0.15.2

func (_m *BatchStorage) GetWriter() *badger.WriteBatch

GetWriter provides a mock function with no fields

func (*BatchStorage) OnSucceed added in v0.15.2

func (_m *BatchStorage) OnSucceed(callback func())

OnSucceed provides a mock function with given fields: callback

type Blocks

type Blocks struct {
	mock.Mock
}

Blocks is an autogenerated mock type for the Blocks type

func NewBlocks added in v0.26.1

func NewBlocks(t interface {
	mock.TestingT
	Cleanup(func())
}) *Blocks

NewBlocks creates a new instance of Blocks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Blocks) BatchStore added in v0.43.0

func (_m *Blocks) BatchStore(lctx lockctx.Proof, rw storage.ReaderBatchWriter, proposal *flow.Proposal) error

BatchStore provides a mock function with given fields: lctx, rw, proposal

func (*Blocks) ByCollectionID

func (_m *Blocks) ByCollectionID(collID flow.Identifier) (*flow.Block, error)

ByCollectionID provides a mock function with given fields: collID

func (*Blocks) ByHeight

func (_m *Blocks) ByHeight(height uint64) (*flow.Block, error)

ByHeight provides a mock function with given fields: height

func (*Blocks) ByID

func (_m *Blocks) ByID(blockID flow.Identifier) (*flow.Block, error)

ByID provides a mock function with given fields: blockID

func (*Blocks) ByView added in v0.43.0

func (_m *Blocks) ByView(view uint64) (*flow.Block, error)

ByView provides a mock function with given fields: view

func (*Blocks) IndexBlockContainingCollectionGuarantees added in v0.43.0

func (_m *Blocks) IndexBlockContainingCollectionGuarantees(blockID flow.Identifier, collIDs []flow.Identifier) error

IndexBlockContainingCollectionGuarantees provides a mock function with given fields: blockID, collIDs

func (*Blocks) ProposalByHeight added in v0.43.0

func (_m *Blocks) ProposalByHeight(height uint64) (*flow.Proposal, error)

ProposalByHeight provides a mock function with given fields: height

func (*Blocks) ProposalByID added in v0.43.0

func (_m *Blocks) ProposalByID(blockID flow.Identifier) (*flow.Proposal, error)

ProposalByID provides a mock function with given fields: blockID

func (*Blocks) ProposalByView added in v0.43.0

func (_m *Blocks) ProposalByView(view uint64) (*flow.Proposal, error)

ProposalByView provides a mock function with given fields: view

type ChunkDataPacks

type ChunkDataPacks struct {
	mock.Mock
}

ChunkDataPacks is an autogenerated mock type for the ChunkDataPacks type

func NewChunkDataPacks added in v0.26.1

func NewChunkDataPacks(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChunkDataPacks

NewChunkDataPacks creates a new instance of ChunkDataPacks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChunkDataPacks) BatchRemove added in v0.30.0

func (_m *ChunkDataPacks) BatchRemove(chunkIDs []flow.Identifier, rw storage.ReaderBatchWriter) ([]flow.Identifier, error)

BatchRemove provides a mock function with given fields: chunkIDs, rw

func (*ChunkDataPacks) BatchRemoveChunkDataPacksOnly added in v0.43.2

func (_m *ChunkDataPacks) BatchRemoveChunkDataPacksOnly(chunkIDs []flow.Identifier, chunkDataPackBatch storage.ReaderBatchWriter) error

BatchRemoveChunkDataPacksOnly provides a mock function with given fields: chunkIDs, chunkDataPackBatch

func (*ChunkDataPacks) ByChunkID

func (_m *ChunkDataPacks) ByChunkID(chunkID flow.Identifier) (*flow.ChunkDataPack, error)

ByChunkID provides a mock function with given fields: chunkID

func (*ChunkDataPacks) Store

Store provides a mock function with given fields: cs

type ChunksQueue added in v0.15.0

type ChunksQueue struct {
	mock.Mock
}

ChunksQueue is an autogenerated mock type for the ChunksQueue type

func NewChunksQueue added in v0.26.1

func NewChunksQueue(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChunksQueue

NewChunksQueue creates a new instance of ChunksQueue. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChunksQueue) AtIndex added in v0.15.0

func (_m *ChunksQueue) AtIndex(index uint64) (*chunks.Locator, error)

AtIndex provides a mock function with given fields: index

func (*ChunksQueue) LatestIndex added in v0.15.0

func (_m *ChunksQueue) LatestIndex() (uint64, error)

LatestIndex provides a mock function with no fields

func (*ChunksQueue) StoreChunkLocator added in v0.15.0

func (_m *ChunksQueue) StoreChunkLocator(locator *chunks.Locator) (bool, error)

StoreChunkLocator provides a mock function with given fields: locator

type ClusterBlocks

type ClusterBlocks struct {
	mock.Mock
}

ClusterBlocks is an autogenerated mock type for the ClusterBlocks type

func NewClusterBlocks added in v0.26.1

func NewClusterBlocks(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterBlocks

NewClusterBlocks creates a new instance of ClusterBlocks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ClusterBlocks) ProposalByHeight added in v0.43.0

func (_m *ClusterBlocks) ProposalByHeight(height uint64) (*cluster.Proposal, error)

ProposalByHeight provides a mock function with given fields: height

func (*ClusterBlocks) ProposalByID added in v0.43.0

func (_m *ClusterBlocks) ProposalByID(blockID flow.Identifier) (*cluster.Proposal, error)

ProposalByID provides a mock function with given fields: blockID

type ClusterPayloads

type ClusterPayloads struct {
	mock.Mock
}

ClusterPayloads is an autogenerated mock type for the ClusterPayloads type

func NewClusterPayloads added in v0.26.1

func NewClusterPayloads(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterPayloads

NewClusterPayloads creates a new instance of ClusterPayloads. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ClusterPayloads) ByBlockID

func (_m *ClusterPayloads) ByBlockID(blockID flow.Identifier) (*cluster.Payload, error)

ByBlockID provides a mock function with given fields: blockID

type Collections

type Collections struct {
	mock.Mock
}

Collections is an autogenerated mock type for the Collections type

func NewCollections added in v0.26.1

func NewCollections(t interface {
	mock.TestingT
	Cleanup(func())
}) *Collections

NewCollections creates a new instance of Collections. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Collections) BatchStoreAndIndexByTransaction added in v0.43.0

func (_m *Collections) BatchStoreAndIndexByTransaction(lctx lockctx.Proof, collection *flow.Collection, batch storage.ReaderBatchWriter) (*flow.LightCollection, error)

BatchStoreAndIndexByTransaction provides a mock function with given fields: lctx, collection, batch

func (*Collections) ByID

func (_m *Collections) ByID(collID flow.Identifier) (*flow.Collection, error)

ByID provides a mock function with given fields: collID

func (*Collections) LightByID

func (_m *Collections) LightByID(collID flow.Identifier) (*flow.LightCollection, error)

LightByID provides a mock function with given fields: collID

func (*Collections) LightByTransactionID

func (_m *Collections) LightByTransactionID(txID flow.Identifier) (*flow.LightCollection, error)

LightByTransactionID provides a mock function with given fields: txID

func (*Collections) Remove

func (_m *Collections) Remove(collID flow.Identifier) error

Remove provides a mock function with given fields: collID

func (*Collections) Store

func (_m *Collections) Store(collection *flow.Collection) (*flow.LightCollection, error)

Store provides a mock function with given fields: collection

func (*Collections) StoreAndIndexByTransaction added in v0.43.0

func (_m *Collections) StoreAndIndexByTransaction(lctx lockctx.Proof, collection *flow.Collection) (*flow.LightCollection, error)

StoreAndIndexByTransaction provides a mock function with given fields: lctx, collection

type CollectionsReader added in v0.41.0

type CollectionsReader struct {
	mock.Mock
}

CollectionsReader is an autogenerated mock type for the CollectionsReader type

func NewCollectionsReader added in v0.41.0

func NewCollectionsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *CollectionsReader

NewCollectionsReader creates a new instance of CollectionsReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CollectionsReader) ByID added in v0.41.0

func (_m *CollectionsReader) ByID(collID flow.Identifier) (*flow.Collection, error)

ByID provides a mock function with given fields: collID

func (*CollectionsReader) LightByID added in v0.41.0

func (_m *CollectionsReader) LightByID(collID flow.Identifier) (*flow.LightCollection, error)

LightByID provides a mock function with given fields: collID

func (*CollectionsReader) LightByTransactionID added in v0.41.0

func (_m *CollectionsReader) LightByTransactionID(txID flow.Identifier) (*flow.LightCollection, error)

LightByTransactionID provides a mock function with given fields: txID

type Commits

type Commits struct {
	mock.Mock
}

Commits is an autogenerated mock type for the Commits type

func NewCommits added in v0.26.1

func NewCommits(t interface {
	mock.TestingT
	Cleanup(func())
}) *Commits

NewCommits creates a new instance of Commits. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Commits) BatchRemoveByBlockID added in v0.30.0

func (_m *Commits) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveByBlockID provides a mock function with given fields: blockID, batch

func (*Commits) BatchStore added in v0.15.0

func (_m *Commits) BatchStore(lctx lockctx.Proof, blockID flow.Identifier, commit flow.StateCommitment, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function with given fields: lctx, blockID, commit, batch

func (*Commits) ByBlockID

func (_m *Commits) ByBlockID(blockID flow.Identifier) (flow.StateCommitment, error)

ByBlockID provides a mock function with given fields: blockID

type CommitsReader added in v0.41.0

type CommitsReader struct {
	mock.Mock
}

CommitsReader is an autogenerated mock type for the CommitsReader type

func NewCommitsReader added in v0.41.0

func NewCommitsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *CommitsReader

NewCommitsReader creates a new instance of CommitsReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CommitsReader) ByBlockID added in v0.41.0

func (_m *CommitsReader) ByBlockID(blockID flow.Identifier) (flow.StateCommitment, error)

ByBlockID provides a mock function with given fields: blockID

type ComputationResultUploadStatus added in v0.28.0

type ComputationResultUploadStatus struct {
	mock.Mock
}

ComputationResultUploadStatus is an autogenerated mock type for the ComputationResultUploadStatus type

func NewComputationResultUploadStatus added in v0.28.0

func NewComputationResultUploadStatus(t interface {
	mock.TestingT
	Cleanup(func())
}) *ComputationResultUploadStatus

NewComputationResultUploadStatus creates a new instance of ComputationResultUploadStatus. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ComputationResultUploadStatus) ByID added in v0.28.0

ByID provides a mock function with given fields: blockID

func (*ComputationResultUploadStatus) GetIDsByUploadStatus added in v0.28.0

func (_m *ComputationResultUploadStatus) GetIDsByUploadStatus(targetUploadStatus bool) ([]flow.Identifier, error)

GetIDsByUploadStatus provides a mock function with given fields: targetUploadStatus

func (*ComputationResultUploadStatus) Remove added in v0.28.0

func (_m *ComputationResultUploadStatus) Remove(blockID flow.Identifier) error

Remove provides a mock function with given fields: blockID

func (*ComputationResultUploadStatus) Upsert added in v0.28.0

func (_m *ComputationResultUploadStatus) Upsert(blockID flow.Identifier, wasUploadCompleted bool) error

Upsert provides a mock function with given fields: blockID, wasUploadCompleted

type ConsumerProgress added in v0.15.0

type ConsumerProgress struct {
	mock.Mock
}

ConsumerProgress is an autogenerated mock type for the ConsumerProgress type

func NewConsumerProgress added in v0.26.1

func NewConsumerProgress(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConsumerProgress

NewConsumerProgress creates a new instance of ConsumerProgress. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ConsumerProgress) BatchSetProcessedIndex added in v0.43.0

func (_m *ConsumerProgress) BatchSetProcessedIndex(processed uint64, batch storage.ReaderBatchWriter) error

BatchSetProcessedIndex provides a mock function with given fields: processed, batch

func (*ConsumerProgress) ProcessedIndex added in v0.15.0

func (_m *ConsumerProgress) ProcessedIndex() (uint64, error)

ProcessedIndex provides a mock function with no fields

func (*ConsumerProgress) SetProcessedIndex added in v0.15.0

func (_m *ConsumerProgress) SetProcessedIndex(processed uint64) error

SetProcessedIndex provides a mock function with given fields: processed

type ConsumerProgressInitializer added in v0.38.0

type ConsumerProgressInitializer struct {
	mock.Mock
}

ConsumerProgressInitializer is an autogenerated mock type for the ConsumerProgressInitializer type

func NewConsumerProgressInitializer added in v0.38.0

func NewConsumerProgressInitializer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConsumerProgressInitializer

NewConsumerProgressInitializer creates a new instance of ConsumerProgressInitializer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ConsumerProgressInitializer) Initialize added in v0.38.0

func (_m *ConsumerProgressInitializer) Initialize(defaultIndex uint64) (storage.ConsumerProgress, error)

Initialize provides a mock function with given fields: defaultIndex

type DB added in v0.38.0

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func NewDB added in v0.38.0

func NewDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *DB

NewDB creates a new instance of DB. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DB) Close added in v0.43.0

func (_m *DB) Close() error

Close provides a mock function with no fields

func (*DB) NewBatch added in v0.38.0

func (_m *DB) NewBatch() storage.Batch

NewBatch provides a mock function with no fields

func (*DB) Reader added in v0.38.0

func (_m *DB) Reader() storage.Reader

Reader provides a mock function with no fields

func (*DB) WithReaderBatchWriter added in v0.38.0

func (_m *DB) WithReaderBatchWriter(_a0 func(storage.ReaderBatchWriter) error) error

WithReaderBatchWriter provides a mock function with given fields: _a0

type DKGState added in v0.23.9

type DKGState struct {
	mock.Mock
}

DKGState is an autogenerated mock type for the DKGState type

func NewDKGState added in v0.26.1

func NewDKGState(t interface {
	mock.TestingT
	Cleanup(func())
}) *DKGState

NewDKGState creates a new instance of DKGState. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DKGState) CommitMyBeaconPrivateKey added in v0.39.0

func (_m *DKGState) CommitMyBeaconPrivateKey(epochCounter uint64, commit *flow.EpochCommit) error

CommitMyBeaconPrivateKey provides a mock function with given fields: epochCounter, commit

func (*DKGState) GetDKGState added in v0.39.0

func (_m *DKGState) GetDKGState(epochCounter uint64) (flow.DKGState, error)

GetDKGState provides a mock function with given fields: epochCounter

func (*DKGState) InsertMyBeaconPrivateKey added in v0.23.9

func (_m *DKGState) InsertMyBeaconPrivateKey(epochCounter uint64, key crypto.PrivateKey) error

InsertMyBeaconPrivateKey provides a mock function with given fields: epochCounter, key

func (*DKGState) IsDKGStarted added in v0.39.0

func (_m *DKGState) IsDKGStarted(epochCounter uint64) (bool, error)

IsDKGStarted provides a mock function with given fields: epochCounter

func (*DKGState) RetrieveMyBeaconPrivateKey added in v0.23.9

func (_m *DKGState) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error)

RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

func (*DKGState) SetDKGState added in v0.39.0

func (_m *DKGState) SetDKGState(epochCounter uint64, newState flow.DKGState) error

SetDKGState provides a mock function with given fields: epochCounter, newState

func (*DKGState) UnsafeRetrieveMyBeaconPrivateKey added in v0.39.0

func (_m *DKGState) UnsafeRetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, error)

UnsafeRetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

type DKGStateReader added in v0.39.0

type DKGStateReader struct {
	mock.Mock
}

DKGStateReader is an autogenerated mock type for the DKGStateReader type

func NewDKGStateReader added in v0.39.0

func NewDKGStateReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *DKGStateReader

NewDKGStateReader creates a new instance of DKGStateReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DKGStateReader) GetDKGState added in v0.39.0

func (_m *DKGStateReader) GetDKGState(epochCounter uint64) (flow.DKGState, error)

GetDKGState provides a mock function with given fields: epochCounter

func (*DKGStateReader) IsDKGStarted added in v0.39.0

func (_m *DKGStateReader) IsDKGStarted(epochCounter uint64) (bool, error)

IsDKGStarted provides a mock function with given fields: epochCounter

func (*DKGStateReader) RetrieveMyBeaconPrivateKey added in v0.39.0

func (_m *DKGStateReader) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error)

RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

func (*DKGStateReader) UnsafeRetrieveMyBeaconPrivateKey added in v0.39.0

func (_m *DKGStateReader) UnsafeRetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, error)

UnsafeRetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

type EpochCommits

type EpochCommits struct {
	mock.Mock
}

EpochCommits is an autogenerated mock type for the EpochCommits type

func NewEpochCommits added in v0.26.1

func NewEpochCommits(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochCommits

NewEpochCommits creates a new instance of EpochCommits. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EpochCommits) BatchStore added in v0.43.0

func (_m *EpochCommits) BatchStore(rw storage.ReaderBatchWriter, commit *flow.EpochCommit) error

BatchStore provides a mock function with given fields: rw, commit

func (*EpochCommits) ByID

func (_m *EpochCommits) ByID(_a0 flow.Identifier) (*flow.EpochCommit, error)

ByID provides a mock function with given fields: _a0

type EpochProtocolStateEntries added in v0.33.30

type EpochProtocolStateEntries struct {
	mock.Mock
}

EpochProtocolStateEntries is an autogenerated mock type for the EpochProtocolStateEntries type

func NewEpochProtocolStateEntries added in v0.33.30

func NewEpochProtocolStateEntries(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochProtocolStateEntries

NewEpochProtocolStateEntries creates a new instance of EpochProtocolStateEntries. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EpochProtocolStateEntries) BatchIndex added in v0.43.0

func (_m *EpochProtocolStateEntries) BatchIndex(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, epochProtocolStateID flow.Identifier) error

BatchIndex provides a mock function with given fields: lctx, rw, blockID, epochProtocolStateID

func (*EpochProtocolStateEntries) BatchStore added in v0.43.0

func (_m *EpochProtocolStateEntries) BatchStore(w storage.Writer, epochProtocolStateID flow.Identifier, epochProtocolStateEntry *flow.MinEpochStateEntry) error

BatchStore provides a mock function with given fields: w, epochProtocolStateID, epochProtocolStateEntry

func (*EpochProtocolStateEntries) ByBlockID added in v0.33.30

ByBlockID provides a mock function with given fields: blockID

func (*EpochProtocolStateEntries) ByID added in v0.33.30

ByID provides a mock function with given fields: id

type EpochRecoveryMyBeaconKey added in v0.39.0

type EpochRecoveryMyBeaconKey struct {
	mock.Mock
}

EpochRecoveryMyBeaconKey is an autogenerated mock type for the EpochRecoveryMyBeaconKey type

func NewEpochRecoveryMyBeaconKey added in v0.39.0

func NewEpochRecoveryMyBeaconKey(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochRecoveryMyBeaconKey

NewEpochRecoveryMyBeaconKey creates a new instance of EpochRecoveryMyBeaconKey. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EpochRecoveryMyBeaconKey) GetDKGState added in v0.39.0

func (_m *EpochRecoveryMyBeaconKey) GetDKGState(epochCounter uint64) (flow.DKGState, error)

GetDKGState provides a mock function with given fields: epochCounter

func (*EpochRecoveryMyBeaconKey) IsDKGStarted added in v0.39.0

func (_m *EpochRecoveryMyBeaconKey) IsDKGStarted(epochCounter uint64) (bool, error)

IsDKGStarted provides a mock function with given fields: epochCounter

func (*EpochRecoveryMyBeaconKey) RetrieveMyBeaconPrivateKey added in v0.39.0

func (_m *EpochRecoveryMyBeaconKey) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error)

RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

func (*EpochRecoveryMyBeaconKey) UnsafeRetrieveMyBeaconPrivateKey added in v0.39.0

func (_m *EpochRecoveryMyBeaconKey) UnsafeRetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, error)

UnsafeRetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

func (*EpochRecoveryMyBeaconKey) UpsertMyBeaconPrivateKey added in v0.39.0

func (_m *EpochRecoveryMyBeaconKey) UpsertMyBeaconPrivateKey(epochCounter uint64, key crypto.PrivateKey, commit *flow.EpochCommit) error

UpsertMyBeaconPrivateKey provides a mock function with given fields: epochCounter, key, commit

type EpochSetups

type EpochSetups struct {
	mock.Mock
}

EpochSetups is an autogenerated mock type for the EpochSetups type

func NewEpochSetups added in v0.26.1

func NewEpochSetups(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochSetups

NewEpochSetups creates a new instance of EpochSetups. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EpochSetups) BatchStore added in v0.43.0

func (_m *EpochSetups) BatchStore(rw storage.ReaderBatchWriter, setup *flow.EpochSetup) error

BatchStore provides a mock function with given fields: rw, setup

func (*EpochSetups) ByID

func (_m *EpochSetups) ByID(_a0 flow.Identifier) (*flow.EpochSetup, error)

ByID provides a mock function with given fields: _a0

type Events

type Events struct {
	mock.Mock
}

Events is an autogenerated mock type for the Events type

func NewEvents added in v0.26.1

func NewEvents(t interface {
	mock.TestingT
	Cleanup(func())
}) *Events

NewEvents creates a new instance of Events. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Events) BatchRemoveByBlockID added in v0.30.0

func (_m *Events) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveByBlockID provides a mock function with given fields: blockID, batch

func (*Events) BatchStore added in v0.15.0

func (_m *Events) BatchStore(blockID flow.Identifier, events []flow.EventsList, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function with given fields: blockID, events, batch

func (*Events) ByBlockID

func (_m *Events) ByBlockID(blockID flow.Identifier) ([]flow.Event, error)

ByBlockID provides a mock function with given fields: blockID

func (*Events) ByBlockIDEventType

func (_m *Events) ByBlockIDEventType(blockID flow.Identifier, eventType flow.EventType) ([]flow.Event, error)

ByBlockIDEventType provides a mock function with given fields: blockID, eventType

func (*Events) ByBlockIDTransactionID

func (_m *Events) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) ([]flow.Event, error)

ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID

func (*Events) ByBlockIDTransactionIndex added in v0.24.8

func (_m *Events) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) ([]flow.Event, error)

ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex

func (*Events) Store

func (_m *Events) Store(blockID flow.Identifier, blockEvents []flow.EventsList) error

Store provides a mock function with given fields: blockID, blockEvents

type EventsReader added in v0.41.0

type EventsReader struct {
	mock.Mock
}

EventsReader is an autogenerated mock type for the EventsReader type

func NewEventsReader added in v0.41.0

func NewEventsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventsReader

NewEventsReader creates a new instance of EventsReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventsReader) ByBlockID added in v0.41.0

func (_m *EventsReader) ByBlockID(blockID flow.Identifier) ([]flow.Event, error)

ByBlockID provides a mock function with given fields: blockID

func (*EventsReader) ByBlockIDEventType added in v0.41.0

func (_m *EventsReader) ByBlockIDEventType(blockID flow.Identifier, eventType flow.EventType) ([]flow.Event, error)

ByBlockIDEventType provides a mock function with given fields: blockID, eventType

func (*EventsReader) ByBlockIDTransactionID added in v0.41.0

func (_m *EventsReader) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) ([]flow.Event, error)

ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID

func (*EventsReader) ByBlockIDTransactionIndex added in v0.41.0

func (_m *EventsReader) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) ([]flow.Event, error)

ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex

type ExecutionForkEvidence added in v0.43.0

type ExecutionForkEvidence struct {
	mock.Mock
}

ExecutionForkEvidence is an autogenerated mock type for the ExecutionForkEvidence type

func NewExecutionForkEvidence added in v0.43.0

func NewExecutionForkEvidence(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionForkEvidence

NewExecutionForkEvidence creates a new instance of ExecutionForkEvidence. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ExecutionForkEvidence) Retrieve added in v0.43.0

Retrieve provides a mock function with no fields

func (*ExecutionForkEvidence) StoreIfNotExists added in v0.43.0

func (_m *ExecutionForkEvidence) StoreIfNotExists(lctx lockctx.Proof, conflictingSeals []*flow.IncorporatedResultSeal) error

StoreIfNotExists provides a mock function with given fields: lctx, conflictingSeals

type ExecutionReceipts

type ExecutionReceipts struct {
	mock.Mock
}

ExecutionReceipts is an autogenerated mock type for the ExecutionReceipts type

func NewExecutionReceipts added in v0.26.1

func NewExecutionReceipts(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionReceipts

NewExecutionReceipts creates a new instance of ExecutionReceipts. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ExecutionReceipts) BatchStore added in v0.15.1

func (_m *ExecutionReceipts) BatchStore(receipt *flow.ExecutionReceipt, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function with given fields: receipt, batch

func (*ExecutionReceipts) ByBlockID

func (_m *ExecutionReceipts) ByBlockID(blockID flow.Identifier) (flow.ExecutionReceiptList, error)

ByBlockID provides a mock function with given fields: blockID

func (*ExecutionReceipts) ByID

func (_m *ExecutionReceipts) ByID(receiptID flow.Identifier) (*flow.ExecutionReceipt, error)

ByID provides a mock function with given fields: receiptID

func (*ExecutionReceipts) Store

func (_m *ExecutionReceipts) Store(receipt *flow.ExecutionReceipt) error

Store provides a mock function with given fields: receipt

type ExecutionResults

type ExecutionResults struct {
	mock.Mock
}

ExecutionResults is an autogenerated mock type for the ExecutionResults type

func NewExecutionResults added in v0.26.1

func NewExecutionResults(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionResults

NewExecutionResults creates a new instance of ExecutionResults. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ExecutionResults) BatchIndex added in v0.15.0

func (_m *ExecutionResults) BatchIndex(blockID flow.Identifier, resultID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchIndex provides a mock function with given fields: blockID, resultID, batch

func (*ExecutionResults) BatchRemoveIndexByBlockID added in v0.30.0

func (_m *ExecutionResults) BatchRemoveIndexByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveIndexByBlockID provides a mock function with given fields: blockID, batch

func (*ExecutionResults) BatchStore added in v0.15.0

func (_m *ExecutionResults) BatchStore(result *flow.ExecutionResult, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function with given fields: result, batch

func (*ExecutionResults) ByBlockID

func (_m *ExecutionResults) ByBlockID(blockID flow.Identifier) (*flow.ExecutionResult, error)

ByBlockID provides a mock function with given fields: blockID

func (*ExecutionResults) ByID

func (_m *ExecutionResults) ByID(resultID flow.Identifier) (*flow.ExecutionResult, error)

ByID provides a mock function with given fields: resultID

func (*ExecutionResults) ForceIndex added in v0.21.0

func (_m *ExecutionResults) ForceIndex(blockID flow.Identifier, resultID flow.Identifier) error

ForceIndex provides a mock function with given fields: blockID, resultID

func (*ExecutionResults) Index

func (_m *ExecutionResults) Index(blockID flow.Identifier, resultID flow.Identifier) error

Index provides a mock function with given fields: blockID, resultID

func (*ExecutionResults) Store

func (_m *ExecutionResults) Store(result *flow.ExecutionResult) error

Store provides a mock function with given fields: result

type ExecutionResultsReader added in v0.41.0

type ExecutionResultsReader struct {
	mock.Mock
}

ExecutionResultsReader is an autogenerated mock type for the ExecutionResultsReader type

func NewExecutionResultsReader added in v0.41.0

func NewExecutionResultsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExecutionResultsReader

NewExecutionResultsReader creates a new instance of ExecutionResultsReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ExecutionResultsReader) ByBlockID added in v0.41.0

func (_m *ExecutionResultsReader) ByBlockID(blockID flow.Identifier) (*flow.ExecutionResult, error)

ByBlockID provides a mock function with given fields: blockID

func (*ExecutionResultsReader) ByID added in v0.41.0

ByID provides a mock function with given fields: resultID

type Guarantees

type Guarantees struct {
	mock.Mock
}

Guarantees is an autogenerated mock type for the Guarantees type

func NewGuarantees added in v0.26.1

func NewGuarantees(t interface {
	mock.TestingT
	Cleanup(func())
}) *Guarantees

NewGuarantees creates a new instance of Guarantees. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Guarantees) ByCollectionID

func (_m *Guarantees) ByCollectionID(collID flow.Identifier) (*flow.CollectionGuarantee, error)

ByCollectionID provides a mock function with given fields: collID

func (*Guarantees) ByID added in v0.43.0

func (_m *Guarantees) ByID(guaranteeID flow.Identifier) (*flow.CollectionGuarantee, error)

ByID provides a mock function with given fields: guaranteeID

type Headers

type Headers struct {
	mock.Mock
}

Headers is an autogenerated mock type for the Headers type

func NewHeaders added in v0.26.1

func NewHeaders(t interface {
	mock.TestingT
	Cleanup(func())
}) *Headers

NewHeaders creates a new instance of Headers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Headers) BlockIDByHeight added in v0.30.0

func (_m *Headers) BlockIDByHeight(height uint64) (flow.Identifier, error)

BlockIDByHeight provides a mock function with given fields: height

func (*Headers) ByBlockID

func (_m *Headers) ByBlockID(blockID flow.Identifier) (*flow.Header, error)

ByBlockID provides a mock function with given fields: blockID

func (*Headers) ByHeight

func (_m *Headers) ByHeight(height uint64) (*flow.Header, error)

ByHeight provides a mock function with given fields: height

func (*Headers) ByParentID

func (_m *Headers) ByParentID(parentID flow.Identifier) ([]*flow.Header, error)

ByParentID provides a mock function with given fields: parentID

func (*Headers) ByView added in v0.43.0

func (_m *Headers) ByView(view uint64) (*flow.Header, error)

ByView provides a mock function with given fields: view

func (*Headers) Exists added in v0.31.0

func (_m *Headers) Exists(blockID flow.Identifier) (bool, error)

Exists provides a mock function with given fields: blockID

func (*Headers) ProposalByBlockID added in v0.43.0

func (_m *Headers) ProposalByBlockID(blockID flow.Identifier) (*flow.ProposalHeader, error)

ProposalByBlockID provides a mock function with given fields: blockID

type HeightIndex added in v0.32.0

type HeightIndex struct {
	mock.Mock
}

HeightIndex is an autogenerated mock type for the HeightIndex type

func NewHeightIndex added in v0.32.0

func NewHeightIndex(t interface {
	mock.TestingT
	Cleanup(func())
}) *HeightIndex

NewHeightIndex creates a new instance of HeightIndex. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HeightIndex) FirstHeight added in v0.32.0

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

FirstHeight provides a mock function with no fields

func (*HeightIndex) LatestHeight added in v0.32.0

func (_m *HeightIndex) LatestHeight() (uint64, error)

LatestHeight provides a mock function with no fields

func (*HeightIndex) SetLatestHeight added in v0.32.0

func (_m *HeightIndex) SetLatestHeight(height uint64) error

SetLatestHeight provides a mock function with given fields: height

type Index

type Index struct {
	mock.Mock
}

Index is an autogenerated mock type for the Index type

func NewIndex added in v0.26.1

func NewIndex(t interface {
	mock.TestingT
	Cleanup(func())
}) *Index

NewIndex creates a new instance of Index. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Index) ByBlockID

func (_m *Index) ByBlockID(blockID flow.Identifier) (*flow.Index, error)

ByBlockID provides a mock function with given fields: blockID

type IterItem added in v0.38.0

type IterItem struct {
	mock.Mock
}

IterItem is an autogenerated mock type for the IterItem type

func NewIterItem added in v0.38.0

func NewIterItem(t interface {
	mock.TestingT
	Cleanup(func())
}) *IterItem

NewIterItem creates a new instance of IterItem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IterItem) Key added in v0.38.0

func (_m *IterItem) Key() []byte

Key provides a mock function with no fields

func (*IterItem) KeyCopy added in v0.38.0

func (_m *IterItem) KeyCopy(dst []byte) []byte

KeyCopy provides a mock function with given fields: dst

func (*IterItem) Value added in v0.38.0

func (_m *IterItem) Value(_a0 func([]byte) error) error

Value provides a mock function with given fields: _a0

type Iterator added in v0.38.0

type Iterator struct {
	mock.Mock
}

Iterator is an autogenerated mock type for the Iterator type

func NewIterator added in v0.38.0

func NewIterator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Iterator

NewIterator creates a new instance of Iterator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Iterator) Close added in v0.38.0

func (_m *Iterator) Close() error

Close provides a mock function with no fields

func (*Iterator) First added in v0.38.0

func (_m *Iterator) First() bool

First provides a mock function with no fields

func (*Iterator) IterItem added in v0.38.0

func (_m *Iterator) IterItem() storage.IterItem

IterItem provides a mock function with no fields

func (*Iterator) Next added in v0.38.0

func (_m *Iterator) Next()

Next provides a mock function with no fields

func (*Iterator) Valid added in v0.38.0

func (_m *Iterator) Valid() bool

Valid provides a mock function with no fields

type LatestPersistedSealedResult added in v0.43.0

type LatestPersistedSealedResult struct {
	mock.Mock
}

LatestPersistedSealedResult is an autogenerated mock type for the LatestPersistedSealedResult type

func NewLatestPersistedSealedResult added in v0.43.0

func NewLatestPersistedSealedResult(t interface {
	mock.TestingT
	Cleanup(func())
}) *LatestPersistedSealedResult

NewLatestPersistedSealedResult creates a new instance of LatestPersistedSealedResult. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LatestPersistedSealedResult) BatchSet added in v0.43.0

func (_m *LatestPersistedSealedResult) BatchSet(resultID flow.Identifier, height uint64, batch storage.ReaderBatchWriter) error

BatchSet provides a mock function with given fields: resultID, height, batch

func (*LatestPersistedSealedResult) Latest added in v0.43.0

Latest provides a mock function with no fields

type Ledger

type Ledger struct {
	mock.Mock
}

Ledger is an autogenerated mock type for the Ledger type

func NewLedger added in v0.26.1

func NewLedger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Ledger

NewLedger creates a new instance of Ledger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Ledger) EmptyStateCommitment

func (_m *Ledger) EmptyStateCommitment() flow.StateCommitment

EmptyStateCommitment provides a mock function with no fields

func (*Ledger) GetRegisters

func (_m *Ledger) GetRegisters(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment) ([]flow.RegisterValue, error)

GetRegisters provides a mock function with given fields: registerIDs, stateCommitment

func (*Ledger) GetRegistersWithProof

func (_m *Ledger) GetRegistersWithProof(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment) ([]flow.RegisterValue, []flow.StorageProof, error)

GetRegistersWithProof provides a mock function with given fields: registerIDs, stateCommitment

func (*Ledger) UpdateRegisters

func (_m *Ledger) UpdateRegisters(registerIDs []flow.RegisterID, values []flow.RegisterValue, stateCommitment flow.StateCommitment) (flow.StateCommitment, error)

UpdateRegisters provides a mock function with given fields: registerIDs, values, stateCommitment

func (*Ledger) UpdateRegistersWithProof

func (_m *Ledger) UpdateRegistersWithProof(registerIDs []flow.RegisterID, values []flow.RegisterValue, stateCommitment flow.StateCommitment) (flow.StateCommitment, []flow.StorageProof, error)

UpdateRegistersWithProof provides a mock function with given fields: registerIDs, values, stateCommitment

type LedgerVerifier

type LedgerVerifier struct {
	mock.Mock
}

LedgerVerifier is an autogenerated mock type for the LedgerVerifier type

func NewLedgerVerifier added in v0.26.1

func NewLedgerVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *LedgerVerifier

NewLedgerVerifier creates a new instance of LedgerVerifier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LedgerVerifier) VerifyRegistersProof

func (_m *LedgerVerifier) VerifyRegistersProof(registerIDs []flow.RegisterID, stateCommitment flow.StateCommitment, values []flow.RegisterValue, proof []flow.StorageProof) (bool, error)

VerifyRegistersProof provides a mock function with given fields: registerIDs, stateCommitment, values, proof

type LightTransactionResults added in v0.32.0

type LightTransactionResults struct {
	mock.Mock
}

LightTransactionResults is an autogenerated mock type for the LightTransactionResults type

func NewLightTransactionResults added in v0.32.0

func NewLightTransactionResults(t interface {
	mock.TestingT
	Cleanup(func())
}) *LightTransactionResults

NewLightTransactionResults creates a new instance of LightTransactionResults. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LightTransactionResults) BatchStore added in v0.32.0

func (_m *LightTransactionResults) BatchStore(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, transactionResults []flow.LightTransactionResult) error

BatchStore provides a mock function with given fields: lctx, rw, blockID, transactionResults

func (*LightTransactionResults) ByBlockID added in v0.32.0

ByBlockID provides a mock function with given fields: id

func (*LightTransactionResults) ByBlockIDTransactionID added in v0.32.0

func (_m *LightTransactionResults) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.LightTransactionResult, error)

ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID

func (*LightTransactionResults) ByBlockIDTransactionIndex added in v0.32.0

func (_m *LightTransactionResults) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.LightTransactionResult, error)

ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex

type LightTransactionResultsReader added in v0.41.0

type LightTransactionResultsReader struct {
	mock.Mock
}

LightTransactionResultsReader is an autogenerated mock type for the LightTransactionResultsReader type

func NewLightTransactionResultsReader added in v0.41.0

func NewLightTransactionResultsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *LightTransactionResultsReader

NewLightTransactionResultsReader creates a new instance of LightTransactionResultsReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LightTransactionResultsReader) ByBlockID added in v0.41.0

ByBlockID provides a mock function with given fields: id

func (*LightTransactionResultsReader) ByBlockIDTransactionID added in v0.41.0

func (_m *LightTransactionResultsReader) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.LightTransactionResult, error)

ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID

func (*LightTransactionResultsReader) ByBlockIDTransactionIndex added in v0.41.0

func (_m *LightTransactionResultsReader) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.LightTransactionResult, error)

ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex

type LockManager added in v0.43.0

type LockManager struct {
	mock.Mock
}

LockManager is an autogenerated mock type for the LockManager type

func NewLockManager added in v0.43.0

func NewLockManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *LockManager

NewLockManager creates a new instance of LockManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LockManager) NewContext added in v0.43.0

func (_m *LockManager) NewContext() lockctx.Context

NewContext provides a mock function with no fields

type MyExecutionReceipts added in v0.15.0

type MyExecutionReceipts struct {
	mock.Mock
}

MyExecutionReceipts is an autogenerated mock type for the MyExecutionReceipts type

func NewMyExecutionReceipts added in v0.26.1

func NewMyExecutionReceipts(t interface {
	mock.TestingT
	Cleanup(func())
}) *MyExecutionReceipts

NewMyExecutionReceipts creates a new instance of MyExecutionReceipts. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MyExecutionReceipts) BatchRemoveIndexByBlockID added in v0.30.0

func (_m *MyExecutionReceipts) BatchRemoveIndexByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveIndexByBlockID provides a mock function with given fields: blockID, batch

func (*MyExecutionReceipts) BatchStoreMyReceipt added in v0.15.1

func (_m *MyExecutionReceipts) BatchStoreMyReceipt(lctx lockctx.Proof, receipt *flow.ExecutionReceipt, batch storage.ReaderBatchWriter) error

BatchStoreMyReceipt provides a mock function with given fields: lctx, receipt, batch

func (*MyExecutionReceipts) MyReceipt added in v0.15.0

func (_m *MyExecutionReceipts) MyReceipt(blockID flow.Identifier) (*flow.ExecutionReceipt, error)

MyReceipt provides a mock function with given fields: blockID

type NodeDisallowList added in v0.42.1

type NodeDisallowList struct {
	mock.Mock
}

NodeDisallowList is an autogenerated mock type for the NodeDisallowList type

func NewNodeDisallowList added in v0.42.1

func NewNodeDisallowList(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeDisallowList

NewNodeDisallowList creates a new instance of NodeDisallowList. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*NodeDisallowList) Retrieve added in v0.42.1

func (_m *NodeDisallowList) Retrieve(disallowList *map[flow.Identifier]struct{}) error

Retrieve provides a mock function with given fields: disallowList

func (*NodeDisallowList) Store added in v0.42.1

func (_m *NodeDisallowList) Store(disallowList map[flow.Identifier]struct{}) error

Store provides a mock function with given fields: disallowList

type Payloads

type Payloads struct {
	mock.Mock
}

Payloads is an autogenerated mock type for the Payloads type

func NewPayloads added in v0.26.1

func NewPayloads(t interface {
	mock.TestingT
	Cleanup(func())
}) *Payloads

NewPayloads creates a new instance of Payloads. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Payloads) ByBlockID

func (_m *Payloads) ByBlockID(blockID flow.Identifier) (*flow.Payload, error)

ByBlockID provides a mock function with given fields: blockID

type ProtocolKVStore added in v0.33.30

type ProtocolKVStore struct {
	mock.Mock
}

ProtocolKVStore is an autogenerated mock type for the ProtocolKVStore type

func NewProtocolKVStore added in v0.33.30

func NewProtocolKVStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProtocolKVStore

NewProtocolKVStore creates a new instance of ProtocolKVStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ProtocolKVStore) BatchIndex added in v0.43.0

func (_m *ProtocolKVStore) BatchIndex(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, stateID flow.Identifier) error

BatchIndex provides a mock function with given fields: lctx, rw, blockID, stateID

func (*ProtocolKVStore) BatchStore added in v0.43.0

BatchStore provides a mock function with given fields: rw, stateID, data

func (*ProtocolKVStore) ByBlockID added in v0.33.30

func (_m *ProtocolKVStore) ByBlockID(blockID flow.Identifier) (*flow.PSKeyValueStoreData, error)

ByBlockID provides a mock function with given fields: blockID

func (*ProtocolKVStore) ByID added in v0.33.30

ByID provides a mock function with given fields: id

type QuorumCertificates added in v0.30.0

type QuorumCertificates struct {
	mock.Mock
}

QuorumCertificates is an autogenerated mock type for the QuorumCertificates type

func NewQuorumCertificates added in v0.30.0

func NewQuorumCertificates(t interface {
	mock.TestingT
	Cleanup(func())
}) *QuorumCertificates

NewQuorumCertificates creates a new instance of QuorumCertificates. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*QuorumCertificates) BatchStore added in v0.43.0

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

func (*QuorumCertificates) ByBlockID added in v0.30.0

func (_m *QuorumCertificates) ByBlockID(blockID flow.Identifier) (*flow.QuorumCertificate, error)

ByBlockID provides a mock function with given fields: blockID

type Reader added in v0.38.0

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader added in v0.38.0

func NewReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reader

NewReader creates a new instance of Reader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Reader) Get added in v0.38.0

func (_m *Reader) Get(key []byte) ([]byte, io.Closer, error)

Get provides a mock function with given fields: key

func (*Reader) NewIter added in v0.38.0

func (_m *Reader) NewIter(startPrefix []byte, endPrefix []byte, ops storage.IteratorOption) (storage.Iterator, error)

NewIter provides a mock function with given fields: startPrefix, endPrefix, ops

func (*Reader) NewSeeker added in v0.41.0

func (_m *Reader) NewSeeker() storage.Seeker

NewSeeker provides a mock function with no fields

type ReaderBatchWriter added in v0.38.0

type ReaderBatchWriter struct {
	mock.Mock
}

ReaderBatchWriter is an autogenerated mock type for the ReaderBatchWriter type

func NewReaderBatchWriter added in v0.38.0

func NewReaderBatchWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReaderBatchWriter

NewReaderBatchWriter creates a new instance of ReaderBatchWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReaderBatchWriter) AddCallback added in v0.38.0

func (_m *ReaderBatchWriter) AddCallback(_a0 func(error))

AddCallback provides a mock function with given fields: _a0

func (*ReaderBatchWriter) GlobalReader added in v0.38.0

func (_m *ReaderBatchWriter) GlobalReader() storage.Reader

GlobalReader provides a mock function with no fields

func (*ReaderBatchWriter) ScopedValue added in v0.43.2

func (_m *ReaderBatchWriter) ScopedValue(key string) (any, bool)

ScopedValue provides a mock function with given fields: key

func (*ReaderBatchWriter) SetScopedValue added in v0.43.2

func (_m *ReaderBatchWriter) SetScopedValue(key string, value any)

SetScopedValue provides a mock function with given fields: key, value

func (*ReaderBatchWriter) Writer added in v0.38.0

func (_m *ReaderBatchWriter) Writer() storage.Writer

Writer provides a mock function with no fields

type RegisterIndex added in v0.32.0

type RegisterIndex struct {
	mock.Mock
}

RegisterIndex is an autogenerated mock type for the RegisterIndex type

func NewRegisterIndex added in v0.32.0

func NewRegisterIndex(t interface {
	mock.TestingT
	Cleanup(func())
}) *RegisterIndex

NewRegisterIndex creates a new instance of RegisterIndex. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RegisterIndex) FirstHeight added in v0.32.0

func (_m *RegisterIndex) FirstHeight() uint64

FirstHeight provides a mock function with no fields

func (*RegisterIndex) Get added in v0.32.0

func (_m *RegisterIndex) Get(ID flow.RegisterID, height uint64) (flow.RegisterValue, error)

Get provides a mock function with given fields: ID, height

func (*RegisterIndex) LatestHeight added in v0.32.0

func (_m *RegisterIndex) LatestHeight() uint64

LatestHeight provides a mock function with no fields

func (*RegisterIndex) Store added in v0.32.0

func (_m *RegisterIndex) Store(entries flow.RegisterEntries, height uint64) error

Store provides a mock function with given fields: entries, height

type RegisterIndexReader added in v0.41.0

type RegisterIndexReader struct {
	mock.Mock
}

RegisterIndexReader is an autogenerated mock type for the RegisterIndexReader type

func NewRegisterIndexReader added in v0.41.0

func NewRegisterIndexReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *RegisterIndexReader

NewRegisterIndexReader creates a new instance of RegisterIndexReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RegisterIndexReader) FirstHeight added in v0.41.0

func (_m *RegisterIndexReader) FirstHeight() uint64

FirstHeight provides a mock function with no fields

func (*RegisterIndexReader) Get added in v0.41.0

Get provides a mock function with given fields: ID, height

func (*RegisterIndexReader) LatestHeight added in v0.41.0

func (_m *RegisterIndexReader) LatestHeight() uint64

LatestHeight provides a mock function with no fields

type ResultApprovals added in v0.14.0

type ResultApprovals struct {
	mock.Mock
}

ResultApprovals is an autogenerated mock type for the ResultApprovals type

func NewResultApprovals added in v0.26.1

func NewResultApprovals(t interface {
	mock.TestingT
	Cleanup(func())
}) *ResultApprovals

NewResultApprovals creates a new instance of ResultApprovals. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ResultApprovals) ByChunk added in v0.14.0

func (_m *ResultApprovals) ByChunk(resultID flow.Identifier, chunkIndex uint64) (*flow.ResultApproval, error)

ByChunk provides a mock function with given fields: resultID, chunkIndex

func (*ResultApprovals) ByID added in v0.14.0

func (_m *ResultApprovals) ByID(approvalID flow.Identifier) (*flow.ResultApproval, error)

ByID provides a mock function with given fields: approvalID

func (*ResultApprovals) StoreMyApproval added in v0.43.0

func (_m *ResultApprovals) StoreMyApproval(approval *flow.ResultApproval) func(lockctx.Proof) error

StoreMyApproval provides a mock function with given fields: approval

type SafeBeaconKeys added in v0.23.9

type SafeBeaconKeys struct {
	mock.Mock
}

SafeBeaconKeys is an autogenerated mock type for the SafeBeaconKeys type

func NewSafeBeaconKeys added in v0.26.1

func NewSafeBeaconKeys(t interface {
	mock.TestingT
	Cleanup(func())
}) *SafeBeaconKeys

NewSafeBeaconKeys creates a new instance of SafeBeaconKeys. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SafeBeaconKeys) RetrieveMyBeaconPrivateKey added in v0.23.9

func (_m *SafeBeaconKeys) RetrieveMyBeaconPrivateKey(epochCounter uint64) (crypto.PrivateKey, bool, error)

RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

type ScheduledTransactions added in v0.43.2

type ScheduledTransactions struct {
	mock.Mock
}

ScheduledTransactions is an autogenerated mock type for the ScheduledTransactions type

func NewScheduledTransactions added in v0.43.2

func NewScheduledTransactions(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScheduledTransactions

NewScheduledTransactions creates a new instance of ScheduledTransactions. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ScheduledTransactions) BatchIndex added in v0.43.2

func (_m *ScheduledTransactions) BatchIndex(lctx lockctx.Proof, blockID flow.Identifier, txID flow.Identifier, scheduledTxID uint64, batch storage.ReaderBatchWriter) error

BatchIndex provides a mock function with given fields: lctx, blockID, txID, scheduledTxID, batch

func (*ScheduledTransactions) BlockIDByTransactionID added in v0.43.2

func (_m *ScheduledTransactions) BlockIDByTransactionID(txID flow.Identifier) (flow.Identifier, error)

BlockIDByTransactionID provides a mock function with given fields: txID

func (*ScheduledTransactions) TransactionIDByID added in v0.43.2

func (_m *ScheduledTransactions) TransactionIDByID(scheduledTxID uint64) (flow.Identifier, error)

TransactionIDByID provides a mock function with given fields: scheduledTxID

type ScheduledTransactionsReader added in v0.43.2

type ScheduledTransactionsReader struct {
	mock.Mock
}

ScheduledTransactionsReader is an autogenerated mock type for the ScheduledTransactionsReader type

func NewScheduledTransactionsReader added in v0.43.2

func NewScheduledTransactionsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ScheduledTransactionsReader

NewScheduledTransactionsReader creates a new instance of ScheduledTransactionsReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ScheduledTransactionsReader) BlockIDByTransactionID added in v0.43.2

func (_m *ScheduledTransactionsReader) BlockIDByTransactionID(txID flow.Identifier) (flow.Identifier, error)

BlockIDByTransactionID provides a mock function with given fields: txID

func (*ScheduledTransactionsReader) TransactionIDByID added in v0.43.2

func (_m *ScheduledTransactionsReader) TransactionIDByID(scheduledTxID uint64) (flow.Identifier, error)

TransactionIDByID provides a mock function with given fields: scheduledTxID

type Seals

type Seals struct {
	mock.Mock
}

Seals is an autogenerated mock type for the Seals type

func NewSeals added in v0.26.1

func NewSeals(t interface {
	mock.TestingT
	Cleanup(func())
}) *Seals

NewSeals creates a new instance of Seals. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Seals) ByID

func (_m *Seals) ByID(sealID flow.Identifier) (*flow.Seal, error)

ByID provides a mock function with given fields: sealID

func (*Seals) FinalizedSealForBlock added in v0.26.6

func (_m *Seals) FinalizedSealForBlock(blockID flow.Identifier) (*flow.Seal, error)

FinalizedSealForBlock provides a mock function with given fields: blockID

func (*Seals) HighestInFork added in v0.26.6

func (_m *Seals) HighestInFork(blockID flow.Identifier) (*flow.Seal, error)

HighestInFork provides a mock function with given fields: blockID

func (*Seals) Store

func (_m *Seals) Store(seal *flow.Seal) error

Store provides a mock function with given fields: seal

type Seeker added in v0.41.0

type Seeker struct {
	mock.Mock
}

Seeker is an autogenerated mock type for the Seeker type

func NewSeeker added in v0.41.0

func NewSeeker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Seeker

NewSeeker creates a new instance of Seeker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Seeker) SeekLE added in v0.41.0

func (_m *Seeker) SeekLE(startPrefix []byte, key []byte) ([]byte, error)

SeekLE provides a mock function with given fields: startPrefix, key

type ServiceEvents added in v0.14.0

type ServiceEvents struct {
	mock.Mock
}

ServiceEvents is an autogenerated mock type for the ServiceEvents type

func NewServiceEvents added in v0.26.1

func NewServiceEvents(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceEvents

NewServiceEvents creates a new instance of ServiceEvents. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ServiceEvents) BatchRemoveByBlockID added in v0.30.0

func (_m *ServiceEvents) BatchRemoveByBlockID(blockID flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveByBlockID provides a mock function with given fields: blockID, batch

func (*ServiceEvents) BatchStore added in v0.15.0

func (_m *ServiceEvents) BatchStore(blockID flow.Identifier, events []flow.Event, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function with given fields: blockID, events, batch

func (*ServiceEvents) ByBlockID added in v0.14.0

func (_m *ServiceEvents) ByBlockID(blockID flow.Identifier) ([]flow.Event, error)

ByBlockID provides a mock function with given fields: blockID

type StoredChunkDataPacks added in v0.43.2

type StoredChunkDataPacks struct {
	mock.Mock
}

StoredChunkDataPacks is an autogenerated mock type for the StoredChunkDataPacks type

func NewStoredChunkDataPacks added in v0.43.2

func NewStoredChunkDataPacks(t interface {
	mock.TestingT
	Cleanup(func())
}) *StoredChunkDataPacks

NewStoredChunkDataPacks creates a new instance of StoredChunkDataPacks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StoredChunkDataPacks) BatchRemove added in v0.43.2

func (_m *StoredChunkDataPacks) BatchRemove(chunkDataPackIDs []flow.Identifier, rw storage.ReaderBatchWriter) error

BatchRemove provides a mock function with given fields: chunkDataPackIDs, rw

func (*StoredChunkDataPacks) ByID added in v0.43.2

ByID provides a mock function with given fields: id

func (*StoredChunkDataPacks) Remove added in v0.43.2

func (_m *StoredChunkDataPacks) Remove(chunkDataPackIDs []flow.Identifier) error

Remove provides a mock function with given fields: chunkDataPackIDs

func (*StoredChunkDataPacks) StoreChunkDataPacks added in v0.43.2

func (_m *StoredChunkDataPacks) StoreChunkDataPacks(cs []*storage.StoredChunkDataPack) ([]flow.Identifier, error)

StoreChunkDataPacks provides a mock function with given fields: cs

type Transaction added in v0.15.2

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction added in v0.26.1

func NewTransaction(t interface {
	mock.TestingT
	Cleanup(func())
}) *Transaction

NewTransaction creates a new instance of Transaction. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Transaction) Set added in v0.15.2

func (_m *Transaction) Set(key []byte, val []byte) error

Set provides a mock function with given fields: key, val

type TransactionResultErrorMessages added in v0.38.0

type TransactionResultErrorMessages struct {
	mock.Mock
}

TransactionResultErrorMessages is an autogenerated mock type for the TransactionResultErrorMessages type

func NewTransactionResultErrorMessages added in v0.38.0

func NewTransactionResultErrorMessages(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionResultErrorMessages

NewTransactionResultErrorMessages creates a new instance of TransactionResultErrorMessages. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TransactionResultErrorMessages) BatchStore added in v0.43.0

func (_m *TransactionResultErrorMessages) BatchStore(lctx lockctx.Proof, rw storage.ReaderBatchWriter, blockID flow.Identifier, transactionResultErrorMessages []flow.TransactionResultErrorMessage) error

BatchStore provides a mock function with given fields: lctx, rw, blockID, transactionResultErrorMessages

func (*TransactionResultErrorMessages) ByBlockID added in v0.38.0

ByBlockID provides a mock function with given fields: id

func (*TransactionResultErrorMessages) ByBlockIDTransactionID added in v0.38.0

func (_m *TransactionResultErrorMessages) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResultErrorMessage, error)

ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID

func (*TransactionResultErrorMessages) ByBlockIDTransactionIndex added in v0.38.0

func (_m *TransactionResultErrorMessages) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResultErrorMessage, error)

ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex

func (*TransactionResultErrorMessages) Exists added in v0.38.0

func (_m *TransactionResultErrorMessages) Exists(blockID flow.Identifier) (bool, error)

Exists provides a mock function with given fields: blockID

func (*TransactionResultErrorMessages) Store added in v0.38.0

func (_m *TransactionResultErrorMessages) Store(lctx lockctx.Proof, blockID flow.Identifier, transactionResultErrorMessages []flow.TransactionResultErrorMessage) error

Store provides a mock function with given fields: lctx, blockID, transactionResultErrorMessages

type TransactionResultErrorMessagesReader added in v0.41.0

type TransactionResultErrorMessagesReader struct {
	mock.Mock
}

TransactionResultErrorMessagesReader is an autogenerated mock type for the TransactionResultErrorMessagesReader type

func NewTransactionResultErrorMessagesReader added in v0.41.0

func NewTransactionResultErrorMessagesReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionResultErrorMessagesReader

NewTransactionResultErrorMessagesReader creates a new instance of TransactionResultErrorMessagesReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TransactionResultErrorMessagesReader) ByBlockID added in v0.41.0

ByBlockID provides a mock function with given fields: id

func (*TransactionResultErrorMessagesReader) ByBlockIDTransactionID added in v0.41.0

func (_m *TransactionResultErrorMessagesReader) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResultErrorMessage, error)

ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID

func (*TransactionResultErrorMessagesReader) ByBlockIDTransactionIndex added in v0.41.0

func (_m *TransactionResultErrorMessagesReader) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResultErrorMessage, error)

ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex

func (*TransactionResultErrorMessagesReader) Exists added in v0.41.0

Exists provides a mock function with given fields: blockID

type TransactionResults

type TransactionResults struct {
	mock.Mock
}

TransactionResults is an autogenerated mock type for the TransactionResults type

func NewTransactionResults added in v0.26.1

func NewTransactionResults(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionResults

NewTransactionResults creates a new instance of TransactionResults. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TransactionResults) BatchRemoveByBlockID added in v0.39.4

func (_m *TransactionResults) BatchRemoveByBlockID(id flow.Identifier, batch storage.ReaderBatchWriter) error

BatchRemoveByBlockID provides a mock function with given fields: id, batch

func (*TransactionResults) BatchStore

func (_m *TransactionResults) BatchStore(blockID flow.Identifier, transactionResults []flow.TransactionResult, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function with given fields: blockID, transactionResults, batch

func (*TransactionResults) ByBlockID added in v0.24.11

ByBlockID provides a mock function with given fields: id

func (*TransactionResults) ByBlockIDTransactionID

func (_m *TransactionResults) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResult, error)

ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID

func (*TransactionResults) ByBlockIDTransactionIndex added in v0.24.8

func (_m *TransactionResults) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResult, error)

ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex

type TransactionResultsReader added in v0.41.0

type TransactionResultsReader struct {
	mock.Mock
}

TransactionResultsReader is an autogenerated mock type for the TransactionResultsReader type

func NewTransactionResultsReader added in v0.41.0

func NewTransactionResultsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionResultsReader

NewTransactionResultsReader creates a new instance of TransactionResultsReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TransactionResultsReader) ByBlockID added in v0.41.0

ByBlockID provides a mock function with given fields: id

func (*TransactionResultsReader) ByBlockIDTransactionID added in v0.41.0

func (_m *TransactionResultsReader) ByBlockIDTransactionID(blockID flow.Identifier, transactionID flow.Identifier) (*flow.TransactionResult, error)

ByBlockIDTransactionID provides a mock function with given fields: blockID, transactionID

func (*TransactionResultsReader) ByBlockIDTransactionIndex added in v0.41.0

func (_m *TransactionResultsReader) ByBlockIDTransactionIndex(blockID flow.Identifier, txIndex uint32) (*flow.TransactionResult, error)

ByBlockIDTransactionIndex provides a mock function with given fields: blockID, txIndex

type Transactions

type Transactions struct {
	mock.Mock
}

Transactions is an autogenerated mock type for the Transactions type

func NewTransactions added in v0.26.1

func NewTransactions(t interface {
	mock.TestingT
	Cleanup(func())
}) *Transactions

NewTransactions creates a new instance of Transactions. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Transactions) BatchStore added in v0.43.0

func (_m *Transactions) BatchStore(tx *flow.TransactionBody, batch storage.ReaderBatchWriter) error

BatchStore provides a mock function with given fields: tx, batch

func (*Transactions) ByID

ByID provides a mock function with given fields: txID

func (*Transactions) Store

func (_m *Transactions) Store(tx *flow.TransactionBody) error

Store provides a mock function with given fields: tx

type TransactionsReader added in v0.41.0

type TransactionsReader struct {
	mock.Mock
}

TransactionsReader is an autogenerated mock type for the TransactionsReader type

func NewTransactionsReader added in v0.41.0

func NewTransactionsReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionsReader

NewTransactionsReader creates a new instance of TransactionsReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TransactionsReader) ByID added in v0.41.0

ByID provides a mock function with given fields: txID

type VersionBeacons added in v0.31.0

type VersionBeacons struct {
	mock.Mock
}

VersionBeacons is an autogenerated mock type for the VersionBeacons type

func NewVersionBeacons added in v0.31.0

func NewVersionBeacons(t interface {
	mock.TestingT
	Cleanup(func())
}) *VersionBeacons

NewVersionBeacons creates a new instance of VersionBeacons. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VersionBeacons) Highest added in v0.31.0

func (_m *VersionBeacons) Highest(belowOrEqualTo uint64) (*flow.SealedVersionBeacon, error)

Highest provides a mock function with given fields: belowOrEqualTo

type Writer added in v0.38.0

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func NewWriter added in v0.38.0

func NewWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Writer

NewWriter creates a new instance of Writer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Writer) Delete added in v0.38.0

func (_m *Writer) Delete(key []byte) error

Delete provides a mock function with given fields: key

func (*Writer) DeleteByRange added in v0.38.0

func (_m *Writer) DeleteByRange(globalReader storage.Reader, startPrefix []byte, endPrefix []byte) error

DeleteByRange provides a mock function with given fields: globalReader, startPrefix, endPrefix

func (*Writer) Set added in v0.38.0

func (_m *Writer) Set(k []byte, v []byte) error

Set provides a mock function with given fields: k, v

Jump to

Keyboard shortcuts

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