mock

package
v0.37.12-re-execute-block Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compliance added in v0.29.0

type Compliance struct {
	mock.Mock
}

Compliance is an autogenerated mock type for the Compliance type

func NewCompliance added in v0.29.0

func NewCompliance(t interface {
	mock.TestingT
	Cleanup(func())
}) *Compliance

NewCompliance creates a new instance of Compliance. 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 (*Compliance) Done added in v0.29.0

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

Done provides a mock function with given fields:

func (*Compliance) OnBlockProposal added in v0.29.0

func (_m *Compliance) OnBlockProposal(proposal flow.Slashable[*messages.BlockProposal])

OnBlockProposal provides a mock function with given fields: proposal

func (*Compliance) OnSyncedBlocks added in v0.30.0

func (_m *Compliance) OnSyncedBlocks(blocks flow.Slashable[[]*messages.BlockProposal])

OnSyncedBlocks provides a mock function with given fields: blocks

func (*Compliance) Ready added in v0.29.0

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

Ready provides a mock function with given fields:

func (*Compliance) Start added in v0.29.0

func (_m *Compliance) Start(_a0 irrecoverable.SignalerContext)

Start provides a mock function with given fields: _a0

type MatchingCore

type MatchingCore struct {
	mock.Mock
}

MatchingCore is an autogenerated mock type for the MatchingCore type

func NewMatchingCore added in v0.26.1

func NewMatchingCore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MatchingCore

NewMatchingCore creates a new instance of MatchingCore. 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 (*MatchingCore) OnBlockFinalization added in v0.19.0

func (_m *MatchingCore) OnBlockFinalization() error

OnBlockFinalization provides a mock function with given fields:

func (*MatchingCore) ProcessReceipt

func (_m *MatchingCore) ProcessReceipt(receipt *flow.ExecutionReceipt) error

ProcessReceipt provides a mock function with given fields: receipt

type ProposalProvider added in v0.29.0

type ProposalProvider struct {
	mock.Mock
}

ProposalProvider is an autogenerated mock type for the ProposalProvider type

func NewProposalProvider added in v0.29.0

func NewProposalProvider(t mockConstructorTestingTNewProposalProvider) *ProposalProvider

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

func (*ProposalProvider) ProvideProposal added in v0.29.0

func (_m *ProposalProvider) ProvideProposal(proposal *messages.BlockProposal)

ProvideProposal provides a mock function with given fields: proposal

type SealingCore

type SealingCore struct {
	mock.Mock
}

SealingCore is an autogenerated mock type for the SealingCore type

func NewSealingCore added in v0.26.1

func NewSealingCore(t interface {
	mock.TestingT
	Cleanup(func())
}) *SealingCore

NewSealingCore creates a new instance of SealingCore. 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 (*SealingCore) ProcessApproval

func (_m *SealingCore) ProcessApproval(approval *flow.ResultApproval) error

ProcessApproval provides a mock function with given fields: approval

func (*SealingCore) ProcessFinalizedBlock

func (_m *SealingCore) ProcessFinalizedBlock(finalizedBlockID flow.Identifier) error

ProcessFinalizedBlock provides a mock function with given fields: finalizedBlockID

func (*SealingCore) ProcessIncorporatedResult

func (_m *SealingCore) ProcessIncorporatedResult(result *flow.IncorporatedResult) error

ProcessIncorporatedResult provides a mock function with given fields: result

type SealingObservation added in v0.18.3

type SealingObservation struct {
	mock.Mock
}

SealingObservation is an autogenerated mock type for the SealingObservation type

func NewSealingObservation added in v0.26.1

func NewSealingObservation(t interface {
	mock.TestingT
	Cleanup(func())
}) *SealingObservation

NewSealingObservation creates a new instance of SealingObservation. 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 (*SealingObservation) ApprovalsMissing added in v0.18.3

func (_m *SealingObservation) ApprovalsMissing(ir *flow.IncorporatedResult, chunksWithMissingApprovals map[uint64]flow.IdentifierList)

ApprovalsMissing provides a mock function with given fields: ir, chunksWithMissingApprovals

func (*SealingObservation) ApprovalsRequested added in v0.18.3

func (_m *SealingObservation) ApprovalsRequested(ir *flow.IncorporatedResult, requestCount uint)

ApprovalsRequested provides a mock function with given fields: ir, requestCount

func (*SealingObservation) Complete added in v0.18.3

func (_m *SealingObservation) Complete()

Complete provides a mock function with given fields:

func (*SealingObservation) QualifiesForEmergencySealing added in v0.18.3

func (_m *SealingObservation) QualifiesForEmergencySealing(ir *flow.IncorporatedResult, emergencySealable bool)

QualifiesForEmergencySealing provides a mock function with given fields: ir, emergencySealable

type SealingTracker added in v0.18.3

type SealingTracker struct {
	mock.Mock
}

SealingTracker is an autogenerated mock type for the SealingTracker type

func NewSealingTracker added in v0.26.1

func NewSealingTracker(t interface {
	mock.TestingT
	Cleanup(func())
}) *SealingTracker

NewSealingTracker creates a new instance of SealingTracker. 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 (*SealingTracker) NewSealingObservation added in v0.18.3

func (_m *SealingTracker) NewSealingObservation(finalizedBlock *flow.Header, seal *flow.Seal, sealedBlock *flow.Header) consensus.SealingObservation

NewSealingObservation provides a mock function with given fields: finalizedBlock, seal, sealedBlock

Jump to

Keyboard shortcuts

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