mock

package
v0.46.2-util-remove-ex... Latest Latest
Warning

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

Go to latest
Published: Feb 24, 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 AssignmentCollector

type AssignmentCollector struct {
	mock.Mock
}

AssignmentCollector is an autogenerated mock type for the AssignmentCollector type

func NewAssignmentCollector added in v0.26.1

func NewAssignmentCollector(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssignmentCollector

NewAssignmentCollector creates a new instance of AssignmentCollector. 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 (*AssignmentCollector) Block

func (_mock *AssignmentCollector) Block() *flow.Header

Block provides a mock function for the type AssignmentCollector

func (*AssignmentCollector) BlockID

func (_mock *AssignmentCollector) BlockID() flow.Identifier

BlockID provides a mock function for the type AssignmentCollector

func (*AssignmentCollector) ChangeProcessingStatus

func (_mock *AssignmentCollector) ChangeProcessingStatus(expectedValue approvals.ProcessingStatus, newValue approvals.ProcessingStatus) error

ChangeProcessingStatus provides a mock function for the type AssignmentCollector

func (*AssignmentCollector) CheckEmergencySealing

func (_mock *AssignmentCollector) CheckEmergencySealing(observer consensus.SealingObservation, finalizedBlockHeight uint64) error

CheckEmergencySealing provides a mock function for the type AssignmentCollector

func (*AssignmentCollector) EXPECT added in v0.46.0

func (*AssignmentCollector) ProcessApproval

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

ProcessApproval provides a mock function for the type AssignmentCollector

func (*AssignmentCollector) ProcessIncorporatedResult

func (_mock *AssignmentCollector) ProcessIncorporatedResult(incorporatedResult *flow.IncorporatedResult) error

ProcessIncorporatedResult provides a mock function for the type AssignmentCollector

func (*AssignmentCollector) ProcessingStatus

func (_mock *AssignmentCollector) ProcessingStatus() approvals.ProcessingStatus

ProcessingStatus provides a mock function for the type AssignmentCollector

func (*AssignmentCollector) RequestMissingApprovals

func (_mock *AssignmentCollector) RequestMissingApprovals(observer consensus.SealingObservation, maxHeightForRequesting uint64) (uint, error)

RequestMissingApprovals provides a mock function for the type AssignmentCollector

func (*AssignmentCollector) Result

func (_mock *AssignmentCollector) Result() *flow.ExecutionResult

Result provides a mock function for the type AssignmentCollector

func (*AssignmentCollector) ResultID

func (_mock *AssignmentCollector) ResultID() flow.Identifier

ResultID provides a mock function for the type AssignmentCollector

type AssignmentCollectorState

type AssignmentCollectorState struct {
	mock.Mock
}

AssignmentCollectorState is an autogenerated mock type for the AssignmentCollectorState type

func NewAssignmentCollectorState added in v0.26.1

func NewAssignmentCollectorState(t interface {
	mock.TestingT
	Cleanup(func())
}) *AssignmentCollectorState

NewAssignmentCollectorState creates a new instance of AssignmentCollectorState. 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 (*AssignmentCollectorState) Block

func (_mock *AssignmentCollectorState) Block() *flow.Header

Block provides a mock function for the type AssignmentCollectorState

func (*AssignmentCollectorState) BlockID

func (_mock *AssignmentCollectorState) BlockID() flow.Identifier

BlockID provides a mock function for the type AssignmentCollectorState

func (*AssignmentCollectorState) CheckEmergencySealing

func (_mock *AssignmentCollectorState) CheckEmergencySealing(observer consensus.SealingObservation, finalizedBlockHeight uint64) error

CheckEmergencySealing provides a mock function for the type AssignmentCollectorState

func (*AssignmentCollectorState) EXPECT added in v0.46.0

func (*AssignmentCollectorState) ProcessApproval

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

ProcessApproval provides a mock function for the type AssignmentCollectorState

func (*AssignmentCollectorState) ProcessIncorporatedResult

func (_mock *AssignmentCollectorState) ProcessIncorporatedResult(incorporatedResult *flow.IncorporatedResult) error

ProcessIncorporatedResult provides a mock function for the type AssignmentCollectorState

func (*AssignmentCollectorState) ProcessingStatus

func (_mock *AssignmentCollectorState) ProcessingStatus() approvals.ProcessingStatus

ProcessingStatus provides a mock function for the type AssignmentCollectorState

func (*AssignmentCollectorState) RequestMissingApprovals

func (_mock *AssignmentCollectorState) RequestMissingApprovals(observer consensus.SealingObservation, maxHeightForRequesting uint64) (uint, error)

RequestMissingApprovals provides a mock function for the type AssignmentCollectorState

func (*AssignmentCollectorState) Result

Result provides a mock function for the type AssignmentCollectorState

func (*AssignmentCollectorState) ResultID

func (_mock *AssignmentCollectorState) ResultID() flow.Identifier

ResultID provides a mock function for the type AssignmentCollectorState

type AssignmentCollectorState_BlockID_Call added in v0.46.0

type AssignmentCollectorState_BlockID_Call struct {
	*mock.Call
}

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

func (*AssignmentCollectorState_BlockID_Call) Return added in v0.46.0

func (*AssignmentCollectorState_BlockID_Call) Run added in v0.46.0

func (*AssignmentCollectorState_BlockID_Call) RunAndReturn added in v0.46.0

type AssignmentCollectorState_Block_Call added in v0.46.0

type AssignmentCollectorState_Block_Call struct {
	*mock.Call
}

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

func (*AssignmentCollectorState_Block_Call) Return added in v0.46.0

func (*AssignmentCollectorState_Block_Call) Run added in v0.46.0

func (*AssignmentCollectorState_Block_Call) RunAndReturn added in v0.46.0

type AssignmentCollectorState_CheckEmergencySealing_Call added in v0.46.0

type AssignmentCollectorState_CheckEmergencySealing_Call struct {
	*mock.Call
}

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

func (*AssignmentCollectorState_CheckEmergencySealing_Call) Return added in v0.46.0

func (*AssignmentCollectorState_CheckEmergencySealing_Call) Run added in v0.46.0

func (*AssignmentCollectorState_CheckEmergencySealing_Call) RunAndReturn added in v0.46.0

type AssignmentCollectorState_Expecter added in v0.46.0

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

func (*AssignmentCollectorState_Expecter) Block added in v0.46.0

Block is a helper method to define mock.On call

func (*AssignmentCollectorState_Expecter) BlockID added in v0.46.0

BlockID is a helper method to define mock.On call

func (*AssignmentCollectorState_Expecter) CheckEmergencySealing added in v0.46.0

func (_e *AssignmentCollectorState_Expecter) CheckEmergencySealing(observer interface{}, finalizedBlockHeight interface{}) *AssignmentCollectorState_CheckEmergencySealing_Call

CheckEmergencySealing is a helper method to define mock.On call

  • observer consensus.SealingObservation
  • finalizedBlockHeight uint64

func (*AssignmentCollectorState_Expecter) ProcessApproval added in v0.46.0

func (_e *AssignmentCollectorState_Expecter) ProcessApproval(approval interface{}) *AssignmentCollectorState_ProcessApproval_Call

ProcessApproval is a helper method to define mock.On call

  • approval *flow.ResultApproval

func (*AssignmentCollectorState_Expecter) ProcessIncorporatedResult added in v0.46.0

func (_e *AssignmentCollectorState_Expecter) ProcessIncorporatedResult(incorporatedResult interface{}) *AssignmentCollectorState_ProcessIncorporatedResult_Call

ProcessIncorporatedResult is a helper method to define mock.On call

  • incorporatedResult *flow.IncorporatedResult

func (*AssignmentCollectorState_Expecter) ProcessingStatus added in v0.46.0

ProcessingStatus is a helper method to define mock.On call

func (*AssignmentCollectorState_Expecter) RequestMissingApprovals added in v0.46.0

func (_e *AssignmentCollectorState_Expecter) RequestMissingApprovals(observer interface{}, maxHeightForRequesting interface{}) *AssignmentCollectorState_RequestMissingApprovals_Call

RequestMissingApprovals is a helper method to define mock.On call

  • observer consensus.SealingObservation
  • maxHeightForRequesting uint64

func (*AssignmentCollectorState_Expecter) Result added in v0.46.0

Result is a helper method to define mock.On call

func (*AssignmentCollectorState_Expecter) ResultID added in v0.46.0

ResultID is a helper method to define mock.On call

type AssignmentCollectorState_ProcessApproval_Call added in v0.46.0

type AssignmentCollectorState_ProcessApproval_Call struct {
	*mock.Call
}

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

func (*AssignmentCollectorState_ProcessApproval_Call) Return added in v0.46.0

func (*AssignmentCollectorState_ProcessApproval_Call) Run added in v0.46.0

func (*AssignmentCollectorState_ProcessApproval_Call) RunAndReturn added in v0.46.0

type AssignmentCollectorState_ProcessIncorporatedResult_Call added in v0.46.0

type AssignmentCollectorState_ProcessIncorporatedResult_Call struct {
	*mock.Call
}

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

func (*AssignmentCollectorState_ProcessIncorporatedResult_Call) Return added in v0.46.0

func (*AssignmentCollectorState_ProcessIncorporatedResult_Call) Run added in v0.46.0

func (*AssignmentCollectorState_ProcessIncorporatedResult_Call) RunAndReturn added in v0.46.0

type AssignmentCollectorState_ProcessingStatus_Call added in v0.46.0

type AssignmentCollectorState_ProcessingStatus_Call struct {
	*mock.Call
}

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

func (*AssignmentCollectorState_ProcessingStatus_Call) Return added in v0.46.0

func (*AssignmentCollectorState_ProcessingStatus_Call) Run added in v0.46.0

func (*AssignmentCollectorState_ProcessingStatus_Call) RunAndReturn added in v0.46.0

type AssignmentCollectorState_RequestMissingApprovals_Call added in v0.46.0

type AssignmentCollectorState_RequestMissingApprovals_Call struct {
	*mock.Call
}

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

func (*AssignmentCollectorState_RequestMissingApprovals_Call) Return added in v0.46.0

func (*AssignmentCollectorState_RequestMissingApprovals_Call) Run added in v0.46.0

func (*AssignmentCollectorState_RequestMissingApprovals_Call) RunAndReturn added in v0.46.0

type AssignmentCollectorState_ResultID_Call added in v0.46.0

type AssignmentCollectorState_ResultID_Call struct {
	*mock.Call
}

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

func (*AssignmentCollectorState_ResultID_Call) Return added in v0.46.0

func (*AssignmentCollectorState_ResultID_Call) Run added in v0.46.0

func (*AssignmentCollectorState_ResultID_Call) RunAndReturn added in v0.46.0

type AssignmentCollectorState_Result_Call added in v0.46.0

type AssignmentCollectorState_Result_Call struct {
	*mock.Call
}

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

func (*AssignmentCollectorState_Result_Call) Return added in v0.46.0

func (*AssignmentCollectorState_Result_Call) Run added in v0.46.0

func (*AssignmentCollectorState_Result_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_BlockID_Call added in v0.46.0

type AssignmentCollector_BlockID_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_BlockID_Call) Return added in v0.46.0

func (*AssignmentCollector_BlockID_Call) Run added in v0.46.0

func (*AssignmentCollector_BlockID_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_Block_Call added in v0.46.0

type AssignmentCollector_Block_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_Block_Call) Return added in v0.46.0

func (*AssignmentCollector_Block_Call) Run added in v0.46.0

func (*AssignmentCollector_Block_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_ChangeProcessingStatus_Call added in v0.46.0

type AssignmentCollector_ChangeProcessingStatus_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_ChangeProcessingStatus_Call) Return added in v0.46.0

func (*AssignmentCollector_ChangeProcessingStatus_Call) Run added in v0.46.0

func (*AssignmentCollector_ChangeProcessingStatus_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_CheckEmergencySealing_Call added in v0.46.0

type AssignmentCollector_CheckEmergencySealing_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_CheckEmergencySealing_Call) Return added in v0.46.0

func (*AssignmentCollector_CheckEmergencySealing_Call) Run added in v0.46.0

func (*AssignmentCollector_CheckEmergencySealing_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_Expecter added in v0.46.0

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

func (*AssignmentCollector_Expecter) Block added in v0.46.0

Block is a helper method to define mock.On call

func (*AssignmentCollector_Expecter) BlockID added in v0.46.0

BlockID is a helper method to define mock.On call

func (*AssignmentCollector_Expecter) ChangeProcessingStatus added in v0.46.0

func (_e *AssignmentCollector_Expecter) ChangeProcessingStatus(expectedValue interface{}, newValue interface{}) *AssignmentCollector_ChangeProcessingStatus_Call

ChangeProcessingStatus is a helper method to define mock.On call

  • expectedValue approvals.ProcessingStatus
  • newValue approvals.ProcessingStatus

func (*AssignmentCollector_Expecter) CheckEmergencySealing added in v0.46.0

func (_e *AssignmentCollector_Expecter) CheckEmergencySealing(observer interface{}, finalizedBlockHeight interface{}) *AssignmentCollector_CheckEmergencySealing_Call

CheckEmergencySealing is a helper method to define mock.On call

  • observer consensus.SealingObservation
  • finalizedBlockHeight uint64

func (*AssignmentCollector_Expecter) ProcessApproval added in v0.46.0

func (_e *AssignmentCollector_Expecter) ProcessApproval(approval interface{}) *AssignmentCollector_ProcessApproval_Call

ProcessApproval is a helper method to define mock.On call

  • approval *flow.ResultApproval

func (*AssignmentCollector_Expecter) ProcessIncorporatedResult added in v0.46.0

func (_e *AssignmentCollector_Expecter) ProcessIncorporatedResult(incorporatedResult interface{}) *AssignmentCollector_ProcessIncorporatedResult_Call

ProcessIncorporatedResult is a helper method to define mock.On call

  • incorporatedResult *flow.IncorporatedResult

func (*AssignmentCollector_Expecter) ProcessingStatus added in v0.46.0

ProcessingStatus is a helper method to define mock.On call

func (*AssignmentCollector_Expecter) RequestMissingApprovals added in v0.46.0

func (_e *AssignmentCollector_Expecter) RequestMissingApprovals(observer interface{}, maxHeightForRequesting interface{}) *AssignmentCollector_RequestMissingApprovals_Call

RequestMissingApprovals is a helper method to define mock.On call

  • observer consensus.SealingObservation
  • maxHeightForRequesting uint64

func (*AssignmentCollector_Expecter) Result added in v0.46.0

Result is a helper method to define mock.On call

func (*AssignmentCollector_Expecter) ResultID added in v0.46.0

ResultID is a helper method to define mock.On call

type AssignmentCollector_ProcessApproval_Call added in v0.46.0

type AssignmentCollector_ProcessApproval_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_ProcessApproval_Call) Return added in v0.46.0

func (*AssignmentCollector_ProcessApproval_Call) Run added in v0.46.0

func (*AssignmentCollector_ProcessApproval_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_ProcessIncorporatedResult_Call added in v0.46.0

type AssignmentCollector_ProcessIncorporatedResult_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_ProcessIncorporatedResult_Call) Return added in v0.46.0

func (*AssignmentCollector_ProcessIncorporatedResult_Call) Run added in v0.46.0

func (*AssignmentCollector_ProcessIncorporatedResult_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_ProcessingStatus_Call added in v0.46.0

type AssignmentCollector_ProcessingStatus_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_ProcessingStatus_Call) Return added in v0.46.0

func (*AssignmentCollector_ProcessingStatus_Call) Run added in v0.46.0

func (*AssignmentCollector_ProcessingStatus_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_RequestMissingApprovals_Call added in v0.46.0

type AssignmentCollector_RequestMissingApprovals_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_RequestMissingApprovals_Call) Return added in v0.46.0

func (*AssignmentCollector_RequestMissingApprovals_Call) Run added in v0.46.0

func (*AssignmentCollector_RequestMissingApprovals_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_ResultID_Call added in v0.46.0

type AssignmentCollector_ResultID_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_ResultID_Call) Return added in v0.46.0

func (*AssignmentCollector_ResultID_Call) Run added in v0.46.0

func (*AssignmentCollector_ResultID_Call) RunAndReturn added in v0.46.0

type AssignmentCollector_Result_Call added in v0.46.0

type AssignmentCollector_Result_Call struct {
	*mock.Call
}

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

func (*AssignmentCollector_Result_Call) Return added in v0.46.0

func (*AssignmentCollector_Result_Call) Run added in v0.46.0

func (*AssignmentCollector_Result_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