Documentation
¶
Index ¶
- type Assignments
- func (_m *Assignments) Add(_a0 flow.Identifier, _a1 *chunks.Assignment) bool
- func (_m *Assignments) Adjust(key flow.Identifier, f func(*chunks.Assignment) *chunks.Assignment) (*chunks.Assignment, bool)
- func (_m *Assignments) All() map[flow.Identifier]*chunks.Assignment
- func (_m *Assignments) Clear()
- func (_m *Assignments) Get(_a0 flow.Identifier) (*chunks.Assignment, bool)
- func (_m *Assignments) Has(_a0 flow.Identifier) bool
- func (_m *Assignments) Remove(_a0 flow.Identifier) bool
- func (_m *Assignments) Size() uint
- func (_m *Assignments) Values() []*chunks.Assignment
- type BackData
- func (_m *BackData[K, V]) Add(key K, value V) bool
- func (_m *BackData[K, V]) All() map[K]V
- func (_m *BackData[K, V]) Clear()
- func (_m *BackData[K, V]) Get(key K) (V, bool)
- func (_m *BackData[K, V]) Has(key K) bool
- func (_m *BackData[K, V]) Keys() []K
- func (_m *BackData[K, V]) Remove(key K) (V, bool)
- func (_m *BackData[K, V]) Size() uint
- func (_m *BackData[K, V]) Values() []V
- type BlockFilter
- type ChunkDataPackMessageStore
- type ChunkRequestHistoryUpdaterFunc
- type ChunkRequests
- func (_m *ChunkRequests) Add(request *verification.ChunkDataPackRequest) bool
- func (_m *ChunkRequests) All() verification.ChunkDataPackRequestInfoList
- func (_m *ChunkRequests) IncrementAttempt(chunkID flow.Identifier) bool
- func (_m *ChunkRequests) PopAll(chunkID flow.Identifier) (chunks.LocatorMap, bool)
- func (_m *ChunkRequests) Remove(chunkID flow.Identifier) bool
- func (_m *ChunkRequests) RequestHistory(chunkID flow.Identifier) (uint64, time.Time, time.Duration, bool)
- func (_m *ChunkRequests) Size() uint
- func (_m *ChunkRequests) UpdateRequestHistory(chunkID flow.Identifier, updater mempool.ChunkRequestHistoryUpdaterFunc) (uint64, time.Time, time.Duration, bool)
- type ChunkStatuses
- func (_m *ChunkStatuses) Add(_a0 flow.Identifier, _a1 *verification.ChunkStatus) bool
- func (_m *ChunkStatuses) Adjust(key flow.Identifier, ...) (*verification.ChunkStatus, bool)
- func (_m *ChunkStatuses) All() map[flow.Identifier]*verification.ChunkStatus
- func (_m *ChunkStatuses) Clear()
- func (_m *ChunkStatuses) Get(_a0 flow.Identifier) (*verification.ChunkStatus, bool)
- func (_m *ChunkStatuses) Has(_a0 flow.Identifier) bool
- func (_m *ChunkStatuses) Remove(_a0 flow.Identifier) bool
- func (_m *ChunkStatuses) Size() uint
- func (_m *ChunkStatuses) Values() []*verification.ChunkStatus
- type DNSCache
- func (_m *DNSCache) GetDomainIp(_a0 string) (*mempool.IpRecord, bool)
- func (_m *DNSCache) GetTxtRecord(_a0 string) (*mempool.TxtRecord, bool)
- func (_m *DNSCache) LockIPDomain(_a0 string) (bool, error)
- func (_m *DNSCache) LockTxtRecord(_a0 string) (bool, error)
- func (_m *DNSCache) PutIpDomain(_a0 string, _a1 []net.IPAddr, _a2 int64) bool
- func (_m *DNSCache) PutTxtRecord(_a0 string, _a1 []string, _a2 int64) bool
- func (_m *DNSCache) RemoveIp(_a0 string) bool
- func (_m *DNSCache) RemoveTxt(_a0 string) bool
- func (_m *DNSCache) Size() (uint, uint)
- func (_m *DNSCache) UpdateIPDomain(_a0 string, _a1 []net.IPAddr, _a2 int64) error
- func (_m *DNSCache) UpdateTxtRecord(_a0 string, _a1 []string, _a2 int64) error
- type ExecutionData
- func (_m *ExecutionData) Add(_a0 flow.Identifier, _a1 *execution_data.BlockExecutionDataEntity) bool
- func (_m *ExecutionData) Adjust(key flow.Identifier, ...) (*execution_data.BlockExecutionDataEntity, bool)
- func (_m *ExecutionData) All() map[flow.Identifier]*execution_data.BlockExecutionDataEntity
- func (_m *ExecutionData) Clear()
- func (_m *ExecutionData) Get(_a0 flow.Identifier) (*execution_data.BlockExecutionDataEntity, bool)
- func (_m *ExecutionData) Has(_a0 flow.Identifier) bool
- func (_m *ExecutionData) Remove(_a0 flow.Identifier) bool
- func (_m *ExecutionData) Size() uint
- func (_m *ExecutionData) Values() []*execution_data.BlockExecutionDataEntity
- type ExecutionTree
- func (_m *ExecutionTree) AddReceipt(receipt *flow.ExecutionReceipt, block *flow.Header) (bool, error)
- func (_m *ExecutionTree) AddResult(result *flow.ExecutionResult, block *flow.Header) error
- func (_m *ExecutionTree) HasReceipt(receipt *flow.ExecutionReceipt) bool
- func (_m *ExecutionTree) LowestHeight() uint64
- func (_m *ExecutionTree) PruneUpToHeight(newLowestHeight uint64) error
- func (_m *ExecutionTree) ReachableReceipts(resultID flow.Identifier, blockFilter mempool.BlockFilter, ...) ([]*flow.ExecutionReceipt, error)
- func (_m *ExecutionTree) Size() uint
- type Guarantees
- func (_m *Guarantees) Add(_a0 flow.Identifier, _a1 *flow.CollectionGuarantee) bool
- func (_m *Guarantees) Adjust(key flow.Identifier, ...) (*flow.CollectionGuarantee, bool)
- func (_m *Guarantees) All() map[flow.Identifier]*flow.CollectionGuarantee
- func (_m *Guarantees) Clear()
- func (_m *Guarantees) Get(_a0 flow.Identifier) (*flow.CollectionGuarantee, bool)
- func (_m *Guarantees) Has(_a0 flow.Identifier) bool
- func (_m *Guarantees) Remove(_a0 flow.Identifier) bool
- func (_m *Guarantees) Size() uint
- func (_m *Guarantees) Values() []*flow.CollectionGuarantee
- type IdentifierMap
- func (_m *IdentifierMap) Append(key flow.Identifier, id flow.Identifier)
- func (_m *IdentifierMap) Get(key flow.Identifier) (flow.IdentifierList, bool)
- func (_m *IdentifierMap) Has(key flow.Identifier) bool
- func (_m *IdentifierMap) Keys() (flow.IdentifierList, bool)
- func (_m *IdentifierMap) Remove(key flow.Identifier) bool
- func (_m *IdentifierMap) RemoveIdFromKey(key flow.Identifier, id flow.Identifier) error
- func (_m *IdentifierMap) Size() uint
- type IncorporatedResultSeals
- func (_m *IncorporatedResultSeals) Add(irSeal *flow.IncorporatedResultSeal) (bool, error)
- func (_m *IncorporatedResultSeals) All() []*flow.IncorporatedResultSeal
- func (_m *IncorporatedResultSeals) Clear()
- func (_m *IncorporatedResultSeals) Get(_a0 flow.Identifier) (*flow.IncorporatedResultSeal, bool)
- func (_m *IncorporatedResultSeals) Limit() uint
- func (_m *IncorporatedResultSeals) PruneUpToHeight(height uint64) error
- func (_m *IncorporatedResultSeals) Remove(incorporatedResultID flow.Identifier) bool
- func (_m *IncorporatedResultSeals) Size() uint
- type Mempool
- func (_m *Mempool[K, V]) Add(_a0 K, _a1 V) bool
- func (_m *Mempool[K, V]) Adjust(key K, f func(V) V) (V, bool)
- func (_m *Mempool[K, V]) All() map[K]V
- func (_m *Mempool[K, V]) Clear()
- func (_m *Mempool[K, V]) Get(_a0 K) (V, bool)
- func (_m *Mempool[K, V]) Has(_a0 K) bool
- func (_m *Mempool[K, V]) Remove(_a0 K) bool
- func (_m *Mempool[K, V]) Size() uint
- func (_m *Mempool[K, V]) Values() []V
- type MutableBackData
- func (_m *MutableBackData[K, V]) Add(key K, value V) bool
- func (_m *MutableBackData[K, V]) Adjust(key K, f func(V) V) (V, bool)
- func (_m *MutableBackData[K, V]) AdjustWithInit(key K, adjust func(V) V, init func() V) (V, bool)
- func (_m *MutableBackData[K, V]) All() map[K]V
- func (_m *MutableBackData[K, V]) Clear()
- func (_m *MutableBackData[K, V]) Get(key K) (V, bool)
- func (_m *MutableBackData[K, V]) Has(key K) bool
- func (_m *MutableBackData[K, V]) Keys() []K
- func (_m *MutableBackData[K, V]) Remove(key K) (V, bool)
- func (_m *MutableBackData[K, V]) Size() uint
- func (_m *MutableBackData[K, V]) Values() []V
- type OnEjection
- type PendingReceipts
- func (_m *PendingReceipts) Add(receipt *flow.ExecutionReceipt) bool
- func (_m *PendingReceipts) ByPreviousResultID(previousResultID flow.Identifier) []*flow.ExecutionReceipt
- func (_m *PendingReceipts) PruneUpToHeight(height uint64) error
- func (_m *PendingReceipts) Remove(receiptID flow.Identifier) bool
- type ReceiptFilter
- type TransactionTimings
- func (_m *TransactionTimings) Add(_a0 flow.Identifier, _a1 *flow.TransactionTiming) bool
- func (_m *TransactionTimings) Adjust(key flow.Identifier, f func(*flow.TransactionTiming) *flow.TransactionTiming) (*flow.TransactionTiming, bool)
- func (_m *TransactionTimings) All() map[flow.Identifier]*flow.TransactionTiming
- func (_m *TransactionTimings) Clear()
- func (_m *TransactionTimings) Get(_a0 flow.Identifier) (*flow.TransactionTiming, bool)
- func (_m *TransactionTimings) Has(_a0 flow.Identifier) bool
- func (_m *TransactionTimings) Remove(_a0 flow.Identifier) bool
- func (_m *TransactionTimings) Size() uint
- func (_m *TransactionTimings) Values() []*flow.TransactionTiming
- type Transactions
- func (_m *Transactions) Add(_a0 flow.Identifier, _a1 *flow.TransactionBody) bool
- func (_m *Transactions) Adjust(key flow.Identifier, f func(*flow.TransactionBody) *flow.TransactionBody) (*flow.TransactionBody, bool)
- func (_m *Transactions) All() map[flow.Identifier]*flow.TransactionBody
- func (_m *Transactions) ByPayer(payer flow.Address) []*flow.TransactionBody
- func (_m *Transactions) Clear()
- func (_m *Transactions) Get(_a0 flow.Identifier) (*flow.TransactionBody, bool)
- func (_m *Transactions) Has(_a0 flow.Identifier) bool
- func (_m *Transactions) Remove(_a0 flow.Identifier) bool
- func (_m *Transactions) Size() uint
- func (_m *Transactions) Values() []*flow.TransactionBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assignments ¶
Assignments is an autogenerated mock type for the Assignments type
func NewAssignments ¶ added in v0.26.1
func NewAssignments(t interface { mock.TestingT Cleanup(func()) }) *Assignments
NewAssignments creates a new instance of Assignments. 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 (*Assignments) Add ¶
func (_m *Assignments) Add(_a0 flow.Identifier, _a1 *chunks.Assignment) bool
Add provides a mock function with given fields: _a0, _a1
func (*Assignments) Adjust ¶ added in v0.43.0
func (_m *Assignments) Adjust(key flow.Identifier, f func(*chunks.Assignment) *chunks.Assignment) (*chunks.Assignment, bool)
Adjust provides a mock function with given fields: key, f
func (*Assignments) All ¶
func (_m *Assignments) All() map[flow.Identifier]*chunks.Assignment
All provides a mock function with no fields
func (*Assignments) Clear ¶ added in v0.43.0
func (_m *Assignments) Clear()
Clear provides a mock function with no fields
func (*Assignments) Get ¶ added in v0.43.0
func (_m *Assignments) Get(_a0 flow.Identifier) (*chunks.Assignment, bool)
Get provides a mock function with given fields: _a0
func (*Assignments) Has ¶
func (_m *Assignments) Has(_a0 flow.Identifier) bool
Has provides a mock function with given fields: _a0
func (*Assignments) Remove ¶ added in v0.27.0
func (_m *Assignments) Remove(_a0 flow.Identifier) bool
Remove provides a mock function with given fields: _a0
func (*Assignments) Size ¶
func (_m *Assignments) Size() uint
Size provides a mock function with no fields
func (*Assignments) Values ¶ added in v0.43.0
func (_m *Assignments) Values() []*chunks.Assignment
Values provides a mock function with no fields
type BackData ¶ added in v0.23.9
type BackData[K comparable, V interface{}] struct { mock.Mock }
BackData is an autogenerated mock type for the BackData type
func NewBackData ¶ added in v0.26.1
func NewBackData[K comparable, V interface{}](t interface { mock.TestingT Cleanup(func()) }) *BackData[K, V]
NewBackData creates a new instance of BackData. 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 (*BackData[K, V]) Add ¶ added in v0.23.9
Add provides a mock function with given fields: key, value
func (*BackData[K, V]) All ¶ added in v0.23.9
func (_m *BackData[K, V]) All() map[K]V
All provides a mock function with no fields
func (*BackData[K, V]) Clear ¶ added in v0.23.9
func (_m *BackData[K, V]) Clear()
Clear provides a mock function with no fields
func (*BackData[K, V]) Keys ¶ added in v0.43.0
func (_m *BackData[K, V]) Keys() []K
Keys provides a mock function with no fields
func (*BackData[K, V]) Remove ¶ added in v0.27.0
Remove provides a mock function with given fields: key
type BlockFilter ¶ added in v0.26.1
BlockFilter is an autogenerated mock type for the BlockFilter type
func NewBlockFilter ¶ added in v0.26.1
func NewBlockFilter(t interface { mock.TestingT Cleanup(func()) }) *BlockFilter
NewBlockFilter creates a new instance of BlockFilter. 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.
type ChunkDataPackMessageStore ¶ added in v0.28.0
ChunkDataPackMessageStore is an autogenerated mock type for the ChunkDataPackMessageStore type
func NewChunkDataPackMessageStore ¶ added in v0.28.0
func NewChunkDataPackMessageStore(t mockConstructorTestingTNewChunkDataPackMessageStore) *ChunkDataPackMessageStore
NewChunkDataPackMessageStore creates a new instance of ChunkDataPackMessageStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ChunkDataPackMessageStore) Get ¶ added in v0.28.0
func (_m *ChunkDataPackMessageStore) Get() (*engine.Message, bool)
Get provides a mock function with given fields:
func (*ChunkDataPackMessageStore) Put ¶ added in v0.28.0
func (_m *ChunkDataPackMessageStore) Put(_a0 *engine.Message) bool
Put provides a mock function with given fields: _a0
func (*ChunkDataPackMessageStore) Size ¶ added in v0.28.0
func (_m *ChunkDataPackMessageStore) Size() uint
Size provides a mock function with given fields:
type ChunkRequestHistoryUpdaterFunc ¶ added in v0.26.1
ChunkRequestHistoryUpdaterFunc is an autogenerated mock type for the ChunkRequestHistoryUpdaterFunc type
func NewChunkRequestHistoryUpdaterFunc ¶ added in v0.26.1
func NewChunkRequestHistoryUpdaterFunc(t interface { mock.TestingT Cleanup(func()) }) *ChunkRequestHistoryUpdaterFunc
NewChunkRequestHistoryUpdaterFunc creates a new instance of ChunkRequestHistoryUpdaterFunc. 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.
type ChunkRequests ¶ added in v0.17.0
ChunkRequests is an autogenerated mock type for the ChunkRequests type
func NewChunkRequests ¶ added in v0.26.1
func NewChunkRequests(t interface { mock.TestingT Cleanup(func()) }) *ChunkRequests
NewChunkRequests creates a new instance of ChunkRequests. 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 (*ChunkRequests) Add ¶ added in v0.17.0
func (_m *ChunkRequests) Add(request *verification.ChunkDataPackRequest) bool
Add provides a mock function with given fields: request
func (*ChunkRequests) All ¶ added in v0.17.0
func (_m *ChunkRequests) All() verification.ChunkDataPackRequestInfoList
All provides a mock function with no fields
func (*ChunkRequests) IncrementAttempt ¶ added in v0.17.0
func (_m *ChunkRequests) IncrementAttempt(chunkID flow.Identifier) bool
IncrementAttempt provides a mock function with given fields: chunkID
func (*ChunkRequests) PopAll ¶ added in v0.23.2
func (_m *ChunkRequests) PopAll(chunkID flow.Identifier) (chunks.LocatorMap, bool)
PopAll provides a mock function with given fields: chunkID
func (*ChunkRequests) Remove ¶ added in v0.27.0
func (_m *ChunkRequests) Remove(chunkID flow.Identifier) bool
Remove provides a mock function with given fields: chunkID
func (*ChunkRequests) RequestHistory ¶ added in v0.17.0
func (_m *ChunkRequests) RequestHistory(chunkID flow.Identifier) (uint64, time.Time, time.Duration, bool)
RequestHistory provides a mock function with given fields: chunkID
func (*ChunkRequests) Size ¶ added in v0.17.1
func (_m *ChunkRequests) Size() uint
Size provides a mock function with no fields
func (*ChunkRequests) UpdateRequestHistory ¶ added in v0.17.0
func (_m *ChunkRequests) UpdateRequestHistory(chunkID flow.Identifier, updater mempool.ChunkRequestHistoryUpdaterFunc) (uint64, time.Time, time.Duration, bool)
UpdateRequestHistory provides a mock function with given fields: chunkID, updater
type ChunkStatuses ¶ added in v0.17.0
ChunkStatuses is an autogenerated mock type for the ChunkStatuses type
func NewChunkStatuses ¶ added in v0.26.1
func NewChunkStatuses(t interface { mock.TestingT Cleanup(func()) }) *ChunkStatuses
NewChunkStatuses creates a new instance of ChunkStatuses. 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 (*ChunkStatuses) Add ¶ added in v0.17.0
func (_m *ChunkStatuses) Add(_a0 flow.Identifier, _a1 *verification.ChunkStatus) bool
Add provides a mock function with given fields: _a0, _a1
func (*ChunkStatuses) Adjust ¶ added in v0.43.0
func (_m *ChunkStatuses) Adjust(key flow.Identifier, f func(*verification.ChunkStatus) *verification.ChunkStatus) (*verification.ChunkStatus, bool)
Adjust provides a mock function with given fields: key, f
func (*ChunkStatuses) All ¶ added in v0.17.0
func (_m *ChunkStatuses) All() map[flow.Identifier]*verification.ChunkStatus
All provides a mock function with no fields
func (*ChunkStatuses) Clear ¶ added in v0.43.0
func (_m *ChunkStatuses) Clear()
Clear provides a mock function with no fields
func (*ChunkStatuses) Get ¶ added in v0.23.2
func (_m *ChunkStatuses) Get(_a0 flow.Identifier) (*verification.ChunkStatus, bool)
Get provides a mock function with given fields: _a0
func (*ChunkStatuses) Has ¶ added in v0.43.0
func (_m *ChunkStatuses) Has(_a0 flow.Identifier) bool
Has provides a mock function with given fields: _a0
func (*ChunkStatuses) Remove ¶ added in v0.27.0
func (_m *ChunkStatuses) Remove(_a0 flow.Identifier) bool
Remove provides a mock function with given fields: _a0
func (*ChunkStatuses) Size ¶ added in v0.17.1
func (_m *ChunkStatuses) Size() uint
Size provides a mock function with no fields
func (*ChunkStatuses) Values ¶ added in v0.43.0
func (_m *ChunkStatuses) Values() []*verification.ChunkStatus
Values provides a mock function with no fields
type DNSCache ¶ added in v0.23.9
DNSCache is an autogenerated mock type for the DNSCache type
func NewDNSCache ¶ added in v0.26.1
NewDNSCache creates a new instance of DNSCache. 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 (*DNSCache) GetDomainIp ¶ added in v0.23.9
GetDomainIp provides a mock function with given fields: _a0
func (*DNSCache) GetTxtRecord ¶ added in v0.23.9
GetTxtRecord provides a mock function with given fields: _a0
func (*DNSCache) LockIPDomain ¶ added in v0.27.0
LockIPDomain provides a mock function with given fields: _a0
func (*DNSCache) LockTxtRecord ¶ added in v0.27.0
LockTxtRecord provides a mock function with given fields: _a0
func (*DNSCache) PutIpDomain ¶ added in v0.27.0
PutIpDomain provides a mock function with given fields: _a0, _a1, _a2
func (*DNSCache) PutTxtRecord ¶ added in v0.23.9
PutTxtRecord provides a mock function with given fields: _a0, _a1, _a2
func (*DNSCache) RemoveIp ¶ added in v0.23.9
RemoveIp provides a mock function with given fields: _a0
func (*DNSCache) RemoveTxt ¶ added in v0.23.9
RemoveTxt provides a mock function with given fields: _a0
func (*DNSCache) UpdateIPDomain ¶ added in v0.27.0
UpdateIPDomain provides a mock function with given fields: _a0, _a1, _a2
type ExecutionData ¶ added in v0.31.0
ExecutionData is an autogenerated mock type for the ExecutionData type
func NewExecutionData ¶ added in v0.31.0
func NewExecutionData(t interface { mock.TestingT Cleanup(func()) }) *ExecutionData
NewExecutionData creates a new instance of ExecutionData. 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 (*ExecutionData) Add ¶ added in v0.31.0
func (_m *ExecutionData) Add(_a0 flow.Identifier, _a1 *execution_data.BlockExecutionDataEntity) bool
Add provides a mock function with given fields: _a0, _a1
func (*ExecutionData) Adjust ¶ added in v0.43.0
func (_m *ExecutionData) Adjust(key flow.Identifier, f func(*execution_data.BlockExecutionDataEntity) *execution_data.BlockExecutionDataEntity) (*execution_data.BlockExecutionDataEntity, bool)
Adjust provides a mock function with given fields: key, f
func (*ExecutionData) All ¶ added in v0.31.0
func (_m *ExecutionData) All() map[flow.Identifier]*execution_data.BlockExecutionDataEntity
All provides a mock function with no fields
func (*ExecutionData) Clear ¶ added in v0.31.0
func (_m *ExecutionData) Clear()
Clear provides a mock function with no fields
func (*ExecutionData) Get ¶ added in v0.43.0
func (_m *ExecutionData) Get(_a0 flow.Identifier) (*execution_data.BlockExecutionDataEntity, bool)
Get provides a mock function with given fields: _a0
func (*ExecutionData) Has ¶ added in v0.31.0
func (_m *ExecutionData) Has(_a0 flow.Identifier) bool
Has provides a mock function with given fields: _a0
func (*ExecutionData) Remove ¶ added in v0.31.0
func (_m *ExecutionData) Remove(_a0 flow.Identifier) bool
Remove provides a mock function with given fields: _a0
func (*ExecutionData) Size ¶ added in v0.31.0
func (_m *ExecutionData) Size() uint
Size provides a mock function with no fields
func (*ExecutionData) Values ¶ added in v0.43.0
func (_m *ExecutionData) Values() []*execution_data.BlockExecutionDataEntity
Values provides a mock function with no fields
type ExecutionTree ¶ added in v0.14.0
ExecutionTree is an autogenerated mock type for the ExecutionTree type
func NewExecutionTree ¶ added in v0.26.1
func NewExecutionTree(t interface { mock.TestingT Cleanup(func()) }) *ExecutionTree
NewExecutionTree creates a new instance of ExecutionTree. 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 (*ExecutionTree) AddReceipt ¶ added in v0.14.0
func (_m *ExecutionTree) AddReceipt(receipt *flow.ExecutionReceipt, block *flow.Header) (bool, error)
AddReceipt provides a mock function with given fields: receipt, block
func (*ExecutionTree) AddResult ¶ added in v0.14.0
func (_m *ExecutionTree) AddResult(result *flow.ExecutionResult, block *flow.Header) error
AddResult provides a mock function with given fields: result, block
func (*ExecutionTree) HasReceipt ¶ added in v0.25.4
func (_m *ExecutionTree) HasReceipt(receipt *flow.ExecutionReceipt) bool
HasReceipt provides a mock function with given fields: receipt
func (*ExecutionTree) LowestHeight ¶ added in v0.14.0
func (_m *ExecutionTree) LowestHeight() uint64
LowestHeight provides a mock function with no fields
func (*ExecutionTree) PruneUpToHeight ¶ added in v0.14.0
func (_m *ExecutionTree) PruneUpToHeight(newLowestHeight uint64) error
PruneUpToHeight provides a mock function with given fields: newLowestHeight
func (*ExecutionTree) ReachableReceipts ¶ added in v0.14.0
func (_m *ExecutionTree) ReachableReceipts(resultID flow.Identifier, blockFilter mempool.BlockFilter, receiptFilter mempool.ReceiptFilter) ([]*flow.ExecutionReceipt, error)
ReachableReceipts provides a mock function with given fields: resultID, blockFilter, receiptFilter
func (*ExecutionTree) Size ¶ added in v0.14.0
func (_m *ExecutionTree) Size() uint
Size provides a mock function with no fields
type Guarantees ¶
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) Add ¶
func (_m *Guarantees) Add(_a0 flow.Identifier, _a1 *flow.CollectionGuarantee) bool
Add provides a mock function with given fields: _a0, _a1
func (*Guarantees) Adjust ¶ added in v0.43.0
func (_m *Guarantees) Adjust(key flow.Identifier, f func(*flow.CollectionGuarantee) *flow.CollectionGuarantee) (*flow.CollectionGuarantee, bool)
Adjust provides a mock function with given fields: key, f
func (*Guarantees) All ¶
func (_m *Guarantees) All() map[flow.Identifier]*flow.CollectionGuarantee
All provides a mock function with no fields
func (*Guarantees) Clear ¶ added in v0.43.0
func (_m *Guarantees) Clear()
Clear provides a mock function with no fields
func (*Guarantees) Get ¶ added in v0.43.0
func (_m *Guarantees) Get(_a0 flow.Identifier) (*flow.CollectionGuarantee, bool)
Get provides a mock function with given fields: _a0
func (*Guarantees) Has ¶
func (_m *Guarantees) Has(_a0 flow.Identifier) bool
Has provides a mock function with given fields: _a0
func (*Guarantees) Remove ¶ added in v0.27.0
func (_m *Guarantees) Remove(_a0 flow.Identifier) bool
Remove provides a mock function with given fields: _a0
func (*Guarantees) Size ¶
func (_m *Guarantees) Size() uint
Size provides a mock function with no fields
func (*Guarantees) Values ¶ added in v0.43.0
func (_m *Guarantees) Values() []*flow.CollectionGuarantee
Values provides a mock function with no fields
type IdentifierMap ¶
IdentifierMap is an autogenerated mock type for the IdentifierMap type
func NewIdentifierMap ¶ added in v0.26.1
func NewIdentifierMap(t interface { mock.TestingT Cleanup(func()) }) *IdentifierMap
NewIdentifierMap creates a new instance of IdentifierMap. 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 (*IdentifierMap) Append ¶
func (_m *IdentifierMap) Append(key flow.Identifier, id flow.Identifier)
Append provides a mock function with given fields: key, id
func (*IdentifierMap) Get ¶
func (_m *IdentifierMap) Get(key flow.Identifier) (flow.IdentifierList, bool)
Get provides a mock function with given fields: key
func (*IdentifierMap) Has ¶
func (_m *IdentifierMap) Has(key flow.Identifier) bool
Has provides a mock function with given fields: key
func (*IdentifierMap) Keys ¶
func (_m *IdentifierMap) Keys() (flow.IdentifierList, bool)
Keys provides a mock function with no fields
func (*IdentifierMap) Remove ¶ added in v0.27.0
func (_m *IdentifierMap) Remove(key flow.Identifier) bool
Remove provides a mock function with given fields: key
func (*IdentifierMap) RemoveIdFromKey ¶ added in v0.27.0
func (_m *IdentifierMap) RemoveIdFromKey(key flow.Identifier, id flow.Identifier) error
RemoveIdFromKey provides a mock function with given fields: key, id
func (*IdentifierMap) Size ¶
func (_m *IdentifierMap) Size() uint
Size provides a mock function with no fields
type IncorporatedResultSeals ¶ added in v0.11.0
IncorporatedResultSeals is an autogenerated mock type for the IncorporatedResultSeals type
func NewIncorporatedResultSeals ¶ added in v0.26.1
func NewIncorporatedResultSeals(t interface { mock.TestingT Cleanup(func()) }) *IncorporatedResultSeals
NewIncorporatedResultSeals creates a new instance of IncorporatedResultSeals. 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 (*IncorporatedResultSeals) Add ¶ added in v0.11.0
func (_m *IncorporatedResultSeals) Add(irSeal *flow.IncorporatedResultSeal) (bool, error)
Add provides a mock function with given fields: irSeal
func (*IncorporatedResultSeals) All ¶ added in v0.11.0
func (_m *IncorporatedResultSeals) All() []*flow.IncorporatedResultSeal
All provides a mock function with no fields
func (*IncorporatedResultSeals) Clear ¶ added in v0.13.0
func (_m *IncorporatedResultSeals) Clear()
Clear provides a mock function with no fields
func (*IncorporatedResultSeals) Get ¶ added in v0.43.0
func (_m *IncorporatedResultSeals) Get(_a0 flow.Identifier) (*flow.IncorporatedResultSeal, bool)
Get provides a mock function with given fields: _a0
func (*IncorporatedResultSeals) Limit ¶ added in v0.11.0
func (_m *IncorporatedResultSeals) Limit() uint
Limit provides a mock function with no fields
func (*IncorporatedResultSeals) PruneUpToHeight ¶ added in v0.18.1
func (_m *IncorporatedResultSeals) PruneUpToHeight(height uint64) error
PruneUpToHeight provides a mock function with given fields: height
func (*IncorporatedResultSeals) Remove ¶ added in v0.27.0
func (_m *IncorporatedResultSeals) Remove(incorporatedResultID flow.Identifier) bool
Remove provides a mock function with given fields: incorporatedResultID
func (*IncorporatedResultSeals) Size ¶ added in v0.11.0
func (_m *IncorporatedResultSeals) Size() uint
Size provides a mock function with no fields
type Mempool ¶ added in v0.43.0
type Mempool[K comparable, V interface{}] struct { mock.Mock }
Mempool is an autogenerated mock type for the Mempool type
func NewMempool ¶ added in v0.43.0
func NewMempool[K comparable, V interface{}](t interface { mock.TestingT Cleanup(func()) }) *Mempool[K, V]
NewMempool creates a new instance of Mempool. 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 (*Mempool[K, V]) Add ¶ added in v0.43.0
Add provides a mock function with given fields: _a0, _a1
func (*Mempool[K, V]) Adjust ¶ added in v0.43.0
Adjust provides a mock function with given fields: key, f
func (*Mempool[K, V]) All ¶ added in v0.43.0
func (_m *Mempool[K, V]) All() map[K]V
All provides a mock function with no fields
func (*Mempool[K, V]) Clear ¶ added in v0.43.0
func (_m *Mempool[K, V]) Clear()
Clear provides a mock function with no fields
func (*Mempool[K, V]) Remove ¶ added in v0.43.0
Remove provides a mock function with given fields: _a0
type MutableBackData ¶ added in v0.43.0
type MutableBackData[K comparable, V interface{}] struct { mock.Mock }
MutableBackData is an autogenerated mock type for the MutableBackData type
func NewMutableBackData ¶ added in v0.43.0
func NewMutableBackData[K comparable, V interface{}](t interface { mock.TestingT Cleanup(func()) }) *MutableBackData[K, V]
NewMutableBackData creates a new instance of MutableBackData. 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 (*MutableBackData[K, V]) Add ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) Add(key K, value V) bool
Add provides a mock function with given fields: key, value
func (*MutableBackData[K, V]) Adjust ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) Adjust(key K, f func(V) V) (V, bool)
Adjust provides a mock function with given fields: key, f
func (*MutableBackData[K, V]) AdjustWithInit ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) AdjustWithInit(key K, adjust func(V) V, init func() V) (V, bool)
AdjustWithInit provides a mock function with given fields: key, adjust, init
func (*MutableBackData[K, V]) All ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) All() map[K]V
All provides a mock function with no fields
func (*MutableBackData[K, V]) Clear ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) Clear()
Clear provides a mock function with no fields
func (*MutableBackData[K, V]) Get ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) Get(key K) (V, bool)
Get provides a mock function with given fields: key
func (*MutableBackData[K, V]) Has ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) Has(key K) bool
Has provides a mock function with given fields: key
func (*MutableBackData[K, V]) Keys ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) Keys() []K
Keys provides a mock function with no fields
func (*MutableBackData[K, V]) Remove ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) Remove(key K) (V, bool)
Remove provides a mock function with given fields: key
func (*MutableBackData[K, V]) Size ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) Size() uint
Size provides a mock function with no fields
func (*MutableBackData[K, V]) Values ¶ added in v0.43.0
func (_m *MutableBackData[K, V]) Values() []V
Values provides a mock function with no fields
type OnEjection ¶ added in v0.26.1
OnEjection is an autogenerated mock type for the OnEjection type
func NewOnEjection ¶ added in v0.26.1
func NewOnEjection[V interface{}](t interface { mock.TestingT Cleanup(func()) }) *OnEjection[V]
NewOnEjection creates a new instance of OnEjection. 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 (*OnEjection[V]) Execute ¶ added in v0.26.1
func (_m *OnEjection[V]) Execute(_a0 V)
Execute provides a mock function with given fields: _a0
type PendingReceipts ¶ added in v0.14.1
PendingReceipts is an autogenerated mock type for the PendingReceipts type
func NewPendingReceipts ¶ added in v0.26.1
func NewPendingReceipts(t interface { mock.TestingT Cleanup(func()) }) *PendingReceipts
NewPendingReceipts creates a new instance of PendingReceipts. 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 (*PendingReceipts) Add ¶ added in v0.14.1
func (_m *PendingReceipts) Add(receipt *flow.ExecutionReceipt) bool
Add provides a mock function with given fields: receipt
func (*PendingReceipts) ByPreviousResultID ¶ added in v0.14.1
func (_m *PendingReceipts) ByPreviousResultID(previousResultID flow.Identifier) []*flow.ExecutionReceipt
ByPreviousResultID provides a mock function with given fields: previousResultID
func (*PendingReceipts) PruneUpToHeight ¶ added in v0.19.0
func (_m *PendingReceipts) PruneUpToHeight(height uint64) error
PruneUpToHeight provides a mock function with given fields: height
func (*PendingReceipts) Remove ¶ added in v0.27.0
func (_m *PendingReceipts) Remove(receiptID flow.Identifier) bool
Remove provides a mock function with given fields: receiptID
type ReceiptFilter ¶ added in v0.26.1
ReceiptFilter is an autogenerated mock type for the ReceiptFilter type
func NewReceiptFilter ¶ added in v0.26.1
func NewReceiptFilter(t interface { mock.TestingT Cleanup(func()) }) *ReceiptFilter
NewReceiptFilter creates a new instance of ReceiptFilter. 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 (*ReceiptFilter) Execute ¶ added in v0.26.1
func (_m *ReceiptFilter) Execute(receipt *flow.ExecutionReceipt) bool
Execute provides a mock function with given fields: receipt
type TransactionTimings ¶
TransactionTimings is an autogenerated mock type for the TransactionTimings type
func NewTransactionTimings ¶ added in v0.26.1
func NewTransactionTimings(t interface { mock.TestingT Cleanup(func()) }) *TransactionTimings
NewTransactionTimings creates a new instance of TransactionTimings. 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 (*TransactionTimings) Add ¶
func (_m *TransactionTimings) Add(_a0 flow.Identifier, _a1 *flow.TransactionTiming) bool
Add provides a mock function with given fields: _a0, _a1
func (*TransactionTimings) Adjust ¶
func (_m *TransactionTimings) Adjust(key flow.Identifier, f func(*flow.TransactionTiming) *flow.TransactionTiming) (*flow.TransactionTiming, bool)
Adjust provides a mock function with given fields: key, f
func (*TransactionTimings) All ¶
func (_m *TransactionTimings) All() map[flow.Identifier]*flow.TransactionTiming
All provides a mock function with no fields
func (*TransactionTimings) Clear ¶ added in v0.43.0
func (_m *TransactionTimings) Clear()
Clear provides a mock function with no fields
func (*TransactionTimings) Get ¶ added in v0.43.0
func (_m *TransactionTimings) Get(_a0 flow.Identifier) (*flow.TransactionTiming, bool)
Get provides a mock function with given fields: _a0
func (*TransactionTimings) Has ¶ added in v0.43.0
func (_m *TransactionTimings) Has(_a0 flow.Identifier) bool
Has provides a mock function with given fields: _a0
func (*TransactionTimings) Remove ¶ added in v0.27.0
func (_m *TransactionTimings) Remove(_a0 flow.Identifier) bool
Remove provides a mock function with given fields: _a0
func (*TransactionTimings) Size ¶ added in v0.43.0
func (_m *TransactionTimings) Size() uint
Size provides a mock function with no fields
func (*TransactionTimings) Values ¶ added in v0.43.0
func (_m *TransactionTimings) Values() []*flow.TransactionTiming
Values provides a mock function with no fields
type Transactions ¶
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) Add ¶
func (_m *Transactions) Add(_a0 flow.Identifier, _a1 *flow.TransactionBody) bool
Add provides a mock function with given fields: _a0, _a1
func (*Transactions) Adjust ¶ added in v0.43.0
func (_m *Transactions) Adjust(key flow.Identifier, f func(*flow.TransactionBody) *flow.TransactionBody) (*flow.TransactionBody, bool)
Adjust provides a mock function with given fields: key, f
func (*Transactions) All ¶
func (_m *Transactions) All() map[flow.Identifier]*flow.TransactionBody
All provides a mock function with no fields
func (*Transactions) ByPayer ¶ added in v0.43.0
func (_m *Transactions) ByPayer(payer flow.Address) []*flow.TransactionBody
ByPayer provides a mock function with given fields: payer
func (*Transactions) Clear ¶ added in v0.11.0
func (_m *Transactions) Clear()
Clear provides a mock function with no fields
func (*Transactions) Get ¶ added in v0.43.0
func (_m *Transactions) Get(_a0 flow.Identifier) (*flow.TransactionBody, bool)
Get provides a mock function with given fields: _a0
func (*Transactions) Has ¶
func (_m *Transactions) Has(_a0 flow.Identifier) bool
Has provides a mock function with given fields: _a0
func (*Transactions) Remove ¶ added in v0.27.0
func (_m *Transactions) Remove(_a0 flow.Identifier) bool
Remove provides a mock function with given fields: _a0
func (*Transactions) Size ¶
func (_m *Transactions) Size() uint
Size provides a mock function with no fields
func (*Transactions) Values ¶ added in v0.43.0
func (_m *Transactions) Values() []*flow.TransactionBody
Values provides a mock function with no fields
Source Files
¶
- assignments.go
- back_data.go
- block_filter.go
- chunk_data_pack_message_store.go
- chunk_request_history_updater_func.go
- chunk_requests.go
- chunk_statuses.go
- dns_cache.go
- execution_data.go
- execution_tree.go
- guarantees.go
- identifier_map.go
- incorporated_result_seals.go
- mempool.go
- mutable_back_data.go
- on_ejection.go
- pending_receipts.go
- receipt_filter.go
- transaction_timings.go
- transactions.go