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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchStorage

type BatchStorage struct {
	mock.Mock
}

BatchStorage is an autogenerated mock type for the BatchStorage type

func NewBatchStorage

func NewBatchStorage(t mockConstructorTestingTNewBatchStorage) *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.

func (*BatchStorage) Flush

func (_m *BatchStorage) Flush() error

Flush provides a mock function with given fields:

func (*BatchStorage) GetWriter

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

GetWriter provides a mock function with given fields:

func (*BatchStorage) OnSucceed

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

OnSucceed provides a mock function with given fields: callback

type BeaconPrivateKeys

type BeaconPrivateKeys struct {
	mock.Mock
}

BeaconPrivateKeys is an autogenerated mock type for the BeaconPrivateKeys type

func (*BeaconPrivateKeys) InsertMyBeaconPrivateKey

func (_m *BeaconPrivateKeys) InsertMyBeaconPrivateKey(epochCounter uint64, key *encodable.RandomBeaconPrivKey) error

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

func (*BeaconPrivateKeys) RetrieveMyBeaconPrivateKey

func (_m *BeaconPrivateKeys) RetrieveMyBeaconPrivateKey(epochCounter uint64) (*encodable.RandomBeaconPrivKey, error)

RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

type Blocks

type Blocks struct {
	mock.Mock
}

Blocks is an autogenerated mock type for the Blocks type

func NewBlocks

func NewBlocks(t mockConstructorTestingTNewBlocks) *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.

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

func (_m *Blocks) GetLastFullBlockHeight() (uint64, error)

GetLastFullBlockHeight provides a mock function with given fields:

func (*Blocks) IndexBlockForCollections

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

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

func (*Blocks) InsertLastFullBlockHeightIfNotExists

func (_m *Blocks) InsertLastFullBlockHeightIfNotExists(height uint64) error

InsertLastFullBlockHeightIfNotExists provides a mock function with given fields: height

func (*Blocks) Store

func (_m *Blocks) Store(block *flow.Block) error

Store provides a mock function with given fields: block

func (*Blocks) StoreTx

func (_m *Blocks) StoreTx(block *flow.Block) func(*transaction.Tx) error

StoreTx provides a mock function with given fields: block

func (*Blocks) UpdateLastFullBlockHeight

func (_m *Blocks) UpdateLastFullBlockHeight(height uint64) error

UpdateLastFullBlockHeight provides a mock function with given fields: height

type ChunkDataPacks

type ChunkDataPacks struct {
	mock.Mock
}

ChunkDataPacks is an autogenerated mock type for the ChunkDataPacks type

func NewChunkDataPacks

func NewChunkDataPacks(t mockConstructorTestingTNewChunkDataPacks) *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.

func (*ChunkDataPacks) BatchRemove

func (_m *ChunkDataPacks) BatchRemove(chunkID flow.Identifier, batch storage.BatchStorage) error

BatchRemove provides a mock function with given fields: chunkID, batch

func (*ChunkDataPacks) BatchStore

func (_m *ChunkDataPacks) BatchStore(c *flow.ChunkDataPack, batch storage.BatchStorage) error

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

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

func (_m *ChunkDataPacks) Store(c *flow.ChunkDataPack) error

Store provides a mock function with given fields: c

type ChunksQueue

type ChunksQueue struct {
	mock.Mock
}

ChunksQueue is an autogenerated mock type for the ChunksQueue type

func NewChunksQueue

func NewChunksQueue(t mockConstructorTestingTNewChunksQueue) *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.

func (*ChunksQueue) AtIndex

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

AtIndex provides a mock function with given fields: index

func (*ChunksQueue) LatestIndex

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

LatestIndex provides a mock function with given fields:

func (*ChunksQueue) StoreChunkLocator

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

StoreChunkLocator provides a mock function with given fields: locator

type Cleaner

type Cleaner struct {
	mock.Mock
}

Cleaner is an autogenerated mock type for the Cleaner type

func NewCleaner

func NewCleaner(t mockConstructorTestingTNewCleaner) *Cleaner

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

func (*Cleaner) RunGC

func (_m *Cleaner) RunGC()

RunGC provides a mock function with given fields:

type ClusterBlocks

type ClusterBlocks struct {
	mock.Mock
}

ClusterBlocks is an autogenerated mock type for the ClusterBlocks type

func NewClusterBlocks

func NewClusterBlocks(t mockConstructorTestingTNewClusterBlocks) *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.

func (*ClusterBlocks) ByHeight

func (_m *ClusterBlocks) ByHeight(height uint64) (*cluster.Block, error)

ByHeight provides a mock function with given fields: height

func (*ClusterBlocks) ByID

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

ByID provides a mock function with given fields: blockID

func (*ClusterBlocks) Store

func (_m *ClusterBlocks) Store(block *cluster.Block) error

Store provides a mock function with given fields: block

type ClusterPayloads

type ClusterPayloads struct {
	mock.Mock
}

ClusterPayloads is an autogenerated mock type for the ClusterPayloads type

func NewClusterPayloads

func NewClusterPayloads(t mockConstructorTestingTNewClusterPayloads) *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.

func (*ClusterPayloads) ByBlockID

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

ByBlockID provides a mock function with given fields: blockID

func (*ClusterPayloads) Store

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

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

type Collections

type Collections struct {
	mock.Mock
}

Collections is an autogenerated mock type for the Collections type

func NewCollections

func NewCollections(t mockConstructorTestingTNewCollections) *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.

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

Store provides a mock function with given fields: collection

func (*Collections) StoreLight

func (_m *Collections) StoreLight(collection *flow.LightCollection) error

StoreLight provides a mock function with given fields: collection

func (*Collections) StoreLightAndIndexByTransaction

func (_m *Collections) StoreLightAndIndexByTransaction(collection *flow.LightCollection) error

StoreLightAndIndexByTransaction provides a mock function with given fields: collection

type Commits

type Commits struct {
	mock.Mock
}

Commits is an autogenerated mock type for the Commits type

func NewCommits

func NewCommits(t mockConstructorTestingTNewCommits) *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.

func (*Commits) BatchRemoveByBlockID

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

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

func (*Commits) BatchStore

func (_m *Commits) BatchStore(blockID flow.Identifier, commit flow.StateCommitment, batch storage.BatchStorage) error

BatchStore provides a mock function with given fields: 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

func (*Commits) Store

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

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

type ComputationResultUploadStatus

type ComputationResultUploadStatus struct {
	mock.Mock
}

ComputationResultUploadStatus is an autogenerated mock type for the ComputationResultUploadStatus type

func NewComputationResultUploadStatus

func NewComputationResultUploadStatus(t mockConstructorTestingTNewComputationResultUploadStatus) *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.

func (*ComputationResultUploadStatus) ByID

ByID provides a mock function with given fields: blockID

func (*ComputationResultUploadStatus) GetIDsByUploadStatus

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

GetIDsByUploadStatus provides a mock function with given fields: targetUploadStatus

func (*ComputationResultUploadStatus) Remove

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

Remove provides a mock function with given fields: blockID

func (*ComputationResultUploadStatus) Upsert

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

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

type ConsumerProgress

type ConsumerProgress struct {
	mock.Mock
}

ConsumerProgress is an autogenerated mock type for the ConsumerProgress type

func NewConsumerProgress

func NewConsumerProgress(t mockConstructorTestingTNewConsumerProgress) *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.

func (*ConsumerProgress) InitProcessedIndex

func (_m *ConsumerProgress) InitProcessedIndex(defaultIndex uint64) error

InitProcessedIndex provides a mock function with given fields: defaultIndex

func (*ConsumerProgress) ProcessedIndex

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

ProcessedIndex provides a mock function with given fields:

func (*ConsumerProgress) SetProcessedIndex

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

SetProcessedIndex provides a mock function with given fields: processed

type DKGState

type DKGState struct {
	mock.Mock
}

DKGState is an autogenerated mock type for the DKGState type

func NewDKGState

func NewDKGState(t mockConstructorTestingTNewDKGState) *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.

func (*DKGState) GetDKGEndState

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

GetDKGEndState provides a mock function with given fields: epochCounter

func (*DKGState) GetDKGStarted

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

GetDKGStarted provides a mock function with given fields: epochCounter

func (*DKGState) InsertMyBeaconPrivateKey

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

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

func (*DKGState) RetrieveMyBeaconPrivateKey

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

RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

func (*DKGState) SetDKGEndState

func (_m *DKGState) SetDKGEndState(epochCounter uint64, endState flow.DKGEndState) error

SetDKGEndState provides a mock function with given fields: epochCounter, endState

func (*DKGState) SetDKGStarted

func (_m *DKGState) SetDKGStarted(epochCounter uint64) error

SetDKGStarted 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

func NewEpochCommits(t mockConstructorTestingTNewEpochCommits) *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.

func (*EpochCommits) ByID

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

ByID provides a mock function with given fields: _a0

func (*EpochCommits) StoreTx

func (_m *EpochCommits) StoreTx(commit *flow.EpochCommit) func(*transaction.Tx) error

StoreTx provides a mock function with given fields: commit

type EpochSetups

type EpochSetups struct {
	mock.Mock
}

EpochSetups is an autogenerated mock type for the EpochSetups type

func NewEpochSetups

func NewEpochSetups(t mockConstructorTestingTNewEpochSetups) *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.

func (*EpochSetups) ByID

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

ByID provides a mock function with given fields: _a0

func (*EpochSetups) StoreTx

func (_m *EpochSetups) StoreTx(_a0 *flow.EpochSetup) func(*transaction.Tx) error

StoreTx provides a mock function with given fields: _a0

type EpochStates

type EpochStates struct {
	mock.Mock
}

EpochStates is an autogenerated mock type for the EpochStates type

func (*EpochStates) ByBlockID

func (_m *EpochStates) ByBlockID(_a0 flow.Identifier) (*flow.EpochStatus, error)

ByBlockID provides a mock function with given fields: _a0

func (*EpochStates) StoreTx

func (_m *EpochStates) StoreTx(blockID flow.Identifier, state *flow.EpochStatus) func(*badger.Txn) error

StoreTx provides a mock function with given fields: blockID, state

type EpochStatuses

type EpochStatuses struct {
	mock.Mock
}

EpochStatuses is an autogenerated mock type for the EpochStatuses type

func NewEpochStatuses

func NewEpochStatuses(t mockConstructorTestingTNewEpochStatuses) *EpochStatuses

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

func (*EpochStatuses) ByBlockID

func (_m *EpochStatuses) ByBlockID(_a0 flow.Identifier) (*flow.EpochStatus, error)

ByBlockID provides a mock function with given fields: _a0

func (*EpochStatuses) StoreTx

func (_m *EpochStatuses) StoreTx(blockID flow.Identifier, state *flow.EpochStatus) func(*transaction.Tx) error

StoreTx provides a mock function with given fields: blockID, state

type Events

type Events struct {
	mock.Mock
}

Events is an autogenerated mock type for the Events type

func NewEvents

func NewEvents(t mockConstructorTestingTNewEvents) *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.

func (*Events) BatchRemoveByBlockID

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

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

func (*Events) BatchStore

func (_m *Events) BatchStore(blockID flow.Identifier, events []flow.EventsList, batch storage.BatchStorage) 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

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

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

type ExecutionReceipts

type ExecutionReceipts struct {
	mock.Mock
}

ExecutionReceipts is an autogenerated mock type for the ExecutionReceipts type

func NewExecutionReceipts

func NewExecutionReceipts(t mockConstructorTestingTNewExecutionReceipts) *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.

func (*ExecutionReceipts) BatchStore

func (_m *ExecutionReceipts) BatchStore(receipt *flow.ExecutionReceipt, batch storage.BatchStorage) 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

func NewExecutionResults(t mockConstructorTestingTNewExecutionResults) *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.

func (*ExecutionResults) BatchIndex

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

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

func (*ExecutionResults) BatchRemoveIndexByBlockID

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

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

func (*ExecutionResults) BatchStore

func (_m *ExecutionResults) BatchStore(result *flow.ExecutionResult, batch storage.BatchStorage) 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) ByIDTx

func (_m *ExecutionResults) ByIDTx(resultID flow.Identifier) func(*transaction.Tx) (*flow.ExecutionResult, error)

ByIDTx provides a mock function with given fields: resultID

func (*ExecutionResults) ForceIndex

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 Guarantees

type Guarantees struct {
	mock.Mock
}

Guarantees is an autogenerated mock type for the Guarantees type

func NewGuarantees

func NewGuarantees(t mockConstructorTestingTNewGuarantees) *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.

func (*Guarantees) ByCollectionID

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

ByCollectionID provides a mock function with given fields: collID

func (*Guarantees) Store

func (_m *Guarantees) Store(guarantee *flow.CollectionGuarantee) error

Store provides a mock function with given fields: guarantee

type Headers

type Headers struct {
	mock.Mock
}

Headers is an autogenerated mock type for the Headers type

func NewHeaders

func NewHeaders(t mockConstructorTestingTNewHeaders) *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.

func (*Headers) BatchIndexByChunkID

func (_m *Headers) BatchIndexByChunkID(headerID flow.Identifier, chunkID flow.Identifier, batch storage.BatchStorage) error

BatchIndexByChunkID provides a mock function with given fields: headerID, chunkID, batch

func (*Headers) BatchRemoveChunkBlockIndexByChunkID

func (_m *Headers) BatchRemoveChunkBlockIndexByChunkID(chunkID flow.Identifier, batch storage.BatchStorage) error

BatchRemoveChunkBlockIndexByChunkID provides a mock function with given fields: chunkID, batch

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

func (_m *Headers) IDByChunkID(chunkID flow.Identifier) (flow.Identifier, error)

IDByChunkID provides a mock function with given fields: chunkID

func (*Headers) IndexByChunkID

func (_m *Headers) IndexByChunkID(headerID flow.Identifier, chunkID flow.Identifier) error

IndexByChunkID provides a mock function with given fields: headerID, chunkID

func (*Headers) Store

func (_m *Headers) Store(header *flow.Header) error

Store provides a mock function with given fields: header

type Index

type Index struct {
	mock.Mock
}

Index is an autogenerated mock type for the Index type

func NewIndex

func NewIndex(t mockConstructorTestingTNewIndex) *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.

func (*Index) ByBlockID

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

ByBlockID provides a mock function with given fields: blockID

func (*Index) Store

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

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

type Job

type Job struct {
	mock.Mock
}

Job is an autogenerated mock type for the Job type

func (*Job) ID

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

ID provides a mock function with given fields:

type Ledger

type Ledger struct {
	mock.Mock
}

Ledger is an autogenerated mock type for the Ledger type

func NewLedger

func NewLedger(t mockConstructorTestingTNewLedger) *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.

func (*Ledger) Done

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

Done provides a mock function with given fields:

func (*Ledger) EmptyStateCommitment

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

EmptyStateCommitment provides a mock function with given fields:

func (*Ledger) GetRegisters

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

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

func (*Ledger) GetRegistersWithProof

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

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

func (*Ledger) Ready

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

Ready provides a mock function with given fields:

func (*Ledger) UpdateRegisters

func (_m *Ledger) UpdateRegisters(registerIDs []flow.RegisterID, values [][]byte, 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 [][]byte, stateCommitment flow.StateCommitment) (flow.StateCommitment, [][]byte, 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

func NewLedgerVerifier(t mockConstructorTestingTNewLedgerVerifier) *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.

func (*LedgerVerifier) VerifyRegistersProof

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

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

type MyExecutionReceipts

type MyExecutionReceipts struct {
	mock.Mock
}

MyExecutionReceipts is an autogenerated mock type for the MyExecutionReceipts type

func NewMyExecutionReceipts

func NewMyExecutionReceipts(t mockConstructorTestingTNewMyExecutionReceipts) *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.

func (*MyExecutionReceipts) BatchRemoveIndexByBlockID

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

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

func (*MyExecutionReceipts) BatchStoreMyReceipt

func (_m *MyExecutionReceipts) BatchStoreMyReceipt(receipt *flow.ExecutionReceipt, batch storage.BatchStorage) error

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

func (*MyExecutionReceipts) MyReceipt

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

MyReceipt provides a mock function with given fields: blockID

func (*MyExecutionReceipts) StoreMyReceipt

func (_m *MyExecutionReceipts) StoreMyReceipt(receipt *flow.ExecutionReceipt) error

StoreMyReceipt provides a mock function with given fields: receipt

type Payloads

type Payloads struct {
	mock.Mock
}

Payloads is an autogenerated mock type for the Payloads type

func NewPayloads

func NewPayloads(t mockConstructorTestingTNewPayloads) *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.

func (*Payloads) ByBlockID

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

ByBlockID provides a mock function with given fields: blockID

func (*Payloads) Store

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

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

type ResultApprovals

type ResultApprovals struct {
	mock.Mock
}

ResultApprovals is an autogenerated mock type for the ResultApprovals type

func NewResultApprovals

func NewResultApprovals(t mockConstructorTestingTNewResultApprovals) *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.

func (*ResultApprovals) ByChunk

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

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

ByID provides a mock function with given fields: approvalID

func (*ResultApprovals) Index

func (_m *ResultApprovals) Index(resultID flow.Identifier, chunkIndex uint64, approvalID flow.Identifier) error

Index provides a mock function with given fields: resultID, chunkIndex, approvalID

func (*ResultApprovals) Store

func (_m *ResultApprovals) Store(result *flow.ResultApproval) error

Store provides a mock function with given fields: result

type SafeBeaconKeys

type SafeBeaconKeys struct {
	mock.Mock
}

SafeBeaconKeys is an autogenerated mock type for the SafeBeaconKeys type

func NewSafeBeaconKeys

func NewSafeBeaconKeys(t mockConstructorTestingTNewSafeBeaconKeys) *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.

func (*SafeBeaconKeys) RetrieveMyBeaconPrivateKey

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

RetrieveMyBeaconPrivateKey provides a mock function with given fields: epochCounter

type Seals

type Seals struct {
	mock.Mock
}

Seals is an autogenerated mock type for the Seals type

func NewSeals

func NewSeals(t mockConstructorTestingTNewSeals) *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.

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

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

FinalizedSealForBlock provides a mock function with given fields: blockID

func (*Seals) HighestInFork

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 ServiceEvents

type ServiceEvents struct {
	mock.Mock
}

ServiceEvents is an autogenerated mock type for the ServiceEvents type

func NewServiceEvents

func NewServiceEvents(t mockConstructorTestingTNewServiceEvents) *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.

func (*ServiceEvents) BatchRemoveByBlockID

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

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

func (*ServiceEvents) BatchStore

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

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

func (*ServiceEvents) ByBlockID

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

ByBlockID provides a mock function with given fields: blockID

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func (*Storage) GetRegisters

func (_m *Storage) GetRegisters(registerIDs [][]byte, stateCommitment []byte) ([][]byte, error)

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

func (*Storage) GetRegistersWithProof

func (_m *Storage) GetRegistersWithProof(registerIDs [][]byte, stateCommitment []byte) ([][]byte, [][]byte, error)

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

func (*Storage) LatestStateCommitment

func (_m *Storage) LatestStateCommitment() []byte

LatestStateCommitment provides a mock function with given fields:

func (*Storage) UpdateRegisters

func (_m *Storage) UpdateRegisters(registerIDs [][]byte, values [][]byte) ([]byte, error)

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

func (*Storage) UpdateRegistersWithProof

func (_m *Storage) UpdateRegistersWithProof(registerIDs [][]byte, values [][]byte) ([]byte, [][]byte, error)

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

type Transaction

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction

func NewTransaction(t mockConstructorTestingTNewTransaction) *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.

func (*Transaction) Set

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

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

type TransactionResults

type TransactionResults struct {
	mock.Mock
}

TransactionResults is an autogenerated mock type for the TransactionResults type

func NewTransactionResults

func NewTransactionResults(t mockConstructorTestingTNewTransactionResults) *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.

func (*TransactionResults) BatchStore

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

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

func (*TransactionResults) ByBlockID

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

func (_m *TransactionResults) 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

func NewTransactions(t mockConstructorTestingTNewTransactions) *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.

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 Verifier

type Verifier struct {
	mock.Mock
}

Verifier is an autogenerated mock type for the Verifier type

func (*Verifier) VerifyRegistersProof

func (_m *Verifier) VerifyRegistersProof(registerIDs [][]byte, stateCommitment []byte, values [][]byte, proof [][]byte) (bool, error)

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

type Views

type Views struct {
	mock.Mock
}

Views is an autogenerated mock type for the Views type

func (*Views) Retrieve

func (_m *Views) Retrieve(action uint8) (uint64, error)

Retrieve provides a mock function with given fields: action

func (*Views) Store

func (_m *Views) Store(action uint8, view uint64) error

Store provides a mock function with given fields: action, view

Jump to

Keyboard shortcuts

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