Documentation ¶
Index ¶
- func ExecutionDataFixture(blockID flow.Identifier) *state_synchronization.ExecutionData
- func MockBlobService(bs blockstore.Blockstore) *mocknetwork.BlobService
- func MockBlockHeaderStorage(opts ...BlockHeaderMockOptions) *storagemock.Headers
- func MockProtocolState(opts ...StateMockOptions) *statemock.State
- func MockProtocolStateSnapshot(opts ...SnapshotMockOptions) *statemock.Snapshot
- func MockResultsStorage(opts ...ResultsMockOptions) *storagemock.ExecutionResults
- func MockSealsStorage(opts ...SealsMockOptions) *storagemock.Seals
- func RemoveExpectedCall(method string, expectedCalls []*mock.Call) []*mock.Call
- func WithCollections(collections []*flow.Collection) func(*state_synchronization.ExecutionData)
- func WithEvents(events []flow.EventsList) func(*state_synchronization.ExecutionData)
- func WithTrieUpdates(updates []*ledger.TrieUpdate) func(*state_synchronization.ExecutionData)
- type BlockHeaderMockOptions
- type ResultsMockOptions
- type SealsMockOptions
- type SnapshotMockOptions
- type StateMockOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecutionDataFixture ¶
func ExecutionDataFixture(blockID flow.Identifier) *state_synchronization.ExecutionData
func MockBlobService ¶
func MockBlobService(bs blockstore.Blockstore) *mocknetwork.BlobService
func MockBlockHeaderStorage ¶
func MockBlockHeaderStorage(opts ...BlockHeaderMockOptions) *storagemock.Headers
func MockProtocolState ¶
func MockProtocolState(opts ...StateMockOptions) *statemock.State
func MockProtocolStateSnapshot ¶
func MockProtocolStateSnapshot(opts ...SnapshotMockOptions) *statemock.Snapshot
func MockResultsStorage ¶
func MockResultsStorage(opts ...ResultsMockOptions) *storagemock.ExecutionResults
func MockSealsStorage ¶ added in v0.26.8
func MockSealsStorage(opts ...SealsMockOptions) *storagemock.Seals
func RemoveExpectedCall ¶
func WithCollections ¶
func WithCollections(collections []*flow.Collection) func(*state_synchronization.ExecutionData)
func WithEvents ¶
func WithEvents(events []flow.EventsList) func(*state_synchronization.ExecutionData)
func WithTrieUpdates ¶
func WithTrieUpdates(updates []*ledger.TrieUpdate) func(*state_synchronization.ExecutionData)
Types ¶
type BlockHeaderMockOptions ¶
type BlockHeaderMockOptions func(*storagemock.Headers)
func WithByHeight ¶
func WithByHeight(blocksByHeight map[uint64]*flow.Block) BlockHeaderMockOptions
func WithByID ¶
func WithByID(blocksByID map[flow.Identifier]*flow.Block) BlockHeaderMockOptions
type ResultsMockOptions ¶
type ResultsMockOptions func(*storagemock.ExecutionResults)
func WithByBlockID ¶
func WithByBlockID(resultsByID map[flow.Identifier]*flow.ExecutionResult) ResultsMockOptions
func WithResultByID ¶ added in v0.26.8
func WithResultByID(resultsByID map[flow.Identifier]*flow.ExecutionResult) ResultsMockOptions
type SealsMockOptions ¶ added in v0.26.8
type SealsMockOptions func(*storagemock.Seals)
func WithSealsByBlockID ¶ added in v0.26.8
func WithSealsByBlockID(sealsByBlockID map[flow.Identifier]*flow.Seal) SealsMockOptions
type SnapshotMockOptions ¶
func WithHead ¶
func WithHead(head *flow.Header) SnapshotMockOptions
func WithSeal ¶ added in v0.26.8
func WithSeal(seal *flow.Seal) SnapshotMockOptions
type StateMockOptions ¶
func WithSealedSnapshot ¶ added in v0.26.8
func WithSealedSnapshot(snapshot *statemock.Snapshot) StateMockOptions
Click to show internal directories.
Click to hide internal directories.