mempool

package
v0.38.0-preview.0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 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 Assignments

type Assignments struct {
	mock.Mock
}

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(assignmentFingerprint flow.Identifier, assignment *chunks.Assignment) bool

Add provides a mock function with given fields: assignmentFingerprint, assignment

func (*Assignments) All

func (_m *Assignments) All() []*chunks.Assignment

All provides a mock function with given fields:

func (*Assignments) ByID

func (_m *Assignments) ByID(assignmentID flow.Identifier) (*chunks.Assignment, bool)

ByID provides a mock function with given fields: assignmentID

func (*Assignments) Has

func (_m *Assignments) Has(assignmentID flow.Identifier) bool

Has provides a mock function with given fields: assignmentID

func (*Assignments) Remove added in v0.27.0

func (_m *Assignments) Remove(assignmentID flow.Identifier) bool

Remove provides a mock function with given fields: assignmentID

func (*Assignments) Size

func (_m *Assignments) Size() uint

Size provides a mock function with given fields:

type BackData added in v0.23.9

type BackData struct {
	mock.Mock
}

BackData is an autogenerated mock type for the BackData type

func NewBackData added in v0.26.1

func NewBackData(t interface {
	mock.TestingT
	Cleanup(func())
}) *BackData

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) Add added in v0.23.9

func (_m *BackData) Add(entityID flow.Identifier, entity flow.Entity) bool

Add provides a mock function with given fields: entityID, entity

func (*BackData) Adjust added in v0.23.9

func (_m *BackData) Adjust(entityID flow.Identifier, f func(flow.Entity) flow.Entity) (flow.Entity, bool)

Adjust provides a mock function with given fields: entityID, f

func (*BackData) AdjustWithInit added in v0.33.1

func (_m *BackData) AdjustWithInit(entityID flow.Identifier, adjust func(flow.Entity) flow.Entity, init func() flow.Entity) (flow.Entity, bool)

AdjustWithInit provides a mock function with given fields: entityID, adjust, init

func (*BackData) All added in v0.23.9

func (_m *BackData) All() map[flow.Identifier]flow.Entity

All provides a mock function with given fields:

func (*BackData) ByID added in v0.23.9

func (_m *BackData) ByID(entityID flow.Identifier) (flow.Entity, bool)

ByID provides a mock function with given fields: entityID

func (*BackData) Clear added in v0.23.9

func (_m *BackData) Clear()

Clear provides a mock function with given fields:

func (*BackData) Entities added in v0.23.9

func (_m *BackData) Entities() []flow.Entity

Entities provides a mock function with given fields:

func (*BackData) GetWithInit added in v0.33.1

func (_m *BackData) GetWithInit(entityID flow.Identifier, init func() flow.Entity) (flow.Entity, bool)

GetWithInit provides a mock function with given fields: entityID, init

func (*BackData) Has added in v0.23.9

func (_m *BackData) Has(entityID flow.Identifier) bool

Has provides a mock function with given fields: entityID

func (*BackData) Identifiers added in v0.23.9

func (_m *BackData) Identifiers() flow.IdentifierList

Identifiers provides a mock function with given fields:

func (*BackData) Remove added in v0.27.0

func (_m *BackData) Remove(entityID flow.Identifier) (flow.Entity, bool)

Remove provides a mock function with given fields: entityID

func (*BackData) Size added in v0.23.9

func (_m *BackData) Size() uint

Size provides a mock function with given fields:

type BlockFilter added in v0.26.1

type BlockFilter struct {
	mock.Mock
}

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.

func (*BlockFilter) Execute added in v0.26.1

func (_m *BlockFilter) Execute(header *flow.Header) bool

Execute provides a mock function with given fields: header

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

func (_m *Blocks) Add(block *flow.Block) bool

Add provides a mock function with given fields: block

func (*Blocks) All

func (_m *Blocks) All() []*flow.Block

All provides a mock function with given fields:

func (*Blocks) ByID

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

ByID provides a mock function with given fields: blockID

func (*Blocks) Has

func (_m *Blocks) Has(blockID flow.Identifier) bool

Has provides a mock function with given fields: blockID

func (*Blocks) Hash

func (_m *Blocks) Hash() flow.Identifier

Hash provides a mock function with given fields:

func (*Blocks) Remove added in v0.27.0

func (_m *Blocks) Remove(blockID flow.Identifier) bool

Remove provides a mock function with given fields: blockID

func (*Blocks) Size

func (_m *Blocks) Size() uint

Size provides a mock function with given fields:

type ChunkDataPackMessageStore added in v0.28.0

type ChunkDataPackMessageStore struct {
	mock.Mock
}

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

Get provides a mock function with given fields:

func (*ChunkDataPackMessageStore) Put added in v0.28.0

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

func (_m *ChunkDataPacks) Add(cdp *flow.ChunkDataPack) bool

Add provides a mock function with given fields: cdp

func (*ChunkDataPacks) All

func (_m *ChunkDataPacks) All() []*flow.ChunkDataPack

All provides a mock function with given fields:

func (*ChunkDataPacks) ByChunkID

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

ByChunkID provides a mock function with given fields: chunkID

func (*ChunkDataPacks) Has

func (_m *ChunkDataPacks) Has(chunkID flow.Identifier) bool

Has provides a mock function with given fields: chunkID

func (*ChunkDataPacks) Remove added in v0.27.0

func (_m *ChunkDataPacks) Remove(chunkID flow.Identifier) bool

Remove provides a mock function with given fields: chunkID

func (*ChunkDataPacks) Size

func (_m *ChunkDataPacks) Size() uint

Size provides a mock function with given fields:

type ChunkRequestHistoryUpdaterFunc added in v0.26.1

type ChunkRequestHistoryUpdaterFunc struct {
	mock.Mock
}

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.

func (*ChunkRequestHistoryUpdaterFunc) Execute added in v0.26.1

Execute provides a mock function with given fields: _a0, _a1

type ChunkRequests added in v0.17.0

type ChunkRequests struct {
	mock.Mock
}

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

Add provides a mock function with given fields: request

func (*ChunkRequests) All added in v0.17.0

All provides a mock function with given 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 given 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

type ChunkStatuses struct {
	mock.Mock
}

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(status *verification.ChunkStatus) bool

Add provides a mock function with given fields: status

func (*ChunkStatuses) All added in v0.17.0

func (_m *ChunkStatuses) All() []*verification.ChunkStatus

All provides a mock function with given fields:

func (*ChunkStatuses) Get added in v0.23.2

func (_m *ChunkStatuses) Get(chunkIndex uint64, resultID flow.Identifier) (*verification.ChunkStatus, bool)

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

func (*ChunkStatuses) Remove added in v0.27.0

func (_m *ChunkStatuses) Remove(chunkIndex uint64, resultID flow.Identifier) bool

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

func (*ChunkStatuses) Size added in v0.17.1

func (_m *ChunkStatuses) Size() uint

Size provides a mock function with given fields:

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

func (_m *Collections) Add(coll *flow.Collection) bool

Add provides a mock function with given fields: coll

func (*Collections) All

func (_m *Collections) All() []*flow.Collection

All provides a mock function with given fields:

func (*Collections) ByID

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

ByID provides a mock function with given fields: collID

func (*Collections) Has

func (_m *Collections) Has(collID flow.Identifier) bool

Has provides a mock function with given fields: collID

func (*Collections) Remove added in v0.27.0

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

Remove provides a mock function with given fields: collID

func (*Collections) Size

func (_m *Collections) Size() uint

Size provides a mock function with given fields:

type DNSCache added in v0.23.9

type DNSCache struct {
	mock.Mock
}

DNSCache is an autogenerated mock type for the DNSCache type

func NewDNSCache added in v0.26.1

func NewDNSCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *DNSCache

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

func (_m *DNSCache) GetDomainIp(_a0 string) (*mempool.IpRecord, bool)

GetDomainIp provides a mock function with given fields: _a0

func (*DNSCache) GetTxtRecord added in v0.23.9

func (_m *DNSCache) GetTxtRecord(_a0 string) (*mempool.TxtRecord, bool)

GetTxtRecord provides a mock function with given fields: _a0

func (*DNSCache) LockIPDomain added in v0.27.0

func (_m *DNSCache) LockIPDomain(_a0 string) (bool, error)

LockIPDomain provides a mock function with given fields: _a0

func (*DNSCache) LockTxtRecord added in v0.27.0

func (_m *DNSCache) LockTxtRecord(_a0 string) (bool, error)

LockTxtRecord provides a mock function with given fields: _a0

func (*DNSCache) PutIpDomain added in v0.27.0

func (_m *DNSCache) PutIpDomain(_a0 string, _a1 []net.IPAddr, _a2 int64) bool

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

func (*DNSCache) PutTxtRecord added in v0.23.9

func (_m *DNSCache) PutTxtRecord(_a0 string, _a1 []string, _a2 int64) bool

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

func (*DNSCache) RemoveIp added in v0.23.9

func (_m *DNSCache) RemoveIp(_a0 string) bool

RemoveIp provides a mock function with given fields: _a0

func (*DNSCache) RemoveTxt added in v0.23.9

func (_m *DNSCache) RemoveTxt(_a0 string) bool

RemoveTxt provides a mock function with given fields: _a0

func (*DNSCache) Size added in v0.23.9

func (_m *DNSCache) Size() (uint, uint)

Size provides a mock function with given fields:

func (*DNSCache) UpdateIPDomain added in v0.27.0

func (_m *DNSCache) UpdateIPDomain(_a0 string, _a1 []net.IPAddr, _a2 int64) error

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

func (*DNSCache) UpdateTxtRecord added in v0.27.0

func (_m *DNSCache) UpdateTxtRecord(_a0 string, _a1 []string, _a2 int64) error

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

type ExecutionData added in v0.31.0

type ExecutionData struct {
	mock.Mock
}

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

Add provides a mock function with given fields: _a0

func (*ExecutionData) All added in v0.31.0

All provides a mock function with given fields:

func (*ExecutionData) ByID added in v0.31.0

ByID provides a mock function with given fields: _a0

func (*ExecutionData) Clear added in v0.31.0

func (_m *ExecutionData) Clear()

Clear provides a mock function with given fields:

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 given fields:

type ExecutionTree added in v0.14.0

type ExecutionTree struct {
	mock.Mock
}

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 given 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 given fields:

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

func (_m *Guarantees) Add(guarantee *flow.CollectionGuarantee) bool

Add provides a mock function with given fields: guarantee

func (*Guarantees) All

func (_m *Guarantees) All() []*flow.CollectionGuarantee

All provides a mock function with given fields:

func (*Guarantees) ByID

func (_m *Guarantees) ByID(collID flow.Identifier) (*flow.CollectionGuarantee, bool)

ByID provides a mock function with given fields: collID

func (*Guarantees) Has

func (_m *Guarantees) Has(collID flow.Identifier) bool

Has provides a mock function with given fields: collID

func (*Guarantees) Remove added in v0.27.0

func (_m *Guarantees) Remove(collID flow.Identifier) bool

Remove provides a mock function with given fields: collID

func (*Guarantees) Size

func (_m *Guarantees) Size() uint

Size provides a mock function with given fields:

type IdentifierMap

type IdentifierMap struct {
	mock.Mock
}

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

Append provides a mock function with given fields: key, id

func (*IdentifierMap) Get

func (_m *IdentifierMap) Get(key flow.Identifier) ([]flow.Identifier, 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.Identifier, bool)

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

type IncorporatedResultSeals added in v0.11.0

type IncorporatedResultSeals struct {
	mock.Mock
}

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

Add provides a mock function with given fields: irSeal

func (*IncorporatedResultSeals) All added in v0.11.0

All provides a mock function with given fields:

func (*IncorporatedResultSeals) ByID added in v0.11.0

ByID provides a mock function with given fields: _a0

func (*IncorporatedResultSeals) Clear added in v0.13.0

func (_m *IncorporatedResultSeals) Clear()

Clear provides a mock function with given fields:

func (*IncorporatedResultSeals) Limit added in v0.11.0

func (_m *IncorporatedResultSeals) Limit() uint

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

type OnEjection added in v0.26.1

type OnEjection struct {
	mock.Mock
}

OnEjection is an autogenerated mock type for the OnEjection type

func NewOnEjection added in v0.26.1

func NewOnEjection(t interface {
	mock.TestingT
	Cleanup(func())
}) *OnEjection

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) Execute added in v0.26.1

func (_m *OnEjection) Execute(_a0 flow.Entity)

Execute provides a mock function with given fields: _a0

type PendingReceipts added in v0.14.1

type PendingReceipts struct {
	mock.Mock
}

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(previousReusltID flow.Identifier) []*flow.ExecutionReceipt

ByPreviousResultID provides a mock function with given fields: previousReusltID

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

type ReceiptFilter struct {
	mock.Mock
}

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 Results

type Results struct {
	mock.Mock
}

Results is an autogenerated mock type for the Results type

func NewResults added in v0.26.1

func NewResults(t interface {
	mock.TestingT
	Cleanup(func())
}) *Results

NewResults creates a new instance of Results. 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 (*Results) Add

func (_m *Results) Add(result *flow.ExecutionResult) bool

Add provides a mock function with given fields: result

func (*Results) All

func (_m *Results) All() []*flow.ExecutionResult

All provides a mock function with given fields:

func (*Results) ByID

func (_m *Results) ByID(resultID flow.Identifier) (*flow.ExecutionResult, bool)

ByID provides a mock function with given fields: resultID

func (*Results) Has

func (_m *Results) Has(resultID flow.Identifier) bool

Has provides a mock function with given fields: resultID

func (*Results) Remove added in v0.27.0

func (_m *Results) Remove(resultID flow.Identifier) bool

Remove provides a mock function with given fields: resultID

func (*Results) Size

func (_m *Results) Size() uint

Size provides a mock function with given fields:

type TransactionTimings

type TransactionTimings struct {
	mock.Mock
}

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

Add provides a mock function with given fields: tx

func (*TransactionTimings) Adjust

Adjust provides a mock function with given fields: txID, f

func (*TransactionTimings) All

All provides a mock function with given fields:

func (*TransactionTimings) ByID

ByID provides a mock function with given fields: txID

func (*TransactionTimings) Remove added in v0.27.0

func (_m *TransactionTimings) Remove(txID flow.Identifier) bool

Remove provides a mock function with given fields: txID

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

func (_m *Transactions) Add(tx *flow.TransactionBody) bool

Add provides a mock function with given fields: tx

func (*Transactions) All

func (_m *Transactions) All() []*flow.TransactionBody

All provides a mock function with given fields:

func (*Transactions) ByID

func (_m *Transactions) ByID(txID flow.Identifier) (*flow.TransactionBody, bool)

ByID provides a mock function with given fields: txID

func (*Transactions) Clear added in v0.11.0

func (_m *Transactions) Clear()

Clear provides a mock function with given fields:

func (*Transactions) Has

func (_m *Transactions) Has(txID flow.Identifier) bool

Has provides a mock function with given fields: txID

func (*Transactions) Remove added in v0.27.0

func (_m *Transactions) Remove(txID flow.Identifier) bool

Remove provides a mock function with given fields: txID

func (*Transactions) Size

func (_m *Transactions) Size() uint

Size provides a mock function with given fields:

Jump to

Keyboard shortcuts

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