Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: AGPL-3.0 Imports: 4 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 (_mock *Compliance) Done() <-chan struct{}

Done provides a mock function for the type Compliance

func (*Compliance) EXPECT added in v0.46.0

func (_m *Compliance) EXPECT() *Compliance_Expecter

func (*Compliance) OnBlockProposal added in v0.29.0

func (_mock *Compliance) OnBlockProposal(proposal flow.Slashable[*flow.Proposal])

OnBlockProposal provides a mock function for the type Compliance

func (*Compliance) OnSyncedBlocks added in v0.30.0

func (_mock *Compliance) OnSyncedBlocks(blocks flow.Slashable[[]*flow.Proposal])

OnSyncedBlocks provides a mock function for the type Compliance

func (*Compliance) Ready added in v0.29.0

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

Ready provides a mock function for the type Compliance

func (*Compliance) Start added in v0.29.0

func (_mock *Compliance) Start(signalerContext irrecoverable.SignalerContext)

Start provides a mock function for the type Compliance

type Compliance_Done_Call added in v0.46.0

type Compliance_Done_Call struct {
	*mock.Call
}

Compliance_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'

func (*Compliance_Done_Call) Return added in v0.46.0

func (_c *Compliance_Done_Call) Return(valCh <-chan struct{}) *Compliance_Done_Call

func (*Compliance_Done_Call) Run added in v0.46.0

func (_c *Compliance_Done_Call) Run(run func()) *Compliance_Done_Call

func (*Compliance_Done_Call) RunAndReturn added in v0.46.0

func (_c *Compliance_Done_Call) RunAndReturn(run func() <-chan struct{}) *Compliance_Done_Call

type Compliance_Expecter added in v0.46.0

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

func (*Compliance_Expecter) Done added in v0.46.0

Done is a helper method to define mock.On call

func (*Compliance_Expecter) OnBlockProposal added in v0.46.0

func (_e *Compliance_Expecter) OnBlockProposal(proposal interface{}) *Compliance_OnBlockProposal_Call

OnBlockProposal is a helper method to define mock.On call

  • proposal flow.Slashable[*flow.Proposal]

func (*Compliance_Expecter) OnSyncedBlocks added in v0.46.0

func (_e *Compliance_Expecter) OnSyncedBlocks(blocks interface{}) *Compliance_OnSyncedBlocks_Call

OnSyncedBlocks is a helper method to define mock.On call

  • blocks flow.Slashable[[]*flow.Proposal]

func (*Compliance_Expecter) Ready added in v0.46.0

Ready is a helper method to define mock.On call

func (*Compliance_Expecter) Start added in v0.46.0

func (_e *Compliance_Expecter) Start(signalerContext interface{}) *Compliance_Start_Call

Start is a helper method to define mock.On call

  • signalerContext irrecoverable.SignalerContext

type Compliance_OnBlockProposal_Call added in v0.46.0

type Compliance_OnBlockProposal_Call struct {
	*mock.Call
}

Compliance_OnBlockProposal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBlockProposal'

func (*Compliance_OnBlockProposal_Call) Return added in v0.46.0

func (*Compliance_OnBlockProposal_Call) Run added in v0.46.0

func (*Compliance_OnBlockProposal_Call) RunAndReturn added in v0.46.0

type Compliance_OnSyncedBlocks_Call added in v0.46.0

type Compliance_OnSyncedBlocks_Call struct {
	*mock.Call
}

Compliance_OnSyncedBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnSyncedBlocks'

func (*Compliance_OnSyncedBlocks_Call) Return added in v0.46.0

func (*Compliance_OnSyncedBlocks_Call) Run added in v0.46.0

func (*Compliance_OnSyncedBlocks_Call) RunAndReturn added in v0.46.0

type Compliance_Ready_Call added in v0.46.0

type Compliance_Ready_Call struct {
	*mock.Call
}

Compliance_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'

func (*Compliance_Ready_Call) Return added in v0.46.0

func (_c *Compliance_Ready_Call) Return(valCh <-chan struct{}) *Compliance_Ready_Call

func (*Compliance_Ready_Call) Run added in v0.46.0

func (_c *Compliance_Ready_Call) Run(run func()) *Compliance_Ready_Call

func (*Compliance_Ready_Call) RunAndReturn added in v0.46.0

func (_c *Compliance_Ready_Call) RunAndReturn(run func() <-chan struct{}) *Compliance_Ready_Call

type Compliance_Start_Call added in v0.46.0

type Compliance_Start_Call struct {
	*mock.Call
}

Compliance_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*Compliance_Start_Call) Return added in v0.46.0

func (*Compliance_Start_Call) Run added in v0.46.0

func (_c *Compliance_Start_Call) Run(run func(signalerContext irrecoverable.SignalerContext)) *Compliance_Start_Call

func (*Compliance_Start_Call) RunAndReturn added in v0.46.0

func (_c *Compliance_Start_Call) RunAndReturn(run func(signalerContext irrecoverable.SignalerContext)) *Compliance_Start_Call

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) EXPECT added in v0.46.0

func (_m *MatchingCore) EXPECT() *MatchingCore_Expecter

func (*MatchingCore) OnBlockFinalization added in v0.19.0

func (_mock *MatchingCore) OnBlockFinalization() error

OnBlockFinalization provides a mock function for the type MatchingCore

func (*MatchingCore) ProcessReceipt

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

ProcessReceipt provides a mock function for the type MatchingCore

type MatchingCore_Expecter added in v0.46.0

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

func (*MatchingCore_Expecter) OnBlockFinalization added in v0.46.0

OnBlockFinalization is a helper method to define mock.On call

func (*MatchingCore_Expecter) ProcessReceipt added in v0.46.0

func (_e *MatchingCore_Expecter) ProcessReceipt(receipt interface{}) *MatchingCore_ProcessReceipt_Call

ProcessReceipt is a helper method to define mock.On call

  • receipt *flow.ExecutionReceipt

type MatchingCore_OnBlockFinalization_Call added in v0.46.0

type MatchingCore_OnBlockFinalization_Call struct {
	*mock.Call
}

MatchingCore_OnBlockFinalization_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBlockFinalization'

func (*MatchingCore_OnBlockFinalization_Call) Return added in v0.46.0

func (*MatchingCore_OnBlockFinalization_Call) Run added in v0.46.0

func (*MatchingCore_OnBlockFinalization_Call) RunAndReturn added in v0.46.0

type MatchingCore_ProcessReceipt_Call added in v0.46.0

type MatchingCore_ProcessReceipt_Call struct {
	*mock.Call
}

MatchingCore_ProcessReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessReceipt'

func (*MatchingCore_ProcessReceipt_Call) Return added in v0.46.0

func (*MatchingCore_ProcessReceipt_Call) Run added in v0.46.0

func (*MatchingCore_ProcessReceipt_Call) RunAndReturn added in v0.46.0

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) EXPECT added in v0.46.0

func (_m *SealingCore) EXPECT() *SealingCore_Expecter

func (*SealingCore) ProcessApproval

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

ProcessApproval provides a mock function for the type SealingCore

func (*SealingCore) ProcessFinalizedBlock

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

ProcessFinalizedBlock provides a mock function for the type SealingCore

func (*SealingCore) ProcessIncorporatedResult

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

ProcessIncorporatedResult provides a mock function for the type SealingCore

type SealingCore_Expecter added in v0.46.0

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

func (*SealingCore_Expecter) ProcessApproval added in v0.46.0

func (_e *SealingCore_Expecter) ProcessApproval(approval interface{}) *SealingCore_ProcessApproval_Call

ProcessApproval is a helper method to define mock.On call

  • approval *flow.ResultApproval

func (*SealingCore_Expecter) ProcessFinalizedBlock added in v0.46.0

func (_e *SealingCore_Expecter) ProcessFinalizedBlock(finalizedBlockID interface{}) *SealingCore_ProcessFinalizedBlock_Call

ProcessFinalizedBlock is a helper method to define mock.On call

  • finalizedBlockID flow.Identifier

func (*SealingCore_Expecter) ProcessIncorporatedResult added in v0.46.0

func (_e *SealingCore_Expecter) ProcessIncorporatedResult(result interface{}) *SealingCore_ProcessIncorporatedResult_Call

ProcessIncorporatedResult is a helper method to define mock.On call

  • result *flow.IncorporatedResult

type SealingCore_ProcessApproval_Call added in v0.46.0

type SealingCore_ProcessApproval_Call struct {
	*mock.Call
}

SealingCore_ProcessApproval_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessApproval'

func (*SealingCore_ProcessApproval_Call) Return added in v0.46.0

func (*SealingCore_ProcessApproval_Call) Run added in v0.46.0

func (*SealingCore_ProcessApproval_Call) RunAndReturn added in v0.46.0

type SealingCore_ProcessFinalizedBlock_Call added in v0.46.0

type SealingCore_ProcessFinalizedBlock_Call struct {
	*mock.Call
}

SealingCore_ProcessFinalizedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessFinalizedBlock'

func (*SealingCore_ProcessFinalizedBlock_Call) Return added in v0.46.0

func (*SealingCore_ProcessFinalizedBlock_Call) Run added in v0.46.0

func (*SealingCore_ProcessFinalizedBlock_Call) RunAndReturn added in v0.46.0

type SealingCore_ProcessIncorporatedResult_Call added in v0.46.0

type SealingCore_ProcessIncorporatedResult_Call struct {
	*mock.Call
}

SealingCore_ProcessIncorporatedResult_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProcessIncorporatedResult'

func (*SealingCore_ProcessIncorporatedResult_Call) Return added in v0.46.0

func (*SealingCore_ProcessIncorporatedResult_Call) Run added in v0.46.0

func (*SealingCore_ProcessIncorporatedResult_Call) RunAndReturn added in v0.46.0

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 (_mock *SealingObservation) ApprovalsMissing(ir *flow.IncorporatedResult, chunksWithMissingApprovals map[uint64]flow.IdentifierList)

ApprovalsMissing provides a mock function for the type SealingObservation

func (*SealingObservation) ApprovalsRequested added in v0.18.3

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

ApprovalsRequested provides a mock function for the type SealingObservation

func (*SealingObservation) Complete added in v0.18.3

func (_mock *SealingObservation) Complete()

Complete provides a mock function for the type SealingObservation

func (*SealingObservation) EXPECT added in v0.46.0

func (*SealingObservation) QualifiesForEmergencySealing added in v0.18.3

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

QualifiesForEmergencySealing provides a mock function for the type SealingObservation

type SealingObservation_ApprovalsMissing_Call added in v0.46.0

type SealingObservation_ApprovalsMissing_Call struct {
	*mock.Call
}

SealingObservation_ApprovalsMissing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApprovalsMissing'

func (*SealingObservation_ApprovalsMissing_Call) Return added in v0.46.0

func (*SealingObservation_ApprovalsMissing_Call) Run added in v0.46.0

func (*SealingObservation_ApprovalsMissing_Call) RunAndReturn added in v0.46.0

type SealingObservation_ApprovalsRequested_Call added in v0.46.0

type SealingObservation_ApprovalsRequested_Call struct {
	*mock.Call
}

SealingObservation_ApprovalsRequested_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApprovalsRequested'

func (*SealingObservation_ApprovalsRequested_Call) Return added in v0.46.0

func (*SealingObservation_ApprovalsRequested_Call) Run added in v0.46.0

func (*SealingObservation_ApprovalsRequested_Call) RunAndReturn added in v0.46.0

type SealingObservation_Complete_Call added in v0.46.0

type SealingObservation_Complete_Call struct {
	*mock.Call
}

SealingObservation_Complete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Complete'

func (*SealingObservation_Complete_Call) Return added in v0.46.0

func (*SealingObservation_Complete_Call) Run added in v0.46.0

func (*SealingObservation_Complete_Call) RunAndReturn added in v0.46.0

type SealingObservation_Expecter added in v0.46.0

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

func (*SealingObservation_Expecter) ApprovalsMissing added in v0.46.0

func (_e *SealingObservation_Expecter) ApprovalsMissing(ir interface{}, chunksWithMissingApprovals interface{}) *SealingObservation_ApprovalsMissing_Call

ApprovalsMissing is a helper method to define mock.On call

  • ir *flow.IncorporatedResult
  • chunksWithMissingApprovals map[uint64]flow.IdentifierList

func (*SealingObservation_Expecter) ApprovalsRequested added in v0.46.0

func (_e *SealingObservation_Expecter) ApprovalsRequested(ir interface{}, requestCount interface{}) *SealingObservation_ApprovalsRequested_Call

ApprovalsRequested is a helper method to define mock.On call

  • ir *flow.IncorporatedResult
  • requestCount uint

func (*SealingObservation_Expecter) Complete added in v0.46.0

Complete is a helper method to define mock.On call

func (*SealingObservation_Expecter) QualifiesForEmergencySealing added in v0.46.0

func (_e *SealingObservation_Expecter) QualifiesForEmergencySealing(ir interface{}, emergencySealable interface{}) *SealingObservation_QualifiesForEmergencySealing_Call

QualifiesForEmergencySealing is a helper method to define mock.On call

  • ir *flow.IncorporatedResult
  • emergencySealable bool

type SealingObservation_QualifiesForEmergencySealing_Call added in v0.46.0

type SealingObservation_QualifiesForEmergencySealing_Call struct {
	*mock.Call
}

SealingObservation_QualifiesForEmergencySealing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QualifiesForEmergencySealing'

func (*SealingObservation_QualifiesForEmergencySealing_Call) Return added in v0.46.0

func (*SealingObservation_QualifiesForEmergencySealing_Call) Run added in v0.46.0

func (*SealingObservation_QualifiesForEmergencySealing_Call) RunAndReturn added in v0.46.0

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) EXPECT added in v0.46.0

func (*SealingTracker) NewSealingObservation added in v0.18.3

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

NewSealingObservation provides a mock function for the type SealingTracker

type SealingTracker_Expecter added in v0.46.0

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

func (*SealingTracker_Expecter) NewSealingObservation added in v0.46.0

func (_e *SealingTracker_Expecter) NewSealingObservation(finalizedBlock interface{}, seal interface{}, sealedBlock interface{}) *SealingTracker_NewSealingObservation_Call

NewSealingObservation is a helper method to define mock.On call

  • finalizedBlock *flow.Header
  • seal *flow.Seal
  • sealedBlock *flow.Header

type SealingTracker_NewSealingObservation_Call added in v0.46.0

type SealingTracker_NewSealingObservation_Call struct {
	*mock.Call
}

SealingTracker_NewSealingObservation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewSealingObservation'

func (*SealingTracker_NewSealingObservation_Call) Return added in v0.46.0

func (*SealingTracker_NewSealingObservation_Call) Run added in v0.46.0

func (*SealingTracker_NewSealingObservation_Call) RunAndReturn added in v0.46.0

Jump to

Keyboard shortcuts

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