mocks

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

type MockStore struct {
	// contains filtered or unexported fields
}

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) BlockByHeight

func (m *MockStore) BlockByHeight(ctx context.Context, height uint64) (*flow.Block, error)

BlockByHeight mocks base method.

func (*MockStore) BlockByID

func (m *MockStore) BlockByID(ctx context.Context, blockID flow.Identifier) (*flow.Block, error)

BlockByID mocks base method.

func (*MockStore) BlockIDByScheduledTransactionID added in v1.11.0

func (m *MockStore) BlockIDByScheduledTransactionID(ctx context.Context, scheduledTxID uint64) (flow.Identifier, error)

BlockIDByScheduledTransactionID mocks base method.

func (*MockStore) CollectionByID

func (m *MockStore) CollectionByID(ctx context.Context, collectionID flow.Identifier) (flow.LightCollection, error)

CollectionByID mocks base method.

func (*MockStore) CommitBlock

func (m *MockStore) CommitBlock(ctx context.Context, block flow.Block, collections []*flow.LightCollection, transactions map[flow.Identifier]*flow.TransactionBody, transactionResults map[flow.Identifier]*types.StorableTransactionResult, systemTransactions []flow.Identifier, systemTransactionBodies map[flow.Identifier]*flow.TransactionBody, systemTransactionResults map[flow.Identifier]*types.StorableTransactionResult, executionSnapshot *snapshot.ExecutionSnapshot, events []flow.Event, scheduledTransactionIDs map[uint64]flow.Identifier) error

CommitBlock mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStore) EventsByHeight

func (m *MockStore) EventsByHeight(ctx context.Context, blockHeight uint64, eventType string) ([]flow.Event, error)

EventsByHeight mocks base method.

func (*MockStore) FullCollectionByID added in v0.59.1

func (m *MockStore) FullCollectionByID(ctx context.Context, collectionID flow.Identifier) (flow.Collection, error)

FullCollectionByID mocks base method.

func (*MockStore) IndexScheduledTransactionBlockID added in v1.16.0

func (m *MockStore) IndexScheduledTransactionBlockID(ctx context.Context, txID, blockID flow.Identifier) error

IndexScheduledTransactionBlockID mocks base method.

func (*MockStore) IndexScheduledTransactionID added in v1.11.0

func (m *MockStore) IndexScheduledTransactionID(ctx context.Context, scheduledTxID uint64, blockID flow.Identifier) error

IndexScheduledTransactionID mocks base method.

func (*MockStore) LatestBlock

func (m *MockStore) LatestBlock(ctx context.Context) (flow.Block, error)

LatestBlock mocks base method.

func (*MockStore) LatestBlockHeight added in v0.40.0

func (m *MockStore) LatestBlockHeight(ctx context.Context) (uint64, error)

LatestBlockHeight mocks base method.

func (*MockStore) LedgerByHeight added in v0.46.0

func (m *MockStore) LedgerByHeight(ctx context.Context, blockHeight uint64) (snapshot.StorageSnapshot, error)

LedgerByHeight mocks base method.

func (*MockStore) ScheduledTransactionBlockIDByTxID added in v1.16.0

func (m *MockStore) ScheduledTransactionBlockIDByTxID(ctx context.Context, txID flow.Identifier) (flow.Identifier, error)

ScheduledTransactionBlockIDByTxID mocks base method.

func (*MockStore) Start added in v0.46.0

func (m *MockStore) Start() error

Start mocks base method.

func (*MockStore) Stop added in v0.46.0

func (m *MockStore) Stop()

Stop mocks base method.

func (*MockStore) StoreBlock

func (m *MockStore) StoreBlock(ctx context.Context, block *flow.Block) error

StoreBlock mocks base method.

func (*MockStore) StoreSystemTransactions added in v1.11.0

func (m *MockStore) StoreSystemTransactions(ctx context.Context, systemTransactions *storage.SystemTransactions) error

StoreSystemTransactions mocks base method.

func (*MockStore) SystemTransactionResultByID added in v1.12.0

func (m *MockStore) SystemTransactionResultByID(ctx context.Context, blockID, transactionID flow.Identifier) (types.StorableTransactionResult, error)

SystemTransactionResultByID mocks base method.

func (*MockStore) SystemTransactionsForBlockID added in v1.11.0

func (m *MockStore) SystemTransactionsForBlockID(ctx context.Context, blockID flow.Identifier) (*storage.SystemTransactions, error)

SystemTransactionsForBlockID mocks base method.

func (*MockStore) TransactionByID

func (m *MockStore) TransactionByID(ctx context.Context, transactionID flow.Identifier) (flow.TransactionBody, error)

TransactionByID mocks base method.

func (*MockStore) TransactionResultByID

func (m *MockStore) TransactionResultByID(ctx context.Context, transactionID flow.Identifier) (types.StorableTransactionResult, error)

TransactionResultByID mocks base method.

type MockStoreMockRecorder

type MockStoreMockRecorder struct {
	// contains filtered or unexported fields
}

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) BlockByHeight

func (mr *MockStoreMockRecorder) BlockByHeight(ctx, height any) *gomock.Call

BlockByHeight indicates an expected call of BlockByHeight.

func (*MockStoreMockRecorder) BlockByID

func (mr *MockStoreMockRecorder) BlockByID(ctx, blockID any) *gomock.Call

BlockByID indicates an expected call of BlockByID.

func (*MockStoreMockRecorder) BlockIDByScheduledTransactionID added in v1.11.0

func (mr *MockStoreMockRecorder) BlockIDByScheduledTransactionID(ctx, scheduledTxID any) *gomock.Call

BlockIDByScheduledTransactionID indicates an expected call of BlockIDByScheduledTransactionID.

func (*MockStoreMockRecorder) CollectionByID

func (mr *MockStoreMockRecorder) CollectionByID(ctx, collectionID any) *gomock.Call

CollectionByID indicates an expected call of CollectionByID.

func (*MockStoreMockRecorder) CommitBlock

func (mr *MockStoreMockRecorder) CommitBlock(ctx, block, collections, transactions, transactionResults, systemTransactions, systemTransactionBodies, systemTransactionResults, executionSnapshot, events, scheduledTransactionIDs any) *gomock.Call

CommitBlock indicates an expected call of CommitBlock.

func (*MockStoreMockRecorder) EventsByHeight

func (mr *MockStoreMockRecorder) EventsByHeight(ctx, blockHeight, eventType any) *gomock.Call

EventsByHeight indicates an expected call of EventsByHeight.

func (*MockStoreMockRecorder) FullCollectionByID added in v0.59.1

func (mr *MockStoreMockRecorder) FullCollectionByID(ctx, collectionID any) *gomock.Call

FullCollectionByID indicates an expected call of FullCollectionByID.

func (*MockStoreMockRecorder) IndexScheduledTransactionBlockID added in v1.16.0

func (mr *MockStoreMockRecorder) IndexScheduledTransactionBlockID(ctx, txID, blockID any) *gomock.Call

IndexScheduledTransactionBlockID indicates an expected call of IndexScheduledTransactionBlockID.

func (*MockStoreMockRecorder) IndexScheduledTransactionID added in v1.11.0

func (mr *MockStoreMockRecorder) IndexScheduledTransactionID(ctx, scheduledTxID, blockID any) *gomock.Call

IndexScheduledTransactionID indicates an expected call of IndexScheduledTransactionID.

func (*MockStoreMockRecorder) LatestBlock

func (mr *MockStoreMockRecorder) LatestBlock(ctx any) *gomock.Call

LatestBlock indicates an expected call of LatestBlock.

func (*MockStoreMockRecorder) LatestBlockHeight added in v0.40.0

func (mr *MockStoreMockRecorder) LatestBlockHeight(ctx any) *gomock.Call

LatestBlockHeight indicates an expected call of LatestBlockHeight.

func (*MockStoreMockRecorder) LedgerByHeight added in v0.46.0

func (mr *MockStoreMockRecorder) LedgerByHeight(ctx, blockHeight any) *gomock.Call

LedgerByHeight indicates an expected call of LedgerByHeight.

func (*MockStoreMockRecorder) ScheduledTransactionBlockIDByTxID added in v1.16.0

func (mr *MockStoreMockRecorder) ScheduledTransactionBlockIDByTxID(ctx, txID any) *gomock.Call

ScheduledTransactionBlockIDByTxID indicates an expected call of ScheduledTransactionBlockIDByTxID.

func (*MockStoreMockRecorder) Start added in v0.46.0

func (mr *MockStoreMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockStoreMockRecorder) Stop added in v0.46.0

func (mr *MockStoreMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

func (*MockStoreMockRecorder) StoreBlock

func (mr *MockStoreMockRecorder) StoreBlock(ctx, block any) *gomock.Call

StoreBlock indicates an expected call of StoreBlock.

func (*MockStoreMockRecorder) StoreSystemTransactions added in v1.11.0

func (mr *MockStoreMockRecorder) StoreSystemTransactions(ctx, systemTransactions any) *gomock.Call

StoreSystemTransactions indicates an expected call of StoreSystemTransactions.

func (*MockStoreMockRecorder) SystemTransactionResultByID added in v1.12.0

func (mr *MockStoreMockRecorder) SystemTransactionResultByID(ctx, blockID, transactionID any) *gomock.Call

SystemTransactionResultByID indicates an expected call of SystemTransactionResultByID.

func (*MockStoreMockRecorder) SystemTransactionsForBlockID added in v1.11.0

func (mr *MockStoreMockRecorder) SystemTransactionsForBlockID(ctx, blockID any) *gomock.Call

SystemTransactionsForBlockID indicates an expected call of SystemTransactionsForBlockID.

func (*MockStoreMockRecorder) TransactionByID

func (mr *MockStoreMockRecorder) TransactionByID(ctx, transactionID any) *gomock.Call

TransactionByID indicates an expected call of TransactionByID.

func (*MockStoreMockRecorder) TransactionResultByID

func (mr *MockStoreMockRecorder) TransactionResultByID(ctx, transactionID any) *gomock.Call

TransactionResultByID indicates an expected call of TransactionResultByID.

Jump to

Keyboard shortcuts

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