mocks

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: 9 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockProducer

type BlockProducer struct {
	mock.Mock
}

BlockProducer is an autogenerated mock type for the BlockProducer type

func NewBlockProducer added in v0.26.1

func NewBlockProducer(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockProducer

NewBlockProducer creates a new instance of BlockProducer. 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 (*BlockProducer) EXPECT added in v0.46.0

func (_m *BlockProducer) EXPECT() *BlockProducer_Expecter

func (*BlockProducer) MakeBlockProposal

func (_mock *BlockProducer) MakeBlockProposal(view uint64, qc *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*flow.ProposalHeader, error)

MakeBlockProposal provides a mock function for the type BlockProducer

type BlockProducer_Expecter added in v0.46.0

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

func (*BlockProducer_Expecter) MakeBlockProposal added in v0.46.0

func (_e *BlockProducer_Expecter) MakeBlockProposal(view interface{}, qc interface{}, lastViewTC interface{}) *BlockProducer_MakeBlockProposal_Call

MakeBlockProposal is a helper method to define mock.On call

  • view uint64
  • qc *flow.QuorumCertificate
  • lastViewTC *flow.TimeoutCertificate

type BlockProducer_MakeBlockProposal_Call added in v0.46.0

type BlockProducer_MakeBlockProposal_Call struct {
	*mock.Call
}

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

func (*BlockProducer_MakeBlockProposal_Call) Return added in v0.46.0

func (*BlockProducer_MakeBlockProposal_Call) Run added in v0.46.0

func (*BlockProducer_MakeBlockProposal_Call) RunAndReturn added in v0.46.0

type BlockSignerDecoder added in v0.26.17

type BlockSignerDecoder struct {
	mock.Mock
}

BlockSignerDecoder is an autogenerated mock type for the BlockSignerDecoder type

func NewBlockSignerDecoder added in v0.26.17

func NewBlockSignerDecoder(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockSignerDecoder

NewBlockSignerDecoder creates a new instance of BlockSignerDecoder. 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 (*BlockSignerDecoder) DecodeSignerIDs added in v0.26.17

func (_mock *BlockSignerDecoder) DecodeSignerIDs(header *flow.Header) (flow.IdentifierList, error)

DecodeSignerIDs provides a mock function for the type BlockSignerDecoder

func (*BlockSignerDecoder) EXPECT added in v0.46.0

type BlockSignerDecoder_DecodeSignerIDs_Call added in v0.46.0

type BlockSignerDecoder_DecodeSignerIDs_Call struct {
	*mock.Call
}

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

func (*BlockSignerDecoder_DecodeSignerIDs_Call) Return added in v0.46.0

func (*BlockSignerDecoder_DecodeSignerIDs_Call) Run added in v0.46.0

func (*BlockSignerDecoder_DecodeSignerIDs_Call) RunAndReturn added in v0.46.0

type BlockSignerDecoder_Expecter added in v0.46.0

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

func (*BlockSignerDecoder_Expecter) DecodeSignerIDs added in v0.46.0

func (_e *BlockSignerDecoder_Expecter) DecodeSignerIDs(header interface{}) *BlockSignerDecoder_DecodeSignerIDs_Call

DecodeSignerIDs is a helper method to define mock.On call

  • header *flow.Header

type CommunicatorConsumer added in v0.29.0

type CommunicatorConsumer struct {
	mock.Mock
}

CommunicatorConsumer is an autogenerated mock type for the CommunicatorConsumer type

func NewCommunicatorConsumer added in v0.29.0

func NewCommunicatorConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *CommunicatorConsumer

NewCommunicatorConsumer creates a new instance of CommunicatorConsumer. 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 (*CommunicatorConsumer) EXPECT added in v0.46.0

func (*CommunicatorConsumer) OnOwnProposal added in v0.29.0

func (_mock *CommunicatorConsumer) OnOwnProposal(proposal *flow.ProposalHeader, targetPublicationTime time.Time)

OnOwnProposal provides a mock function for the type CommunicatorConsumer

func (*CommunicatorConsumer) OnOwnTimeout added in v0.29.0

func (_mock *CommunicatorConsumer) OnOwnTimeout(timeout *model.TimeoutObject)

OnOwnTimeout provides a mock function for the type CommunicatorConsumer

func (*CommunicatorConsumer) OnOwnVote added in v0.29.0

func (_mock *CommunicatorConsumer) OnOwnVote(vote *model.Vote, recipientID flow.Identifier)

OnOwnVote provides a mock function for the type CommunicatorConsumer

type CommunicatorConsumer_Expecter added in v0.46.0

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

func (*CommunicatorConsumer_Expecter) OnOwnProposal added in v0.46.0

func (_e *CommunicatorConsumer_Expecter) OnOwnProposal(proposal interface{}, targetPublicationTime interface{}) *CommunicatorConsumer_OnOwnProposal_Call

OnOwnProposal is a helper method to define mock.On call

  • proposal *flow.ProposalHeader
  • targetPublicationTime time.Time

func (*CommunicatorConsumer_Expecter) OnOwnTimeout added in v0.46.0

func (_e *CommunicatorConsumer_Expecter) OnOwnTimeout(timeout interface{}) *CommunicatorConsumer_OnOwnTimeout_Call

OnOwnTimeout is a helper method to define mock.On call

  • timeout *model.TimeoutObject

func (*CommunicatorConsumer_Expecter) OnOwnVote added in v0.46.0

func (_e *CommunicatorConsumer_Expecter) OnOwnVote(vote interface{}, recipientID interface{}) *CommunicatorConsumer_OnOwnVote_Call

OnOwnVote is a helper method to define mock.On call

  • vote *model.Vote
  • recipientID flow.Identifier

type CommunicatorConsumer_OnOwnProposal_Call added in v0.46.0

type CommunicatorConsumer_OnOwnProposal_Call struct {
	*mock.Call
}

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

func (*CommunicatorConsumer_OnOwnProposal_Call) Return added in v0.46.0

func (*CommunicatorConsumer_OnOwnProposal_Call) Run added in v0.46.0

func (*CommunicatorConsumer_OnOwnProposal_Call) RunAndReturn added in v0.46.0

func (_c *CommunicatorConsumer_OnOwnProposal_Call) RunAndReturn(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *CommunicatorConsumer_OnOwnProposal_Call

type CommunicatorConsumer_OnOwnTimeout_Call added in v0.46.0

type CommunicatorConsumer_OnOwnTimeout_Call struct {
	*mock.Call
}

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

func (*CommunicatorConsumer_OnOwnTimeout_Call) Return added in v0.46.0

func (*CommunicatorConsumer_OnOwnTimeout_Call) Run added in v0.46.0

func (*CommunicatorConsumer_OnOwnTimeout_Call) RunAndReturn added in v0.46.0

type CommunicatorConsumer_OnOwnVote_Call added in v0.46.0

type CommunicatorConsumer_OnOwnVote_Call struct {
	*mock.Call
}

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

func (*CommunicatorConsumer_OnOwnVote_Call) Return added in v0.46.0

func (*CommunicatorConsumer_OnOwnVote_Call) Run added in v0.46.0

func (*CommunicatorConsumer_OnOwnVote_Call) RunAndReturn added in v0.46.0

func (_c *CommunicatorConsumer_OnOwnVote_Call) RunAndReturn(run func(vote *model.Vote, recipientID flow.Identifier)) *CommunicatorConsumer_OnOwnVote_Call

type Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func NewConsumer added in v0.26.1

func NewConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Consumer

NewConsumer creates a new instance of Consumer. 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 (*Consumer) EXPECT added in v0.46.0

func (_m *Consumer) EXPECT() *Consumer_Expecter

func (*Consumer) OnBlockIncorporated

func (_mock *Consumer) OnBlockIncorporated(block *model.Block)

OnBlockIncorporated provides a mock function for the type Consumer

func (*Consumer) OnCurrentViewDetails added in v0.29.6

func (_mock *Consumer) OnCurrentViewDetails(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)

OnCurrentViewDetails provides a mock function for the type Consumer

func (*Consumer) OnDoubleProposeDetected

func (_mock *Consumer) OnDoubleProposeDetected(block *model.Block, block1 *model.Block)

OnDoubleProposeDetected provides a mock function for the type Consumer

func (*Consumer) OnEventProcessed

func (_mock *Consumer) OnEventProcessed()

OnEventProcessed provides a mock function for the type Consumer

func (*Consumer) OnFinalizedBlock

func (_mock *Consumer) OnFinalizedBlock(block *model.Block)

OnFinalizedBlock provides a mock function for the type Consumer

func (*Consumer) OnInvalidBlockDetected added in v0.31.0

func (_mock *Consumer) OnInvalidBlockDetected(err flow.Slashable[model.InvalidProposalError])

OnInvalidBlockDetected provides a mock function for the type Consumer

func (*Consumer) OnLocalTimeout added in v0.29.0

func (_mock *Consumer) OnLocalTimeout(currentView uint64)

OnLocalTimeout provides a mock function for the type Consumer

func (*Consumer) OnOwnProposal added in v0.29.0

func (_mock *Consumer) OnOwnProposal(proposal *flow.ProposalHeader, targetPublicationTime time.Time)

OnOwnProposal provides a mock function for the type Consumer

func (*Consumer) OnOwnTimeout added in v0.29.0

func (_mock *Consumer) OnOwnTimeout(timeout *model.TimeoutObject)

OnOwnTimeout provides a mock function for the type Consumer

func (*Consumer) OnOwnVote added in v0.29.0

func (_mock *Consumer) OnOwnVote(vote *model.Vote, recipientID flow.Identifier)

OnOwnVote provides a mock function for the type Consumer

func (*Consumer) OnPartialTc added in v0.29.0

func (_mock *Consumer) OnPartialTc(currentView uint64, partialTc *hotstuff.PartialTcCreated)

OnPartialTc provides a mock function for the type Consumer

func (*Consumer) OnQcTriggeredViewChange

func (_mock *Consumer) OnQcTriggeredViewChange(oldView uint64, newView uint64, qc *flow.QuorumCertificate)

OnQcTriggeredViewChange provides a mock function for the type Consumer

func (*Consumer) OnReceiveProposal

func (_mock *Consumer) OnReceiveProposal(currentView uint64, proposal *model.SignedProposal)

OnReceiveProposal provides a mock function for the type Consumer

func (*Consumer) OnReceiveQc added in v0.29.0

func (_mock *Consumer) OnReceiveQc(currentView uint64, qc *flow.QuorumCertificate)

OnReceiveQc provides a mock function for the type Consumer

func (*Consumer) OnReceiveTc added in v0.29.0

func (_mock *Consumer) OnReceiveTc(currentView uint64, tc *flow.TimeoutCertificate)

OnReceiveTc provides a mock function for the type Consumer

func (*Consumer) OnStart added in v0.29.0

func (_mock *Consumer) OnStart(currentView uint64)

OnStart provides a mock function for the type Consumer

func (*Consumer) OnStartingTimeout

func (_mock *Consumer) OnStartingTimeout(timerInfo model.TimerInfo)

OnStartingTimeout provides a mock function for the type Consumer

func (*Consumer) OnTcTriggeredViewChange added in v0.29.0

func (_mock *Consumer) OnTcTriggeredViewChange(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)

OnTcTriggeredViewChange provides a mock function for the type Consumer

func (*Consumer) OnViewChange added in v0.29.0

func (_mock *Consumer) OnViewChange(oldView uint64, newView uint64)

OnViewChange provides a mock function for the type Consumer

type Consumer_Expecter added in v0.46.0

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

func (*Consumer_Expecter) OnBlockIncorporated added in v0.46.0

func (_e *Consumer_Expecter) OnBlockIncorporated(block interface{}) *Consumer_OnBlockIncorporated_Call

OnBlockIncorporated is a helper method to define mock.On call

  • block *model.Block

func (*Consumer_Expecter) OnCurrentViewDetails added in v0.46.0

func (_e *Consumer_Expecter) OnCurrentViewDetails(currentView interface{}, finalizedView interface{}, currentLeader interface{}) *Consumer_OnCurrentViewDetails_Call

OnCurrentViewDetails is a helper method to define mock.On call

  • currentView uint64
  • finalizedView uint64
  • currentLeader flow.Identifier

func (*Consumer_Expecter) OnDoubleProposeDetected added in v0.46.0

func (_e *Consumer_Expecter) OnDoubleProposeDetected(block interface{}, block1 interface{}) *Consumer_OnDoubleProposeDetected_Call

OnDoubleProposeDetected is a helper method to define mock.On call

  • block *model.Block
  • block1 *model.Block

func (*Consumer_Expecter) OnEventProcessed added in v0.46.0

func (_e *Consumer_Expecter) OnEventProcessed() *Consumer_OnEventProcessed_Call

OnEventProcessed is a helper method to define mock.On call

func (*Consumer_Expecter) OnFinalizedBlock added in v0.46.0

func (_e *Consumer_Expecter) OnFinalizedBlock(block interface{}) *Consumer_OnFinalizedBlock_Call

OnFinalizedBlock is a helper method to define mock.On call

  • block *model.Block

func (*Consumer_Expecter) OnInvalidBlockDetected added in v0.46.0

func (_e *Consumer_Expecter) OnInvalidBlockDetected(err interface{}) *Consumer_OnInvalidBlockDetected_Call

OnInvalidBlockDetected is a helper method to define mock.On call

  • err flow.Slashable[model.InvalidProposalError]

func (*Consumer_Expecter) OnLocalTimeout added in v0.46.0

func (_e *Consumer_Expecter) OnLocalTimeout(currentView interface{}) *Consumer_OnLocalTimeout_Call

OnLocalTimeout is a helper method to define mock.On call

  • currentView uint64

func (*Consumer_Expecter) OnOwnProposal added in v0.46.0

func (_e *Consumer_Expecter) OnOwnProposal(proposal interface{}, targetPublicationTime interface{}) *Consumer_OnOwnProposal_Call

OnOwnProposal is a helper method to define mock.On call

  • proposal *flow.ProposalHeader
  • targetPublicationTime time.Time

func (*Consumer_Expecter) OnOwnTimeout added in v0.46.0

func (_e *Consumer_Expecter) OnOwnTimeout(timeout interface{}) *Consumer_OnOwnTimeout_Call

OnOwnTimeout is a helper method to define mock.On call

  • timeout *model.TimeoutObject

func (*Consumer_Expecter) OnOwnVote added in v0.46.0

func (_e *Consumer_Expecter) OnOwnVote(vote interface{}, recipientID interface{}) *Consumer_OnOwnVote_Call

OnOwnVote is a helper method to define mock.On call

  • vote *model.Vote
  • recipientID flow.Identifier

func (*Consumer_Expecter) OnPartialTc added in v0.46.0

func (_e *Consumer_Expecter) OnPartialTc(currentView interface{}, partialTc interface{}) *Consumer_OnPartialTc_Call

OnPartialTc is a helper method to define mock.On call

  • currentView uint64
  • partialTc *hotstuff.PartialTcCreated

func (*Consumer_Expecter) OnQcTriggeredViewChange added in v0.46.0

func (_e *Consumer_Expecter) OnQcTriggeredViewChange(oldView interface{}, newView interface{}, qc interface{}) *Consumer_OnQcTriggeredViewChange_Call

OnQcTriggeredViewChange is a helper method to define mock.On call

  • oldView uint64
  • newView uint64
  • qc *flow.QuorumCertificate

func (*Consumer_Expecter) OnReceiveProposal added in v0.46.0

func (_e *Consumer_Expecter) OnReceiveProposal(currentView interface{}, proposal interface{}) *Consumer_OnReceiveProposal_Call

OnReceiveProposal is a helper method to define mock.On call

  • currentView uint64
  • proposal *model.SignedProposal

func (*Consumer_Expecter) OnReceiveQc added in v0.46.0

func (_e *Consumer_Expecter) OnReceiveQc(currentView interface{}, qc interface{}) *Consumer_OnReceiveQc_Call

OnReceiveQc is a helper method to define mock.On call

  • currentView uint64
  • qc *flow.QuorumCertificate

func (*Consumer_Expecter) OnReceiveTc added in v0.46.0

func (_e *Consumer_Expecter) OnReceiveTc(currentView interface{}, tc interface{}) *Consumer_OnReceiveTc_Call

OnReceiveTc is a helper method to define mock.On call

  • currentView uint64
  • tc *flow.TimeoutCertificate

func (*Consumer_Expecter) OnStart added in v0.46.0

func (_e *Consumer_Expecter) OnStart(currentView interface{}) *Consumer_OnStart_Call

OnStart is a helper method to define mock.On call

  • currentView uint64

func (*Consumer_Expecter) OnStartingTimeout added in v0.46.0

func (_e *Consumer_Expecter) OnStartingTimeout(timerInfo interface{}) *Consumer_OnStartingTimeout_Call

OnStartingTimeout is a helper method to define mock.On call

  • timerInfo model.TimerInfo

func (*Consumer_Expecter) OnTcTriggeredViewChange added in v0.46.0

func (_e *Consumer_Expecter) OnTcTriggeredViewChange(oldView interface{}, newView interface{}, tc interface{}) *Consumer_OnTcTriggeredViewChange_Call

OnTcTriggeredViewChange is a helper method to define mock.On call

  • oldView uint64
  • newView uint64
  • tc *flow.TimeoutCertificate

func (*Consumer_Expecter) OnViewChange added in v0.46.0

func (_e *Consumer_Expecter) OnViewChange(oldView interface{}, newView interface{}) *Consumer_OnViewChange_Call

OnViewChange is a helper method to define mock.On call

  • oldView uint64
  • newView uint64

type Consumer_OnBlockIncorporated_Call added in v0.46.0

type Consumer_OnBlockIncorporated_Call struct {
	*mock.Call
}

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

func (*Consumer_OnBlockIncorporated_Call) Return added in v0.46.0

func (*Consumer_OnBlockIncorporated_Call) Run added in v0.46.0

func (*Consumer_OnBlockIncorporated_Call) RunAndReturn added in v0.46.0

type Consumer_OnCurrentViewDetails_Call added in v0.46.0

type Consumer_OnCurrentViewDetails_Call struct {
	*mock.Call
}

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

func (*Consumer_OnCurrentViewDetails_Call) Return added in v0.46.0

func (*Consumer_OnCurrentViewDetails_Call) Run added in v0.46.0

func (_c *Consumer_OnCurrentViewDetails_Call) Run(run func(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)) *Consumer_OnCurrentViewDetails_Call

func (*Consumer_OnCurrentViewDetails_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnCurrentViewDetails_Call) RunAndReturn(run func(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)) *Consumer_OnCurrentViewDetails_Call

type Consumer_OnDoubleProposeDetected_Call added in v0.46.0

type Consumer_OnDoubleProposeDetected_Call struct {
	*mock.Call
}

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

func (*Consumer_OnDoubleProposeDetected_Call) Return added in v0.46.0

func (*Consumer_OnDoubleProposeDetected_Call) Run added in v0.46.0

func (*Consumer_OnDoubleProposeDetected_Call) RunAndReturn added in v0.46.0

type Consumer_OnEventProcessed_Call added in v0.46.0

type Consumer_OnEventProcessed_Call struct {
	*mock.Call
}

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

func (*Consumer_OnEventProcessed_Call) Return added in v0.46.0

func (*Consumer_OnEventProcessed_Call) Run added in v0.46.0

func (*Consumer_OnEventProcessed_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnEventProcessed_Call) RunAndReturn(run func()) *Consumer_OnEventProcessed_Call

type Consumer_OnFinalizedBlock_Call added in v0.46.0

type Consumer_OnFinalizedBlock_Call struct {
	*mock.Call
}

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

func (*Consumer_OnFinalizedBlock_Call) Return added in v0.46.0

func (*Consumer_OnFinalizedBlock_Call) Run added in v0.46.0

func (*Consumer_OnFinalizedBlock_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnFinalizedBlock_Call) RunAndReturn(run func(block *model.Block)) *Consumer_OnFinalizedBlock_Call

type Consumer_OnInvalidBlockDetected_Call added in v0.46.0

type Consumer_OnInvalidBlockDetected_Call struct {
	*mock.Call
}

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

func (*Consumer_OnInvalidBlockDetected_Call) Return added in v0.46.0

func (*Consumer_OnInvalidBlockDetected_Call) Run added in v0.46.0

func (*Consumer_OnInvalidBlockDetected_Call) RunAndReturn added in v0.46.0

type Consumer_OnLocalTimeout_Call added in v0.46.0

type Consumer_OnLocalTimeout_Call struct {
	*mock.Call
}

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

func (*Consumer_OnLocalTimeout_Call) Return added in v0.46.0

func (*Consumer_OnLocalTimeout_Call) Run added in v0.46.0

func (_c *Consumer_OnLocalTimeout_Call) Run(run func(currentView uint64)) *Consumer_OnLocalTimeout_Call

func (*Consumer_OnLocalTimeout_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnLocalTimeout_Call) RunAndReturn(run func(currentView uint64)) *Consumer_OnLocalTimeout_Call

type Consumer_OnOwnProposal_Call added in v0.46.0

type Consumer_OnOwnProposal_Call struct {
	*mock.Call
}

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

func (*Consumer_OnOwnProposal_Call) Return added in v0.46.0

func (*Consumer_OnOwnProposal_Call) Run added in v0.46.0

func (_c *Consumer_OnOwnProposal_Call) Run(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *Consumer_OnOwnProposal_Call

func (*Consumer_OnOwnProposal_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnOwnProposal_Call) RunAndReturn(run func(proposal *flow.ProposalHeader, targetPublicationTime time.Time)) *Consumer_OnOwnProposal_Call

type Consumer_OnOwnTimeout_Call added in v0.46.0

type Consumer_OnOwnTimeout_Call struct {
	*mock.Call
}

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

func (*Consumer_OnOwnTimeout_Call) Return added in v0.46.0

func (*Consumer_OnOwnTimeout_Call) Run added in v0.46.0

func (*Consumer_OnOwnTimeout_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnOwnTimeout_Call) RunAndReturn(run func(timeout *model.TimeoutObject)) *Consumer_OnOwnTimeout_Call

type Consumer_OnOwnVote_Call added in v0.46.0

type Consumer_OnOwnVote_Call struct {
	*mock.Call
}

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

func (*Consumer_OnOwnVote_Call) Return added in v0.46.0

func (*Consumer_OnOwnVote_Call) Run added in v0.46.0

func (_c *Consumer_OnOwnVote_Call) Run(run func(vote *model.Vote, recipientID flow.Identifier)) *Consumer_OnOwnVote_Call

func (*Consumer_OnOwnVote_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnOwnVote_Call) RunAndReturn(run func(vote *model.Vote, recipientID flow.Identifier)) *Consumer_OnOwnVote_Call

type Consumer_OnPartialTc_Call added in v0.46.0

type Consumer_OnPartialTc_Call struct {
	*mock.Call
}

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

func (*Consumer_OnPartialTc_Call) Return added in v0.46.0

func (*Consumer_OnPartialTc_Call) Run added in v0.46.0

func (_c *Consumer_OnPartialTc_Call) Run(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *Consumer_OnPartialTc_Call

func (*Consumer_OnPartialTc_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnPartialTc_Call) RunAndReturn(run func(currentView uint64, partialTc *hotstuff.PartialTcCreated)) *Consumer_OnPartialTc_Call

type Consumer_OnQcTriggeredViewChange_Call added in v0.46.0

type Consumer_OnQcTriggeredViewChange_Call struct {
	*mock.Call
}

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

func (*Consumer_OnQcTriggeredViewChange_Call) Return added in v0.46.0

func (*Consumer_OnQcTriggeredViewChange_Call) Run added in v0.46.0

func (*Consumer_OnQcTriggeredViewChange_Call) RunAndReturn added in v0.46.0

type Consumer_OnReceiveProposal_Call added in v0.46.0

type Consumer_OnReceiveProposal_Call struct {
	*mock.Call
}

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

func (*Consumer_OnReceiveProposal_Call) Return added in v0.46.0

func (*Consumer_OnReceiveProposal_Call) Run added in v0.46.0

func (*Consumer_OnReceiveProposal_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnReceiveProposal_Call) RunAndReturn(run func(currentView uint64, proposal *model.SignedProposal)) *Consumer_OnReceiveProposal_Call

type Consumer_OnReceiveQc_Call added in v0.46.0

type Consumer_OnReceiveQc_Call struct {
	*mock.Call
}

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

func (*Consumer_OnReceiveQc_Call) Return added in v0.46.0

func (*Consumer_OnReceiveQc_Call) Run added in v0.46.0

func (*Consumer_OnReceiveQc_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnReceiveQc_Call) RunAndReturn(run func(currentView uint64, qc *flow.QuorumCertificate)) *Consumer_OnReceiveQc_Call

type Consumer_OnReceiveTc_Call added in v0.46.0

type Consumer_OnReceiveTc_Call struct {
	*mock.Call
}

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

func (*Consumer_OnReceiveTc_Call) Return added in v0.46.0

func (*Consumer_OnReceiveTc_Call) Run added in v0.46.0

func (*Consumer_OnReceiveTc_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnReceiveTc_Call) RunAndReturn(run func(currentView uint64, tc *flow.TimeoutCertificate)) *Consumer_OnReceiveTc_Call

type Consumer_OnStart_Call added in v0.46.0

type Consumer_OnStart_Call struct {
	*mock.Call
}

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

func (*Consumer_OnStart_Call) Return added in v0.46.0

func (*Consumer_OnStart_Call) Run added in v0.46.0

func (_c *Consumer_OnStart_Call) Run(run func(currentView uint64)) *Consumer_OnStart_Call

func (*Consumer_OnStart_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnStart_Call) RunAndReturn(run func(currentView uint64)) *Consumer_OnStart_Call

type Consumer_OnStartingTimeout_Call added in v0.46.0

type Consumer_OnStartingTimeout_Call struct {
	*mock.Call
}

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

func (*Consumer_OnStartingTimeout_Call) Return added in v0.46.0

func (*Consumer_OnStartingTimeout_Call) Run added in v0.46.0

func (*Consumer_OnStartingTimeout_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnStartingTimeout_Call) RunAndReturn(run func(timerInfo model.TimerInfo)) *Consumer_OnStartingTimeout_Call

type Consumer_OnTcTriggeredViewChange_Call added in v0.46.0

type Consumer_OnTcTriggeredViewChange_Call struct {
	*mock.Call
}

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

func (*Consumer_OnTcTriggeredViewChange_Call) Return added in v0.46.0

func (*Consumer_OnTcTriggeredViewChange_Call) Run added in v0.46.0

func (*Consumer_OnTcTriggeredViewChange_Call) RunAndReturn added in v0.46.0

type Consumer_OnViewChange_Call added in v0.46.0

type Consumer_OnViewChange_Call struct {
	*mock.Call
}

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

func (*Consumer_OnViewChange_Call) Return added in v0.46.0

func (*Consumer_OnViewChange_Call) Run added in v0.46.0

func (_c *Consumer_OnViewChange_Call) Run(run func(oldView uint64, newView uint64)) *Consumer_OnViewChange_Call

func (*Consumer_OnViewChange_Call) RunAndReturn added in v0.46.0

func (_c *Consumer_OnViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64)) *Consumer_OnViewChange_Call

type DKG

type DKG struct {
	mock.Mock
}

DKG is an autogenerated mock type for the DKG type

func NewDKG added in v0.26.1

func NewDKG(t interface {
	mock.TestingT
	Cleanup(func())
}) *DKG

NewDKG creates a new instance of DKG. 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 (*DKG) EXPECT added in v0.46.0

func (_m *DKG) EXPECT() *DKG_Expecter

func (*DKG) GroupKey

func (_mock *DKG) GroupKey() crypto.PublicKey

GroupKey provides a mock function for the type DKG

func (*DKG) Index

func (_mock *DKG) Index(nodeID flow.Identifier) (uint, error)

Index provides a mock function for the type DKG

func (*DKG) KeyShare

func (_mock *DKG) KeyShare(nodeID flow.Identifier) (crypto.PublicKey, error)

KeyShare provides a mock function for the type DKG

func (*DKG) KeyShares added in v0.39.0

func (_mock *DKG) KeyShares() []crypto.PublicKey

KeyShares provides a mock function for the type DKG

func (*DKG) NodeID added in v0.39.0

func (_mock *DKG) NodeID(index uint) (flow.Identifier, error)

NodeID provides a mock function for the type DKG

func (*DKG) Size

func (_mock *DKG) Size() uint

Size provides a mock function for the type DKG

type DKG_Expecter added in v0.46.0

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

func (*DKG_Expecter) GroupKey added in v0.46.0

func (_e *DKG_Expecter) GroupKey() *DKG_GroupKey_Call

GroupKey is a helper method to define mock.On call

func (*DKG_Expecter) Index added in v0.46.0

func (_e *DKG_Expecter) Index(nodeID interface{}) *DKG_Index_Call

Index is a helper method to define mock.On call

  • nodeID flow.Identifier

func (*DKG_Expecter) KeyShare added in v0.46.0

func (_e *DKG_Expecter) KeyShare(nodeID interface{}) *DKG_KeyShare_Call

KeyShare is a helper method to define mock.On call

  • nodeID flow.Identifier

func (*DKG_Expecter) KeyShares added in v0.46.0

func (_e *DKG_Expecter) KeyShares() *DKG_KeyShares_Call

KeyShares is a helper method to define mock.On call

func (*DKG_Expecter) NodeID added in v0.46.0

func (_e *DKG_Expecter) NodeID(index interface{}) *DKG_NodeID_Call

NodeID is a helper method to define mock.On call

  • index uint

func (*DKG_Expecter) Size added in v0.46.0

func (_e *DKG_Expecter) Size() *DKG_Size_Call

Size is a helper method to define mock.On call

type DKG_GroupKey_Call added in v0.46.0

type DKG_GroupKey_Call struct {
	*mock.Call
}

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

func (*DKG_GroupKey_Call) Return added in v0.46.0

func (_c *DKG_GroupKey_Call) Return(publicKey crypto.PublicKey) *DKG_GroupKey_Call

func (*DKG_GroupKey_Call) Run added in v0.46.0

func (_c *DKG_GroupKey_Call) Run(run func()) *DKG_GroupKey_Call

func (*DKG_GroupKey_Call) RunAndReturn added in v0.46.0

func (_c *DKG_GroupKey_Call) RunAndReturn(run func() crypto.PublicKey) *DKG_GroupKey_Call

type DKG_Index_Call added in v0.46.0

type DKG_Index_Call struct {
	*mock.Call
}

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

func (*DKG_Index_Call) Return added in v0.46.0

func (_c *DKG_Index_Call) Return(v uint, err error) *DKG_Index_Call

func (*DKG_Index_Call) Run added in v0.46.0

func (_c *DKG_Index_Call) Run(run func(nodeID flow.Identifier)) *DKG_Index_Call

func (*DKG_Index_Call) RunAndReturn added in v0.46.0

func (_c *DKG_Index_Call) RunAndReturn(run func(nodeID flow.Identifier) (uint, error)) *DKG_Index_Call

type DKG_KeyShare_Call added in v0.46.0

type DKG_KeyShare_Call struct {
	*mock.Call
}

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

func (*DKG_KeyShare_Call) Return added in v0.46.0

func (_c *DKG_KeyShare_Call) Return(publicKey crypto.PublicKey, err error) *DKG_KeyShare_Call

func (*DKG_KeyShare_Call) Run added in v0.46.0

func (_c *DKG_KeyShare_Call) Run(run func(nodeID flow.Identifier)) *DKG_KeyShare_Call

func (*DKG_KeyShare_Call) RunAndReturn added in v0.46.0

func (_c *DKG_KeyShare_Call) RunAndReturn(run func(nodeID flow.Identifier) (crypto.PublicKey, error)) *DKG_KeyShare_Call

type DKG_KeyShares_Call added in v0.46.0

type DKG_KeyShares_Call struct {
	*mock.Call
}

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

func (*DKG_KeyShares_Call) Return added in v0.46.0

func (_c *DKG_KeyShares_Call) Return(publicKeys []crypto.PublicKey) *DKG_KeyShares_Call

func (*DKG_KeyShares_Call) Run added in v0.46.0

func (_c *DKG_KeyShares_Call) Run(run func()) *DKG_KeyShares_Call

func (*DKG_KeyShares_Call) RunAndReturn added in v0.46.0

func (_c *DKG_KeyShares_Call) RunAndReturn(run func() []crypto.PublicKey) *DKG_KeyShares_Call

type DKG_NodeID_Call added in v0.46.0

type DKG_NodeID_Call struct {
	*mock.Call
}

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

func (*DKG_NodeID_Call) Return added in v0.46.0

func (_c *DKG_NodeID_Call) Return(identifier flow.Identifier, err error) *DKG_NodeID_Call

func (*DKG_NodeID_Call) Run added in v0.46.0

func (_c *DKG_NodeID_Call) Run(run func(index uint)) *DKG_NodeID_Call

func (*DKG_NodeID_Call) RunAndReturn added in v0.46.0

func (_c *DKG_NodeID_Call) RunAndReturn(run func(index uint) (flow.Identifier, error)) *DKG_NodeID_Call

type DKG_Size_Call added in v0.46.0

type DKG_Size_Call struct {
	*mock.Call
}

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

func (*DKG_Size_Call) Return added in v0.46.0

func (_c *DKG_Size_Call) Return(v uint) *DKG_Size_Call

func (*DKG_Size_Call) Run added in v0.46.0

func (_c *DKG_Size_Call) Run(run func()) *DKG_Size_Call

func (*DKG_Size_Call) RunAndReturn added in v0.46.0

func (_c *DKG_Size_Call) RunAndReturn(run func() uint) *DKG_Size_Call

type DynamicCommittee added in v0.29.0

type DynamicCommittee struct {
	mock.Mock
}

DynamicCommittee is an autogenerated mock type for the DynamicCommittee type

func NewDynamicCommittee added in v0.29.0

func NewDynamicCommittee(t interface {
	mock.TestingT
	Cleanup(func())
}) *DynamicCommittee

NewDynamicCommittee creates a new instance of DynamicCommittee. 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 (*DynamicCommittee) DKG added in v0.29.0

func (_mock *DynamicCommittee) DKG(view uint64) (hotstuff.DKG, error)

DKG provides a mock function for the type DynamicCommittee

func (*DynamicCommittee) EXPECT added in v0.46.0

func (*DynamicCommittee) IdentitiesByBlock added in v0.29.0

func (_mock *DynamicCommittee) IdentitiesByBlock(blockID flow.Identifier) (flow.IdentityList, error)

IdentitiesByBlock provides a mock function for the type DynamicCommittee

func (*DynamicCommittee) IdentitiesByEpoch added in v0.29.0

func (_mock *DynamicCommittee) IdentitiesByEpoch(view uint64) (flow.IdentitySkeletonList, error)

IdentitiesByEpoch provides a mock function for the type DynamicCommittee

func (*DynamicCommittee) IdentityByBlock added in v0.29.0

func (_mock *DynamicCommittee) IdentityByBlock(blockID flow.Identifier, participantID flow.Identifier) (*flow.Identity, error)

IdentityByBlock provides a mock function for the type DynamicCommittee

func (*DynamicCommittee) IdentityByEpoch added in v0.29.0

func (_mock *DynamicCommittee) IdentityByEpoch(view uint64, participantID flow.Identifier) (*flow.IdentitySkeleton, error)

IdentityByEpoch provides a mock function for the type DynamicCommittee

func (*DynamicCommittee) LeaderForView added in v0.29.0

func (_mock *DynamicCommittee) LeaderForView(view uint64) (flow.Identifier, error)

LeaderForView provides a mock function for the type DynamicCommittee

func (*DynamicCommittee) QuorumThresholdForView added in v0.29.0

func (_mock *DynamicCommittee) QuorumThresholdForView(view uint64) (uint64, error)

QuorumThresholdForView provides a mock function for the type DynamicCommittee

func (*DynamicCommittee) Self added in v0.29.0

func (_mock *DynamicCommittee) Self() flow.Identifier

Self provides a mock function for the type DynamicCommittee

func (*DynamicCommittee) TimeoutThresholdForView added in v0.29.0

func (_mock *DynamicCommittee) TimeoutThresholdForView(view uint64) (uint64, error)

TimeoutThresholdForView provides a mock function for the type DynamicCommittee

type DynamicCommittee_DKG_Call added in v0.46.0

type DynamicCommittee_DKG_Call struct {
	*mock.Call
}

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

func (*DynamicCommittee_DKG_Call) Return added in v0.46.0

func (*DynamicCommittee_DKG_Call) Run added in v0.46.0

func (*DynamicCommittee_DKG_Call) RunAndReturn added in v0.46.0

func (_c *DynamicCommittee_DKG_Call) RunAndReturn(run func(view uint64) (hotstuff.DKG, error)) *DynamicCommittee_DKG_Call

type DynamicCommittee_Expecter added in v0.46.0

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

func (*DynamicCommittee_Expecter) DKG added in v0.46.0

func (_e *DynamicCommittee_Expecter) DKG(view interface{}) *DynamicCommittee_DKG_Call

DKG is a helper method to define mock.On call

  • view uint64

func (*DynamicCommittee_Expecter) IdentitiesByBlock added in v0.46.0

func (_e *DynamicCommittee_Expecter) IdentitiesByBlock(blockID interface{}) *DynamicCommittee_IdentitiesByBlock_Call

IdentitiesByBlock is a helper method to define mock.On call

  • blockID flow.Identifier

func (*DynamicCommittee_Expecter) IdentitiesByEpoch added in v0.46.0

func (_e *DynamicCommittee_Expecter) IdentitiesByEpoch(view interface{}) *DynamicCommittee_IdentitiesByEpoch_Call

IdentitiesByEpoch is a helper method to define mock.On call

  • view uint64

func (*DynamicCommittee_Expecter) IdentityByBlock added in v0.46.0

func (_e *DynamicCommittee_Expecter) IdentityByBlock(blockID interface{}, participantID interface{}) *DynamicCommittee_IdentityByBlock_Call

IdentityByBlock is a helper method to define mock.On call

  • blockID flow.Identifier
  • participantID flow.Identifier

func (*DynamicCommittee_Expecter) IdentityByEpoch added in v0.46.0

func (_e *DynamicCommittee_Expecter) IdentityByEpoch(view interface{}, participantID interface{}) *DynamicCommittee_IdentityByEpoch_Call

IdentityByEpoch is a helper method to define mock.On call

  • view uint64
  • participantID flow.Identifier

func (*DynamicCommittee_Expecter) LeaderForView added in v0.46.0

func (_e *DynamicCommittee_Expecter) LeaderForView(view interface{}) *DynamicCommittee_LeaderForView_Call

LeaderForView is a helper method to define mock.On call

  • view uint64

func (*DynamicCommittee_Expecter) QuorumThresholdForView added in v0.46.0

func (_e *DynamicCommittee_Expecter) QuorumThresholdForView(view interface{}) *DynamicCommittee_QuorumThresholdForView_Call

QuorumThresholdForView is a helper method to define mock.On call

  • view uint64

func (*DynamicCommittee_Expecter) Self added in v0.46.0

Self is a helper method to define mock.On call

func (*DynamicCommittee_Expecter) TimeoutThresholdForView added in v0.46.0

func (_e *DynamicCommittee_Expecter) TimeoutThresholdForView(view interface{}) *DynamicCommittee_TimeoutThresholdForView_Call

TimeoutThresholdForView is a helper method to define mock.On call

  • view uint64

type DynamicCommittee_IdentitiesByBlock_Call added in v0.46.0

type DynamicCommittee_IdentitiesByBlock_Call struct {
	*mock.Call
}

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

func (*DynamicCommittee_IdentitiesByBlock_Call) Return added in v0.46.0

func (*DynamicCommittee_IdentitiesByBlock_Call) Run added in v0.46.0

func (*DynamicCommittee_IdentitiesByBlock_Call) RunAndReturn added in v0.46.0

type DynamicCommittee_IdentitiesByEpoch_Call added in v0.46.0

type DynamicCommittee_IdentitiesByEpoch_Call struct {
	*mock.Call
}

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

func (*DynamicCommittee_IdentitiesByEpoch_Call) Return added in v0.46.0

func (*DynamicCommittee_IdentitiesByEpoch_Call) Run added in v0.46.0

func (*DynamicCommittee_IdentitiesByEpoch_Call) RunAndReturn added in v0.46.0

type DynamicCommittee_IdentityByBlock_Call added in v0.46.0

type DynamicCommittee_IdentityByBlock_Call struct {
	*mock.Call
}

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

func (*DynamicCommittee_IdentityByBlock_Call) Return added in v0.46.0

func (*DynamicCommittee_IdentityByBlock_Call) Run added in v0.46.0

func (*DynamicCommittee_IdentityByBlock_Call) RunAndReturn added in v0.46.0

type DynamicCommittee_IdentityByEpoch_Call added in v0.46.0

type DynamicCommittee_IdentityByEpoch_Call struct {
	*mock.Call
}

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

func (*DynamicCommittee_IdentityByEpoch_Call) Return added in v0.46.0

func (*DynamicCommittee_IdentityByEpoch_Call) Run added in v0.46.0

func (*DynamicCommittee_IdentityByEpoch_Call) RunAndReturn added in v0.46.0

type DynamicCommittee_LeaderForView_Call added in v0.46.0

type DynamicCommittee_LeaderForView_Call struct {
	*mock.Call
}

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

func (*DynamicCommittee_LeaderForView_Call) Return added in v0.46.0

func (*DynamicCommittee_LeaderForView_Call) Run added in v0.46.0

func (*DynamicCommittee_LeaderForView_Call) RunAndReturn added in v0.46.0

type DynamicCommittee_QuorumThresholdForView_Call added in v0.46.0

type DynamicCommittee_QuorumThresholdForView_Call struct {
	*mock.Call
}

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

func (*DynamicCommittee_QuorumThresholdForView_Call) Return added in v0.46.0

func (*DynamicCommittee_QuorumThresholdForView_Call) Run added in v0.46.0

func (*DynamicCommittee_QuorumThresholdForView_Call) RunAndReturn added in v0.46.0

type DynamicCommittee_Self_Call added in v0.46.0

type DynamicCommittee_Self_Call struct {
	*mock.Call
}

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

func (*DynamicCommittee_Self_Call) Return added in v0.46.0

func (*DynamicCommittee_Self_Call) Run added in v0.46.0

func (*DynamicCommittee_Self_Call) RunAndReturn added in v0.46.0

type DynamicCommittee_TimeoutThresholdForView_Call added in v0.46.0

type DynamicCommittee_TimeoutThresholdForView_Call struct {
	*mock.Call
}

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

func (*DynamicCommittee_TimeoutThresholdForView_Call) Return added in v0.46.0

func (*DynamicCommittee_TimeoutThresholdForView_Call) Run added in v0.46.0

func (*DynamicCommittee_TimeoutThresholdForView_Call) RunAndReturn added in v0.46.0

type EventHandler

type EventHandler struct {
	mock.Mock
}

EventHandler is an autogenerated mock type for the EventHandler type

func NewEventHandler added in v0.26.1

func NewEventHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventHandler

NewEventHandler creates a new instance of EventHandler. 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 (*EventHandler) EXPECT added in v0.46.0

func (_m *EventHandler) EXPECT() *EventHandler_Expecter

func (*EventHandler) OnLocalTimeout

func (_mock *EventHandler) OnLocalTimeout() error

OnLocalTimeout provides a mock function for the type EventHandler

func (*EventHandler) OnPartialTcCreated added in v0.29.0

func (_mock *EventHandler) OnPartialTcCreated(partialTC *hotstuff.PartialTcCreated) error

OnPartialTcCreated provides a mock function for the type EventHandler

func (*EventHandler) OnReceiveProposal

func (_mock *EventHandler) OnReceiveProposal(proposal *model.SignedProposal) error

OnReceiveProposal provides a mock function for the type EventHandler

func (*EventHandler) OnReceiveQc added in v0.29.0

func (_mock *EventHandler) OnReceiveQc(qc *flow.QuorumCertificate) error

OnReceiveQc provides a mock function for the type EventHandler

func (*EventHandler) OnReceiveTc added in v0.29.0

func (_mock *EventHandler) OnReceiveTc(tc *flow.TimeoutCertificate) error

OnReceiveTc provides a mock function for the type EventHandler

func (*EventHandler) Start

func (_mock *EventHandler) Start(ctx context.Context) error

Start provides a mock function for the type EventHandler

func (*EventHandler) TimeoutChannel

func (_mock *EventHandler) TimeoutChannel() <-chan time.Time

TimeoutChannel provides a mock function for the type EventHandler

type EventHandler_Expecter added in v0.46.0

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

func (*EventHandler_Expecter) OnLocalTimeout added in v0.46.0

OnLocalTimeout is a helper method to define mock.On call

func (*EventHandler_Expecter) OnPartialTcCreated added in v0.46.0

func (_e *EventHandler_Expecter) OnPartialTcCreated(partialTC interface{}) *EventHandler_OnPartialTcCreated_Call

OnPartialTcCreated is a helper method to define mock.On call

  • partialTC *hotstuff.PartialTcCreated

func (*EventHandler_Expecter) OnReceiveProposal added in v0.46.0

func (_e *EventHandler_Expecter) OnReceiveProposal(proposal interface{}) *EventHandler_OnReceiveProposal_Call

OnReceiveProposal is a helper method to define mock.On call

  • proposal *model.SignedProposal

func (*EventHandler_Expecter) OnReceiveQc added in v0.46.0

func (_e *EventHandler_Expecter) OnReceiveQc(qc interface{}) *EventHandler_OnReceiveQc_Call

OnReceiveQc is a helper method to define mock.On call

  • qc *flow.QuorumCertificate

func (*EventHandler_Expecter) OnReceiveTc added in v0.46.0

func (_e *EventHandler_Expecter) OnReceiveTc(tc interface{}) *EventHandler_OnReceiveTc_Call

OnReceiveTc is a helper method to define mock.On call

  • tc *flow.TimeoutCertificate

func (*EventHandler_Expecter) Start added in v0.46.0

func (_e *EventHandler_Expecter) Start(ctx interface{}) *EventHandler_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*EventHandler_Expecter) TimeoutChannel added in v0.46.0

TimeoutChannel is a helper method to define mock.On call

type EventHandler_OnLocalTimeout_Call added in v0.46.0

type EventHandler_OnLocalTimeout_Call struct {
	*mock.Call
}

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

func (*EventHandler_OnLocalTimeout_Call) Return added in v0.46.0

func (*EventHandler_OnLocalTimeout_Call) Run added in v0.46.0

func (*EventHandler_OnLocalTimeout_Call) RunAndReturn added in v0.46.0

type EventHandler_OnPartialTcCreated_Call added in v0.46.0

type EventHandler_OnPartialTcCreated_Call struct {
	*mock.Call
}

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

func (*EventHandler_OnPartialTcCreated_Call) Return added in v0.46.0

func (*EventHandler_OnPartialTcCreated_Call) Run added in v0.46.0

func (*EventHandler_OnPartialTcCreated_Call) RunAndReturn added in v0.46.0

type EventHandler_OnReceiveProposal_Call added in v0.46.0

type EventHandler_OnReceiveProposal_Call struct {
	*mock.Call
}

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

func (*EventHandler_OnReceiveProposal_Call) Return added in v0.46.0

func (*EventHandler_OnReceiveProposal_Call) Run added in v0.46.0

func (*EventHandler_OnReceiveProposal_Call) RunAndReturn added in v0.46.0

type EventHandler_OnReceiveQc_Call added in v0.46.0

type EventHandler_OnReceiveQc_Call struct {
	*mock.Call
}

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

func (*EventHandler_OnReceiveQc_Call) Return added in v0.46.0

func (*EventHandler_OnReceiveQc_Call) Run added in v0.46.0

func (*EventHandler_OnReceiveQc_Call) RunAndReturn added in v0.46.0

type EventHandler_OnReceiveTc_Call added in v0.46.0

type EventHandler_OnReceiveTc_Call struct {
	*mock.Call
}

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

func (*EventHandler_OnReceiveTc_Call) Return added in v0.46.0

func (*EventHandler_OnReceiveTc_Call) Run added in v0.46.0

func (*EventHandler_OnReceiveTc_Call) RunAndReturn added in v0.46.0

type EventHandler_Start_Call added in v0.46.0

type EventHandler_Start_Call struct {
	*mock.Call
}

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

func (*EventHandler_Start_Call) Return added in v0.46.0

func (*EventHandler_Start_Call) Run added in v0.46.0

func (*EventHandler_Start_Call) RunAndReturn added in v0.46.0

func (_c *EventHandler_Start_Call) RunAndReturn(run func(ctx context.Context) error) *EventHandler_Start_Call

type EventHandler_TimeoutChannel_Call added in v0.46.0

type EventHandler_TimeoutChannel_Call struct {
	*mock.Call
}

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

func (*EventHandler_TimeoutChannel_Call) Return added in v0.46.0

func (*EventHandler_TimeoutChannel_Call) Run added in v0.46.0

func (*EventHandler_TimeoutChannel_Call) RunAndReturn added in v0.46.0

func (_c *EventHandler_TimeoutChannel_Call) RunAndReturn(run func() <-chan time.Time) *EventHandler_TimeoutChannel_Call

type EventLoop added in v0.23.9

type EventLoop struct {
	mock.Mock
}

EventLoop is an autogenerated mock type for the EventLoop type

func NewEventLoop added in v0.26.1

func NewEventLoop(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventLoop

NewEventLoop creates a new instance of EventLoop. 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 (*EventLoop) Done added in v0.23.9

func (_mock *EventLoop) Done() <-chan struct{}

Done provides a mock function for the type EventLoop

func (*EventLoop) EXPECT added in v0.46.0

func (_m *EventLoop) EXPECT() *EventLoop_Expecter

func (*EventLoop) OnNewQcDiscovered added in v0.29.0

func (_mock *EventLoop) OnNewQcDiscovered(certificate *flow.QuorumCertificate)

OnNewQcDiscovered provides a mock function for the type EventLoop

func (*EventLoop) OnNewTcDiscovered added in v0.29.0

func (_mock *EventLoop) OnNewTcDiscovered(certificate *flow.TimeoutCertificate)

OnNewTcDiscovered provides a mock function for the type EventLoop

func (*EventLoop) OnPartialTcCreated added in v0.29.0

func (_mock *EventLoop) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)

OnPartialTcCreated provides a mock function for the type EventLoop

func (*EventLoop) OnQcConstructedFromVotes added in v0.29.0

func (_mock *EventLoop) OnQcConstructedFromVotes(quorumCertificate *flow.QuorumCertificate)

OnQcConstructedFromVotes provides a mock function for the type EventLoop

func (*EventLoop) OnTcConstructedFromTimeouts added in v0.29.0

func (_mock *EventLoop) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate)

OnTcConstructedFromTimeouts provides a mock function for the type EventLoop

func (*EventLoop) OnTimeoutProcessed added in v0.31.0

func (_mock *EventLoop) OnTimeoutProcessed(timeout *model.TimeoutObject)

OnTimeoutProcessed provides a mock function for the type EventLoop

func (*EventLoop) OnVoteProcessed added in v0.31.0

func (_mock *EventLoop) OnVoteProcessed(vote *model.Vote)

OnVoteProcessed provides a mock function for the type EventLoop

func (*EventLoop) Ready added in v0.23.9

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

Ready provides a mock function for the type EventLoop

func (*EventLoop) Start added in v0.23.9

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

Start provides a mock function for the type EventLoop

func (*EventLoop) SubmitProposal added in v0.23.9

func (_mock *EventLoop) SubmitProposal(proposal *model.SignedProposal)

SubmitProposal provides a mock function for the type EventLoop

type EventLoop_Done_Call added in v0.46.0

type EventLoop_Done_Call struct {
	*mock.Call
}

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

func (*EventLoop_Done_Call) Return added in v0.46.0

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

func (*EventLoop_Done_Call) Run added in v0.46.0

func (_c *EventLoop_Done_Call) Run(run func()) *EventLoop_Done_Call

func (*EventLoop_Done_Call) RunAndReturn added in v0.46.0

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

type EventLoop_Expecter added in v0.46.0

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

func (*EventLoop_Expecter) Done added in v0.46.0

Done is a helper method to define mock.On call

func (*EventLoop_Expecter) OnNewQcDiscovered added in v0.46.0

func (_e *EventLoop_Expecter) OnNewQcDiscovered(certificate interface{}) *EventLoop_OnNewQcDiscovered_Call

OnNewQcDiscovered is a helper method to define mock.On call

  • certificate *flow.QuorumCertificate

func (*EventLoop_Expecter) OnNewTcDiscovered added in v0.46.0

func (_e *EventLoop_Expecter) OnNewTcDiscovered(certificate interface{}) *EventLoop_OnNewTcDiscovered_Call

OnNewTcDiscovered is a helper method to define mock.On call

  • certificate *flow.TimeoutCertificate

func (*EventLoop_Expecter) OnPartialTcCreated added in v0.46.0

func (_e *EventLoop_Expecter) OnPartialTcCreated(view interface{}, newestQC interface{}, lastViewTC interface{}) *EventLoop_OnPartialTcCreated_Call

OnPartialTcCreated is a helper method to define mock.On call

  • view uint64
  • newestQC *flow.QuorumCertificate
  • lastViewTC *flow.TimeoutCertificate

func (*EventLoop_Expecter) OnQcConstructedFromVotes added in v0.46.0

func (_e *EventLoop_Expecter) OnQcConstructedFromVotes(quorumCertificate interface{}) *EventLoop_OnQcConstructedFromVotes_Call

OnQcConstructedFromVotes is a helper method to define mock.On call

  • quorumCertificate *flow.QuorumCertificate

func (*EventLoop_Expecter) OnTcConstructedFromTimeouts added in v0.46.0

func (_e *EventLoop_Expecter) OnTcConstructedFromTimeouts(certificate interface{}) *EventLoop_OnTcConstructedFromTimeouts_Call

OnTcConstructedFromTimeouts is a helper method to define mock.On call

  • certificate *flow.TimeoutCertificate

func (*EventLoop_Expecter) OnTimeoutProcessed added in v0.46.0

func (_e *EventLoop_Expecter) OnTimeoutProcessed(timeout interface{}) *EventLoop_OnTimeoutProcessed_Call

OnTimeoutProcessed is a helper method to define mock.On call

  • timeout *model.TimeoutObject

func (*EventLoop_Expecter) OnVoteProcessed added in v0.46.0

func (_e *EventLoop_Expecter) OnVoteProcessed(vote interface{}) *EventLoop_OnVoteProcessed_Call

OnVoteProcessed is a helper method to define mock.On call

  • vote *model.Vote

func (*EventLoop_Expecter) Ready added in v0.46.0

Ready is a helper method to define mock.On call

func (*EventLoop_Expecter) Start added in v0.46.0

func (_e *EventLoop_Expecter) Start(signalerContext interface{}) *EventLoop_Start_Call

Start is a helper method to define mock.On call

  • signalerContext irrecoverable.SignalerContext

func (*EventLoop_Expecter) SubmitProposal added in v0.46.0

func (_e *EventLoop_Expecter) SubmitProposal(proposal interface{}) *EventLoop_SubmitProposal_Call

SubmitProposal is a helper method to define mock.On call

  • proposal *model.SignedProposal

type EventLoop_OnNewQcDiscovered_Call added in v0.46.0

type EventLoop_OnNewQcDiscovered_Call struct {
	*mock.Call
}

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

func (*EventLoop_OnNewQcDiscovered_Call) Return added in v0.46.0

func (*EventLoop_OnNewQcDiscovered_Call) Run added in v0.46.0

func (*EventLoop_OnNewQcDiscovered_Call) RunAndReturn added in v0.46.0

type EventLoop_OnNewTcDiscovered_Call added in v0.46.0

type EventLoop_OnNewTcDiscovered_Call struct {
	*mock.Call
}

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

func (*EventLoop_OnNewTcDiscovered_Call) Return added in v0.46.0

func (*EventLoop_OnNewTcDiscovered_Call) Run added in v0.46.0

func (*EventLoop_OnNewTcDiscovered_Call) RunAndReturn added in v0.46.0

type EventLoop_OnPartialTcCreated_Call added in v0.46.0

type EventLoop_OnPartialTcCreated_Call struct {
	*mock.Call
}

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

func (*EventLoop_OnPartialTcCreated_Call) Return added in v0.46.0

func (*EventLoop_OnPartialTcCreated_Call) Run added in v0.46.0

func (*EventLoop_OnPartialTcCreated_Call) RunAndReturn added in v0.46.0

type EventLoop_OnQcConstructedFromVotes_Call added in v0.46.0

type EventLoop_OnQcConstructedFromVotes_Call struct {
	*mock.Call
}

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

func (*EventLoop_OnQcConstructedFromVotes_Call) Return added in v0.46.0

func (*EventLoop_OnQcConstructedFromVotes_Call) Run added in v0.46.0

func (*EventLoop_OnQcConstructedFromVotes_Call) RunAndReturn added in v0.46.0

type EventLoop_OnTcConstructedFromTimeouts_Call added in v0.46.0

type EventLoop_OnTcConstructedFromTimeouts_Call struct {
	*mock.Call
}

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

func (*EventLoop_OnTcConstructedFromTimeouts_Call) Return added in v0.46.0

func (*EventLoop_OnTcConstructedFromTimeouts_Call) Run added in v0.46.0

func (*EventLoop_OnTcConstructedFromTimeouts_Call) RunAndReturn added in v0.46.0

type EventLoop_OnTimeoutProcessed_Call added in v0.46.0

type EventLoop_OnTimeoutProcessed_Call struct {
	*mock.Call
}

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

func (*EventLoop_OnTimeoutProcessed_Call) Return added in v0.46.0

func (*EventLoop_OnTimeoutProcessed_Call) Run added in v0.46.0

func (*EventLoop_OnTimeoutProcessed_Call) RunAndReturn added in v0.46.0

type EventLoop_OnVoteProcessed_Call added in v0.46.0

type EventLoop_OnVoteProcessed_Call struct {
	*mock.Call
}

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

func (*EventLoop_OnVoteProcessed_Call) Return added in v0.46.0

func (*EventLoop_OnVoteProcessed_Call) Run added in v0.46.0

func (*EventLoop_OnVoteProcessed_Call) RunAndReturn added in v0.46.0

func (_c *EventLoop_OnVoteProcessed_Call) RunAndReturn(run func(vote *model.Vote)) *EventLoop_OnVoteProcessed_Call

type EventLoop_Ready_Call added in v0.46.0

type EventLoop_Ready_Call struct {
	*mock.Call
}

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

func (*EventLoop_Ready_Call) Return added in v0.46.0

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

func (*EventLoop_Ready_Call) Run added in v0.46.0

func (_c *EventLoop_Ready_Call) Run(run func()) *EventLoop_Ready_Call

func (*EventLoop_Ready_Call) RunAndReturn added in v0.46.0

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

type EventLoop_Start_Call added in v0.46.0

type EventLoop_Start_Call struct {
	*mock.Call
}

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

func (*EventLoop_Start_Call) Return added in v0.46.0

func (*EventLoop_Start_Call) Run added in v0.46.0

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

func (*EventLoop_Start_Call) RunAndReturn added in v0.46.0

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

type EventLoop_SubmitProposal_Call added in v0.46.0

type EventLoop_SubmitProposal_Call struct {
	*mock.Call
}

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

func (*EventLoop_SubmitProposal_Call) Return added in v0.46.0

func (*EventLoop_SubmitProposal_Call) Run added in v0.46.0

func (*EventLoop_SubmitProposal_Call) RunAndReturn added in v0.46.0

type FinalizationConsumer

type FinalizationConsumer struct {
	mock.Mock
}

FinalizationConsumer is an autogenerated mock type for the FinalizationConsumer type

func NewFinalizationConsumer added in v0.26.1

func NewFinalizationConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *FinalizationConsumer

NewFinalizationConsumer creates a new instance of FinalizationConsumer. 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 (*FinalizationConsumer) EXPECT added in v0.46.0

func (*FinalizationConsumer) OnBlockIncorporated

func (_mock *FinalizationConsumer) OnBlockIncorporated(block *model.Block)

OnBlockIncorporated provides a mock function for the type FinalizationConsumer

func (*FinalizationConsumer) OnFinalizedBlock

func (_mock *FinalizationConsumer) OnFinalizedBlock(block *model.Block)

OnFinalizedBlock provides a mock function for the type FinalizationConsumer

type FinalizationConsumer_Expecter added in v0.46.0

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

func (*FinalizationConsumer_Expecter) OnBlockIncorporated added in v0.46.0

func (_e *FinalizationConsumer_Expecter) OnBlockIncorporated(block interface{}) *FinalizationConsumer_OnBlockIncorporated_Call

OnBlockIncorporated is a helper method to define mock.On call

  • block *model.Block

func (*FinalizationConsumer_Expecter) OnFinalizedBlock added in v0.46.0

func (_e *FinalizationConsumer_Expecter) OnFinalizedBlock(block interface{}) *FinalizationConsumer_OnFinalizedBlock_Call

OnFinalizedBlock is a helper method to define mock.On call

  • block *model.Block

type FinalizationConsumer_OnBlockIncorporated_Call added in v0.46.0

type FinalizationConsumer_OnBlockIncorporated_Call struct {
	*mock.Call
}

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

func (*FinalizationConsumer_OnBlockIncorporated_Call) Return added in v0.46.0

func (*FinalizationConsumer_OnBlockIncorporated_Call) Run added in v0.46.0

func (*FinalizationConsumer_OnBlockIncorporated_Call) RunAndReturn added in v0.46.0

type FinalizationConsumer_OnFinalizedBlock_Call added in v0.46.0

type FinalizationConsumer_OnFinalizedBlock_Call struct {
	*mock.Call
}

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

func (*FinalizationConsumer_OnFinalizedBlock_Call) Return added in v0.46.0

func (*FinalizationConsumer_OnFinalizedBlock_Call) Run added in v0.46.0

func (*FinalizationConsumer_OnFinalizedBlock_Call) RunAndReturn added in v0.46.0

type FinalizationRegistrar added in v0.45.0

type FinalizationRegistrar struct {
	mock.Mock
}

FinalizationRegistrar is an autogenerated mock type for the FinalizationRegistrar type

func NewFinalizationRegistrar added in v0.45.0

func NewFinalizationRegistrar(t interface {
	mock.TestingT
	Cleanup(func())
}) *FinalizationRegistrar

NewFinalizationRegistrar creates a new instance of FinalizationRegistrar. 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 (*FinalizationRegistrar) AddOnBlockFinalizedConsumer added in v0.45.0

func (_mock *FinalizationRegistrar) AddOnBlockFinalizedConsumer(consumer func(block *model.Block))

AddOnBlockFinalizedConsumer provides a mock function for the type FinalizationRegistrar

func (*FinalizationRegistrar) AddOnBlockIncorporatedConsumer added in v0.45.0

func (_mock *FinalizationRegistrar) AddOnBlockIncorporatedConsumer(consumer func(block *model.Block))

AddOnBlockIncorporatedConsumer provides a mock function for the type FinalizationRegistrar

func (*FinalizationRegistrar) EXPECT added in v0.46.0

type FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call added in v0.46.0

type FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call struct {
	*mock.Call
}

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

func (*FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) Return added in v0.46.0

func (*FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) Run added in v0.46.0

func (*FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call) RunAndReturn added in v0.46.0

type FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call added in v0.46.0

type FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call struct {
	*mock.Call
}

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

func (*FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) Return added in v0.46.0

func (*FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) Run added in v0.46.0

func (*FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call) RunAndReturn added in v0.46.0

type FinalizationRegistrar_Expecter added in v0.46.0

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

func (*FinalizationRegistrar_Expecter) AddOnBlockFinalizedConsumer added in v0.46.0

func (_e *FinalizationRegistrar_Expecter) AddOnBlockFinalizedConsumer(consumer interface{}) *FinalizationRegistrar_AddOnBlockFinalizedConsumer_Call

AddOnBlockFinalizedConsumer is a helper method to define mock.On call

  • consumer func(block *model.Block)

func (*FinalizationRegistrar_Expecter) AddOnBlockIncorporatedConsumer added in v0.46.0

func (_e *FinalizationRegistrar_Expecter) AddOnBlockIncorporatedConsumer(consumer interface{}) *FinalizationRegistrar_AddOnBlockIncorporatedConsumer_Call

AddOnBlockIncorporatedConsumer is a helper method to define mock.On call

  • consumer func(block *model.Block)

type FollowerConsumer added in v0.31.0

type FollowerConsumer struct {
	mock.Mock
}

FollowerConsumer is an autogenerated mock type for the FollowerConsumer type

func NewFollowerConsumer added in v0.31.0

func NewFollowerConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *FollowerConsumer

NewFollowerConsumer creates a new instance of FollowerConsumer. 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 (*FollowerConsumer) EXPECT added in v0.46.0

func (*FollowerConsumer) OnBlockIncorporated added in v0.31.0

func (_mock *FollowerConsumer) OnBlockIncorporated(block *model.Block)

OnBlockIncorporated provides a mock function for the type FollowerConsumer

func (*FollowerConsumer) OnDoubleProposeDetected added in v0.31.0

func (_mock *FollowerConsumer) OnDoubleProposeDetected(block *model.Block, block1 *model.Block)

OnDoubleProposeDetected provides a mock function for the type FollowerConsumer

func (*FollowerConsumer) OnFinalizedBlock added in v0.31.0

func (_mock *FollowerConsumer) OnFinalizedBlock(block *model.Block)

OnFinalizedBlock provides a mock function for the type FollowerConsumer

func (*FollowerConsumer) OnInvalidBlockDetected added in v0.31.0

func (_mock *FollowerConsumer) OnInvalidBlockDetected(err flow.Slashable[model.InvalidProposalError])

OnInvalidBlockDetected provides a mock function for the type FollowerConsumer

type FollowerConsumer_Expecter added in v0.46.0

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

func (*FollowerConsumer_Expecter) OnBlockIncorporated added in v0.46.0

func (_e *FollowerConsumer_Expecter) OnBlockIncorporated(block interface{}) *FollowerConsumer_OnBlockIncorporated_Call

OnBlockIncorporated is a helper method to define mock.On call

  • block *model.Block

func (*FollowerConsumer_Expecter) OnDoubleProposeDetected added in v0.46.0

func (_e *FollowerConsumer_Expecter) OnDoubleProposeDetected(block interface{}, block1 interface{}) *FollowerConsumer_OnDoubleProposeDetected_Call

OnDoubleProposeDetected is a helper method to define mock.On call

  • block *model.Block
  • block1 *model.Block

func (*FollowerConsumer_Expecter) OnFinalizedBlock added in v0.46.0

func (_e *FollowerConsumer_Expecter) OnFinalizedBlock(block interface{}) *FollowerConsumer_OnFinalizedBlock_Call

OnFinalizedBlock is a helper method to define mock.On call

  • block *model.Block

func (*FollowerConsumer_Expecter) OnInvalidBlockDetected added in v0.46.0

func (_e *FollowerConsumer_Expecter) OnInvalidBlockDetected(err interface{}) *FollowerConsumer_OnInvalidBlockDetected_Call

OnInvalidBlockDetected is a helper method to define mock.On call

  • err flow.Slashable[model.InvalidProposalError]

type FollowerConsumer_OnBlockIncorporated_Call added in v0.46.0

type FollowerConsumer_OnBlockIncorporated_Call struct {
	*mock.Call
}

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

func (*FollowerConsumer_OnBlockIncorporated_Call) Return added in v0.46.0

func (*FollowerConsumer_OnBlockIncorporated_Call) Run added in v0.46.0

func (*FollowerConsumer_OnBlockIncorporated_Call) RunAndReturn added in v0.46.0

type FollowerConsumer_OnDoubleProposeDetected_Call added in v0.46.0

type FollowerConsumer_OnDoubleProposeDetected_Call struct {
	*mock.Call
}

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

func (*FollowerConsumer_OnDoubleProposeDetected_Call) Return added in v0.46.0

func (*FollowerConsumer_OnDoubleProposeDetected_Call) Run added in v0.46.0

func (*FollowerConsumer_OnDoubleProposeDetected_Call) RunAndReturn added in v0.46.0

type FollowerConsumer_OnFinalizedBlock_Call added in v0.46.0

type FollowerConsumer_OnFinalizedBlock_Call struct {
	*mock.Call
}

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

func (*FollowerConsumer_OnFinalizedBlock_Call) Return added in v0.46.0

func (*FollowerConsumer_OnFinalizedBlock_Call) Run added in v0.46.0

func (*FollowerConsumer_OnFinalizedBlock_Call) RunAndReturn added in v0.46.0

type FollowerConsumer_OnInvalidBlockDetected_Call added in v0.46.0

type FollowerConsumer_OnInvalidBlockDetected_Call struct {
	*mock.Call
}

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

func (*FollowerConsumer_OnInvalidBlockDetected_Call) Return added in v0.46.0

func (*FollowerConsumer_OnInvalidBlockDetected_Call) Run added in v0.46.0

func (*FollowerConsumer_OnInvalidBlockDetected_Call) RunAndReturn added in v0.46.0

type Forks

type Forks struct {
	mock.Mock
}

Forks is an autogenerated mock type for the Forks type

func NewForks added in v0.26.1

func NewForks(t interface {
	mock.TestingT
	Cleanup(func())
}) *Forks

NewForks creates a new instance of Forks. 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 (*Forks) AddCertifiedBlock added in v0.31.0

func (_mock *Forks) AddCertifiedBlock(certifiedBlock *model.CertifiedBlock) error

AddCertifiedBlock provides a mock function for the type Forks

func (*Forks) AddValidatedBlock added in v0.31.0

func (_mock *Forks) AddValidatedBlock(proposal *model.Block) error

AddValidatedBlock provides a mock function for the type Forks

func (*Forks) EXPECT added in v0.46.0

func (_m *Forks) EXPECT() *Forks_Expecter

func (*Forks) FinalityProof added in v0.31.0

func (_mock *Forks) FinalityProof() (*hotstuff.FinalityProof, bool)

FinalityProof provides a mock function for the type Forks

func (*Forks) FinalizedBlock

func (_mock *Forks) FinalizedBlock() *model.Block

FinalizedBlock provides a mock function for the type Forks

func (*Forks) FinalizedView

func (_mock *Forks) FinalizedView() uint64

FinalizedView provides a mock function for the type Forks

func (*Forks) GetBlock

func (_mock *Forks) GetBlock(blockID flow.Identifier) (*model.Block, bool)

GetBlock provides a mock function for the type Forks

func (*Forks) GetBlocksForView

func (_mock *Forks) GetBlocksForView(view uint64) []*model.Block

GetBlocksForView provides a mock function for the type Forks

type Forks_AddCertifiedBlock_Call added in v0.46.0

type Forks_AddCertifiedBlock_Call struct {
	*mock.Call
}

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

func (*Forks_AddCertifiedBlock_Call) Return added in v0.46.0

func (*Forks_AddCertifiedBlock_Call) Run added in v0.46.0

func (*Forks_AddCertifiedBlock_Call) RunAndReturn added in v0.46.0

func (_c *Forks_AddCertifiedBlock_Call) RunAndReturn(run func(certifiedBlock *model.CertifiedBlock) error) *Forks_AddCertifiedBlock_Call

type Forks_AddValidatedBlock_Call added in v0.46.0

type Forks_AddValidatedBlock_Call struct {
	*mock.Call
}

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

func (*Forks_AddValidatedBlock_Call) Return added in v0.46.0

func (*Forks_AddValidatedBlock_Call) Run added in v0.46.0

func (*Forks_AddValidatedBlock_Call) RunAndReturn added in v0.46.0

func (_c *Forks_AddValidatedBlock_Call) RunAndReturn(run func(proposal *model.Block) error) *Forks_AddValidatedBlock_Call

type Forks_Expecter added in v0.46.0

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

func (*Forks_Expecter) AddCertifiedBlock added in v0.46.0

func (_e *Forks_Expecter) AddCertifiedBlock(certifiedBlock interface{}) *Forks_AddCertifiedBlock_Call

AddCertifiedBlock is a helper method to define mock.On call

  • certifiedBlock *model.CertifiedBlock

func (*Forks_Expecter) AddValidatedBlock added in v0.46.0

func (_e *Forks_Expecter) AddValidatedBlock(proposal interface{}) *Forks_AddValidatedBlock_Call

AddValidatedBlock is a helper method to define mock.On call

  • proposal *model.Block

func (*Forks_Expecter) FinalityProof added in v0.46.0

func (_e *Forks_Expecter) FinalityProof() *Forks_FinalityProof_Call

FinalityProof is a helper method to define mock.On call

func (*Forks_Expecter) FinalizedBlock added in v0.46.0

func (_e *Forks_Expecter) FinalizedBlock() *Forks_FinalizedBlock_Call

FinalizedBlock is a helper method to define mock.On call

func (*Forks_Expecter) FinalizedView added in v0.46.0

func (_e *Forks_Expecter) FinalizedView() *Forks_FinalizedView_Call

FinalizedView is a helper method to define mock.On call

func (*Forks_Expecter) GetBlock added in v0.46.0

func (_e *Forks_Expecter) GetBlock(blockID interface{}) *Forks_GetBlock_Call

GetBlock is a helper method to define mock.On call

  • blockID flow.Identifier

func (*Forks_Expecter) GetBlocksForView added in v0.46.0

func (_e *Forks_Expecter) GetBlocksForView(view interface{}) *Forks_GetBlocksForView_Call

GetBlocksForView is a helper method to define mock.On call

  • view uint64

type Forks_FinalityProof_Call added in v0.46.0

type Forks_FinalityProof_Call struct {
	*mock.Call
}

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

func (*Forks_FinalityProof_Call) Return added in v0.46.0

func (*Forks_FinalityProof_Call) Run added in v0.46.0

func (*Forks_FinalityProof_Call) RunAndReturn added in v0.46.0

type Forks_FinalizedBlock_Call added in v0.46.0

type Forks_FinalizedBlock_Call struct {
	*mock.Call
}

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

func (*Forks_FinalizedBlock_Call) Return added in v0.46.0

func (*Forks_FinalizedBlock_Call) Run added in v0.46.0

func (*Forks_FinalizedBlock_Call) RunAndReturn added in v0.46.0

func (_c *Forks_FinalizedBlock_Call) RunAndReturn(run func() *model.Block) *Forks_FinalizedBlock_Call

type Forks_FinalizedView_Call added in v0.46.0

type Forks_FinalizedView_Call struct {
	*mock.Call
}

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

func (*Forks_FinalizedView_Call) Return added in v0.46.0

func (*Forks_FinalizedView_Call) Run added in v0.46.0

func (*Forks_FinalizedView_Call) RunAndReturn added in v0.46.0

func (_c *Forks_FinalizedView_Call) RunAndReturn(run func() uint64) *Forks_FinalizedView_Call

type Forks_GetBlock_Call added in v0.46.0

type Forks_GetBlock_Call struct {
	*mock.Call
}

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

func (*Forks_GetBlock_Call) Return added in v0.46.0

func (_c *Forks_GetBlock_Call) Return(block *model.Block, b bool) *Forks_GetBlock_Call

func (*Forks_GetBlock_Call) Run added in v0.46.0

func (_c *Forks_GetBlock_Call) Run(run func(blockID flow.Identifier)) *Forks_GetBlock_Call

func (*Forks_GetBlock_Call) RunAndReturn added in v0.46.0

func (_c *Forks_GetBlock_Call) RunAndReturn(run func(blockID flow.Identifier) (*model.Block, bool)) *Forks_GetBlock_Call

type Forks_GetBlocksForView_Call added in v0.46.0

type Forks_GetBlocksForView_Call struct {
	*mock.Call
}

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

func (*Forks_GetBlocksForView_Call) Return added in v0.46.0

func (*Forks_GetBlocksForView_Call) Run added in v0.46.0

func (*Forks_GetBlocksForView_Call) RunAndReturn added in v0.46.0

func (_c *Forks_GetBlocksForView_Call) RunAndReturn(run func(view uint64) []*model.Block) *Forks_GetBlocksForView_Call

type PaceMaker

type PaceMaker struct {
	mock.Mock
}

PaceMaker is an autogenerated mock type for the PaceMaker type

func NewPaceMaker added in v0.26.1

func NewPaceMaker(t interface {
	mock.TestingT
	Cleanup(func())
}) *PaceMaker

NewPaceMaker creates a new instance of PaceMaker. 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 (*PaceMaker) CurView

func (_mock *PaceMaker) CurView() uint64

CurView provides a mock function for the type PaceMaker

func (*PaceMaker) EXPECT added in v0.46.0

func (_m *PaceMaker) EXPECT() *PaceMaker_Expecter

func (*PaceMaker) LastViewTC added in v0.29.0

func (_mock *PaceMaker) LastViewTC() *flow.TimeoutCertificate

LastViewTC provides a mock function for the type PaceMaker

func (*PaceMaker) NewestQC added in v0.29.0

func (_mock *PaceMaker) NewestQC() *flow.QuorumCertificate

NewestQC provides a mock function for the type PaceMaker

func (*PaceMaker) ProcessQC added in v0.29.0

func (_mock *PaceMaker) ProcessQC(qc *flow.QuorumCertificate) (*model.NewViewEvent, error)

ProcessQC provides a mock function for the type PaceMaker

func (*PaceMaker) ProcessTC added in v0.29.0

func (_mock *PaceMaker) ProcessTC(tc *flow.TimeoutCertificate) (*model.NewViewEvent, error)

ProcessTC provides a mock function for the type PaceMaker

func (*PaceMaker) Start

func (_mock *PaceMaker) Start(ctx context.Context)

Start provides a mock function for the type PaceMaker

func (*PaceMaker) TargetPublicationTime added in v0.31.0

func (_mock *PaceMaker) TargetPublicationTime(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier) time.Time

TargetPublicationTime provides a mock function for the type PaceMaker

func (*PaceMaker) TimeoutChannel

func (_mock *PaceMaker) TimeoutChannel() <-chan time.Time

TimeoutChannel provides a mock function for the type PaceMaker

type PaceMaker_CurView_Call added in v0.46.0

type PaceMaker_CurView_Call struct {
	*mock.Call
}

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

func (*PaceMaker_CurView_Call) Return added in v0.46.0

func (*PaceMaker_CurView_Call) Run added in v0.46.0

func (_c *PaceMaker_CurView_Call) Run(run func()) *PaceMaker_CurView_Call

func (*PaceMaker_CurView_Call) RunAndReturn added in v0.46.0

func (_c *PaceMaker_CurView_Call) RunAndReturn(run func() uint64) *PaceMaker_CurView_Call

type PaceMaker_Expecter added in v0.46.0

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

func (*PaceMaker_Expecter) CurView added in v0.46.0

CurView is a helper method to define mock.On call

func (*PaceMaker_Expecter) LastViewTC added in v0.46.0

LastViewTC is a helper method to define mock.On call

func (*PaceMaker_Expecter) NewestQC added in v0.46.0

NewestQC is a helper method to define mock.On call

func (*PaceMaker_Expecter) ProcessQC added in v0.46.0

func (_e *PaceMaker_Expecter) ProcessQC(qc interface{}) *PaceMaker_ProcessQC_Call

ProcessQC is a helper method to define mock.On call

  • qc *flow.QuorumCertificate

func (*PaceMaker_Expecter) ProcessTC added in v0.46.0

func (_e *PaceMaker_Expecter) ProcessTC(tc interface{}) *PaceMaker_ProcessTC_Call

ProcessTC is a helper method to define mock.On call

  • tc *flow.TimeoutCertificate

func (*PaceMaker_Expecter) Start added in v0.46.0

func (_e *PaceMaker_Expecter) Start(ctx interface{}) *PaceMaker_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*PaceMaker_Expecter) TargetPublicationTime added in v0.46.0

func (_e *PaceMaker_Expecter) TargetPublicationTime(proposalView interface{}, timeViewEntered interface{}, parentBlockId interface{}) *PaceMaker_TargetPublicationTime_Call

TargetPublicationTime is a helper method to define mock.On call

  • proposalView uint64
  • timeViewEntered time.Time
  • parentBlockId flow.Identifier

func (*PaceMaker_Expecter) TimeoutChannel added in v0.46.0

func (_e *PaceMaker_Expecter) TimeoutChannel() *PaceMaker_TimeoutChannel_Call

TimeoutChannel is a helper method to define mock.On call

type PaceMaker_LastViewTC_Call added in v0.46.0

type PaceMaker_LastViewTC_Call struct {
	*mock.Call
}

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

func (*PaceMaker_LastViewTC_Call) Return added in v0.46.0

func (*PaceMaker_LastViewTC_Call) Run added in v0.46.0

func (*PaceMaker_LastViewTC_Call) RunAndReturn added in v0.46.0

type PaceMaker_NewestQC_Call added in v0.46.0

type PaceMaker_NewestQC_Call struct {
	*mock.Call
}

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

func (*PaceMaker_NewestQC_Call) Return added in v0.46.0

func (*PaceMaker_NewestQC_Call) Run added in v0.46.0

func (_c *PaceMaker_NewestQC_Call) Run(run func()) *PaceMaker_NewestQC_Call

func (*PaceMaker_NewestQC_Call) RunAndReturn added in v0.46.0

type PaceMaker_ProcessQC_Call added in v0.46.0

type PaceMaker_ProcessQC_Call struct {
	*mock.Call
}

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

func (*PaceMaker_ProcessQC_Call) Return added in v0.46.0

func (*PaceMaker_ProcessQC_Call) Run added in v0.46.0

func (*PaceMaker_ProcessQC_Call) RunAndReturn added in v0.46.0

type PaceMaker_ProcessTC_Call added in v0.46.0

type PaceMaker_ProcessTC_Call struct {
	*mock.Call
}

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

func (*PaceMaker_ProcessTC_Call) Return added in v0.46.0

func (*PaceMaker_ProcessTC_Call) Run added in v0.46.0

func (*PaceMaker_ProcessTC_Call) RunAndReturn added in v0.46.0

type PaceMaker_Start_Call added in v0.46.0

type PaceMaker_Start_Call struct {
	*mock.Call
}

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

func (*PaceMaker_Start_Call) Return added in v0.46.0

func (*PaceMaker_Start_Call) Run added in v0.46.0

func (_c *PaceMaker_Start_Call) Run(run func(ctx context.Context)) *PaceMaker_Start_Call

func (*PaceMaker_Start_Call) RunAndReturn added in v0.46.0

func (_c *PaceMaker_Start_Call) RunAndReturn(run func(ctx context.Context)) *PaceMaker_Start_Call

type PaceMaker_TargetPublicationTime_Call added in v0.46.0

type PaceMaker_TargetPublicationTime_Call struct {
	*mock.Call
}

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

func (*PaceMaker_TargetPublicationTime_Call) Return added in v0.46.0

func (*PaceMaker_TargetPublicationTime_Call) Run added in v0.46.0

func (_c *PaceMaker_TargetPublicationTime_Call) Run(run func(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier)) *PaceMaker_TargetPublicationTime_Call

func (*PaceMaker_TargetPublicationTime_Call) RunAndReturn added in v0.46.0

func (_c *PaceMaker_TargetPublicationTime_Call) RunAndReturn(run func(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier) time.Time) *PaceMaker_TargetPublicationTime_Call

type PaceMaker_TimeoutChannel_Call added in v0.46.0

type PaceMaker_TimeoutChannel_Call struct {
	*mock.Call
}

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

func (*PaceMaker_TimeoutChannel_Call) Return added in v0.46.0

func (*PaceMaker_TimeoutChannel_Call) Run added in v0.46.0

func (*PaceMaker_TimeoutChannel_Call) RunAndReturn added in v0.46.0

func (_c *PaceMaker_TimeoutChannel_Call) RunAndReturn(run func() <-chan time.Time) *PaceMaker_TimeoutChannel_Call

type Packer added in v0.23.9

type Packer struct {
	mock.Mock
}

Packer is an autogenerated mock type for the Packer type

func NewPacker added in v0.26.1

func NewPacker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Packer

NewPacker creates a new instance of Packer. 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 (*Packer) EXPECT added in v0.46.0

func (_m *Packer) EXPECT() *Packer_Expecter

func (*Packer) Pack added in v0.23.9

func (_mock *Packer) Pack(view uint64, sig *hotstuff.BlockSignatureData) ([]byte, []byte, error)

Pack provides a mock function for the type Packer

func (*Packer) Unpack added in v0.23.9

func (_mock *Packer) Unpack(signerIdentities flow.IdentitySkeletonList, sigData []byte) (*hotstuff.BlockSignatureData, error)

Unpack provides a mock function for the type Packer

type Packer_Expecter added in v0.46.0

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

func (*Packer_Expecter) Pack added in v0.46.0

func (_e *Packer_Expecter) Pack(view interface{}, sig interface{}) *Packer_Pack_Call

Pack is a helper method to define mock.On call

  • view uint64
  • sig *hotstuff.BlockSignatureData

func (*Packer_Expecter) Unpack added in v0.46.0

func (_e *Packer_Expecter) Unpack(signerIdentities interface{}, sigData interface{}) *Packer_Unpack_Call

Unpack is a helper method to define mock.On call

  • signerIdentities flow.IdentitySkeletonList
  • sigData []byte

type Packer_Pack_Call added in v0.46.0

type Packer_Pack_Call struct {
	*mock.Call
}

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

func (*Packer_Pack_Call) Return added in v0.46.0

func (_c *Packer_Pack_Call) Return(signerIndices []byte, sigData []byte, err error) *Packer_Pack_Call

func (*Packer_Pack_Call) Run added in v0.46.0

func (_c *Packer_Pack_Call) Run(run func(view uint64, sig *hotstuff.BlockSignatureData)) *Packer_Pack_Call

func (*Packer_Pack_Call) RunAndReturn added in v0.46.0

func (_c *Packer_Pack_Call) RunAndReturn(run func(view uint64, sig *hotstuff.BlockSignatureData) ([]byte, []byte, error)) *Packer_Pack_Call

type Packer_Unpack_Call added in v0.46.0

type Packer_Unpack_Call struct {
	*mock.Call
}

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

func (*Packer_Unpack_Call) Return added in v0.46.0

func (_c *Packer_Unpack_Call) Return(blockSignatureData *hotstuff.BlockSignatureData, err error) *Packer_Unpack_Call

func (*Packer_Unpack_Call) Run added in v0.46.0

func (_c *Packer_Unpack_Call) Run(run func(signerIdentities flow.IdentitySkeletonList, sigData []byte)) *Packer_Unpack_Call

func (*Packer_Unpack_Call) RunAndReturn added in v0.46.0

func (_c *Packer_Unpack_Call) RunAndReturn(run func(signerIdentities flow.IdentitySkeletonList, sigData []byte) (*hotstuff.BlockSignatureData, error)) *Packer_Unpack_Call

type ParticipantConsumer added in v0.31.0

type ParticipantConsumer struct {
	mock.Mock
}

ParticipantConsumer is an autogenerated mock type for the ParticipantConsumer type

func NewParticipantConsumer added in v0.31.0

func NewParticipantConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ParticipantConsumer

NewParticipantConsumer creates a new instance of ParticipantConsumer. 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 (*ParticipantConsumer) EXPECT added in v0.46.0

func (*ParticipantConsumer) OnCurrentViewDetails added in v0.31.0

func (_mock *ParticipantConsumer) OnCurrentViewDetails(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)

OnCurrentViewDetails provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnEventProcessed added in v0.31.0

func (_mock *ParticipantConsumer) OnEventProcessed()

OnEventProcessed provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnLocalTimeout added in v0.31.0

func (_mock *ParticipantConsumer) OnLocalTimeout(currentView uint64)

OnLocalTimeout provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnPartialTc added in v0.31.0

func (_mock *ParticipantConsumer) OnPartialTc(currentView uint64, partialTc *hotstuff.PartialTcCreated)

OnPartialTc provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnQcTriggeredViewChange added in v0.31.0

func (_mock *ParticipantConsumer) OnQcTriggeredViewChange(oldView uint64, newView uint64, qc *flow.QuorumCertificate)

OnQcTriggeredViewChange provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnReceiveProposal added in v0.31.0

func (_mock *ParticipantConsumer) OnReceiveProposal(currentView uint64, proposal *model.SignedProposal)

OnReceiveProposal provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnReceiveQc added in v0.31.0

func (_mock *ParticipantConsumer) OnReceiveQc(currentView uint64, qc *flow.QuorumCertificate)

OnReceiveQc provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnReceiveTc added in v0.31.0

func (_mock *ParticipantConsumer) OnReceiveTc(currentView uint64, tc *flow.TimeoutCertificate)

OnReceiveTc provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnStart added in v0.31.0

func (_mock *ParticipantConsumer) OnStart(currentView uint64)

OnStart provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnStartingTimeout added in v0.31.0

func (_mock *ParticipantConsumer) OnStartingTimeout(timerInfo model.TimerInfo)

OnStartingTimeout provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnTcTriggeredViewChange added in v0.31.0

func (_mock *ParticipantConsumer) OnTcTriggeredViewChange(oldView uint64, newView uint64, tc *flow.TimeoutCertificate)

OnTcTriggeredViewChange provides a mock function for the type ParticipantConsumer

func (*ParticipantConsumer) OnViewChange added in v0.31.0

func (_mock *ParticipantConsumer) OnViewChange(oldView uint64, newView uint64)

OnViewChange provides a mock function for the type ParticipantConsumer

type ParticipantConsumer_Expecter added in v0.46.0

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

func (*ParticipantConsumer_Expecter) OnCurrentViewDetails added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnCurrentViewDetails(currentView interface{}, finalizedView interface{}, currentLeader interface{}) *ParticipantConsumer_OnCurrentViewDetails_Call

OnCurrentViewDetails is a helper method to define mock.On call

  • currentView uint64
  • finalizedView uint64
  • currentLeader flow.Identifier

func (*ParticipantConsumer_Expecter) OnEventProcessed added in v0.46.0

OnEventProcessed is a helper method to define mock.On call

func (*ParticipantConsumer_Expecter) OnLocalTimeout added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnLocalTimeout(currentView interface{}) *ParticipantConsumer_OnLocalTimeout_Call

OnLocalTimeout is a helper method to define mock.On call

  • currentView uint64

func (*ParticipantConsumer_Expecter) OnPartialTc added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnPartialTc(currentView interface{}, partialTc interface{}) *ParticipantConsumer_OnPartialTc_Call

OnPartialTc is a helper method to define mock.On call

  • currentView uint64
  • partialTc *hotstuff.PartialTcCreated

func (*ParticipantConsumer_Expecter) OnQcTriggeredViewChange added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnQcTriggeredViewChange(oldView interface{}, newView interface{}, qc interface{}) *ParticipantConsumer_OnQcTriggeredViewChange_Call

OnQcTriggeredViewChange is a helper method to define mock.On call

  • oldView uint64
  • newView uint64
  • qc *flow.QuorumCertificate

func (*ParticipantConsumer_Expecter) OnReceiveProposal added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnReceiveProposal(currentView interface{}, proposal interface{}) *ParticipantConsumer_OnReceiveProposal_Call

OnReceiveProposal is a helper method to define mock.On call

  • currentView uint64
  • proposal *model.SignedProposal

func (*ParticipantConsumer_Expecter) OnReceiveQc added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnReceiveQc(currentView interface{}, qc interface{}) *ParticipantConsumer_OnReceiveQc_Call

OnReceiveQc is a helper method to define mock.On call

  • currentView uint64
  • qc *flow.QuorumCertificate

func (*ParticipantConsumer_Expecter) OnReceiveTc added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnReceiveTc(currentView interface{}, tc interface{}) *ParticipantConsumer_OnReceiveTc_Call

OnReceiveTc is a helper method to define mock.On call

  • currentView uint64
  • tc *flow.TimeoutCertificate

func (*ParticipantConsumer_Expecter) OnStart added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnStart(currentView interface{}) *ParticipantConsumer_OnStart_Call

OnStart is a helper method to define mock.On call

  • currentView uint64

func (*ParticipantConsumer_Expecter) OnStartingTimeout added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnStartingTimeout(timerInfo interface{}) *ParticipantConsumer_OnStartingTimeout_Call

OnStartingTimeout is a helper method to define mock.On call

  • timerInfo model.TimerInfo

func (*ParticipantConsumer_Expecter) OnTcTriggeredViewChange added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnTcTriggeredViewChange(oldView interface{}, newView interface{}, tc interface{}) *ParticipantConsumer_OnTcTriggeredViewChange_Call

OnTcTriggeredViewChange is a helper method to define mock.On call

  • oldView uint64
  • newView uint64
  • tc *flow.TimeoutCertificate

func (*ParticipantConsumer_Expecter) OnViewChange added in v0.46.0

func (_e *ParticipantConsumer_Expecter) OnViewChange(oldView interface{}, newView interface{}) *ParticipantConsumer_OnViewChange_Call

OnViewChange is a helper method to define mock.On call

  • oldView uint64
  • newView uint64

type ParticipantConsumer_OnCurrentViewDetails_Call added in v0.46.0

type ParticipantConsumer_OnCurrentViewDetails_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnCurrentViewDetails_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnCurrentViewDetails_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnCurrentViewDetails_Call) RunAndReturn added in v0.46.0

func (_c *ParticipantConsumer_OnCurrentViewDetails_Call) RunAndReturn(run func(currentView uint64, finalizedView uint64, currentLeader flow.Identifier)) *ParticipantConsumer_OnCurrentViewDetails_Call

type ParticipantConsumer_OnEventProcessed_Call added in v0.46.0

type ParticipantConsumer_OnEventProcessed_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnEventProcessed_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnEventProcessed_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnEventProcessed_Call) RunAndReturn added in v0.46.0

type ParticipantConsumer_OnLocalTimeout_Call added in v0.46.0

type ParticipantConsumer_OnLocalTimeout_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnLocalTimeout_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnLocalTimeout_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnLocalTimeout_Call) RunAndReturn added in v0.46.0

type ParticipantConsumer_OnPartialTc_Call added in v0.46.0

type ParticipantConsumer_OnPartialTc_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnPartialTc_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnPartialTc_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnPartialTc_Call) RunAndReturn added in v0.46.0

type ParticipantConsumer_OnQcTriggeredViewChange_Call added in v0.46.0

type ParticipantConsumer_OnQcTriggeredViewChange_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnQcTriggeredViewChange_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnQcTriggeredViewChange_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnQcTriggeredViewChange_Call) RunAndReturn added in v0.46.0

type ParticipantConsumer_OnReceiveProposal_Call added in v0.46.0

type ParticipantConsumer_OnReceiveProposal_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnReceiveProposal_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnReceiveProposal_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnReceiveProposal_Call) RunAndReturn added in v0.46.0

type ParticipantConsumer_OnReceiveQc_Call added in v0.46.0

type ParticipantConsumer_OnReceiveQc_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnReceiveQc_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnReceiveQc_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnReceiveQc_Call) RunAndReturn added in v0.46.0

type ParticipantConsumer_OnReceiveTc_Call added in v0.46.0

type ParticipantConsumer_OnReceiveTc_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnReceiveTc_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnReceiveTc_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnReceiveTc_Call) RunAndReturn added in v0.46.0

type ParticipantConsumer_OnStart_Call added in v0.46.0

type ParticipantConsumer_OnStart_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnStart_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnStart_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnStart_Call) RunAndReturn added in v0.46.0

func (_c *ParticipantConsumer_OnStart_Call) RunAndReturn(run func(currentView uint64)) *ParticipantConsumer_OnStart_Call

type ParticipantConsumer_OnStartingTimeout_Call added in v0.46.0

type ParticipantConsumer_OnStartingTimeout_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnStartingTimeout_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnStartingTimeout_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnStartingTimeout_Call) RunAndReturn added in v0.46.0

type ParticipantConsumer_OnTcTriggeredViewChange_Call added in v0.46.0

type ParticipantConsumer_OnTcTriggeredViewChange_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnTcTriggeredViewChange_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnTcTriggeredViewChange_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnTcTriggeredViewChange_Call) RunAndReturn added in v0.46.0

type ParticipantConsumer_OnViewChange_Call added in v0.46.0

type ParticipantConsumer_OnViewChange_Call struct {
	*mock.Call
}

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

func (*ParticipantConsumer_OnViewChange_Call) Return added in v0.46.0

func (*ParticipantConsumer_OnViewChange_Call) Run added in v0.46.0

func (*ParticipantConsumer_OnViewChange_Call) RunAndReturn added in v0.46.0

func (_c *ParticipantConsumer_OnViewChange_Call) RunAndReturn(run func(oldView uint64, newView uint64)) *ParticipantConsumer_OnViewChange_Call

type Persister

type Persister struct {
	mock.Mock
}

Persister is an autogenerated mock type for the Persister type

func NewPersister added in v0.26.1

func NewPersister(t interface {
	mock.TestingT
	Cleanup(func())
}) *Persister

NewPersister creates a new instance of Persister. 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 (*Persister) EXPECT added in v0.46.0

func (_m *Persister) EXPECT() *Persister_Expecter

func (*Persister) GetLivenessData added in v0.29.0

func (_mock *Persister) GetLivenessData() (*hotstuff.LivenessData, error)

GetLivenessData provides a mock function for the type Persister

func (*Persister) GetSafetyData added in v0.29.0

func (_mock *Persister) GetSafetyData() (*hotstuff.SafetyData, error)

GetSafetyData provides a mock function for the type Persister

func (*Persister) PutLivenessData added in v0.29.0

func (_mock *Persister) PutLivenessData(livenessData *hotstuff.LivenessData) error

PutLivenessData provides a mock function for the type Persister

func (*Persister) PutSafetyData added in v0.29.0

func (_mock *Persister) PutSafetyData(safetyData *hotstuff.SafetyData) error

PutSafetyData provides a mock function for the type Persister

type PersisterReader added in v0.41.0

type PersisterReader struct {
	mock.Mock
}

PersisterReader is an autogenerated mock type for the PersisterReader type

func NewPersisterReader added in v0.41.0

func NewPersisterReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *PersisterReader

NewPersisterReader creates a new instance of PersisterReader. 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 (*PersisterReader) EXPECT added in v0.46.0

func (*PersisterReader) GetLivenessData added in v0.41.0

func (_mock *PersisterReader) GetLivenessData() (*hotstuff.LivenessData, error)

GetLivenessData provides a mock function for the type PersisterReader

func (*PersisterReader) GetSafetyData added in v0.41.0

func (_mock *PersisterReader) GetSafetyData() (*hotstuff.SafetyData, error)

GetSafetyData provides a mock function for the type PersisterReader

type PersisterReader_Expecter added in v0.46.0

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

func (*PersisterReader_Expecter) GetLivenessData added in v0.46.0

GetLivenessData is a helper method to define mock.On call

func (*PersisterReader_Expecter) GetSafetyData added in v0.46.0

GetSafetyData is a helper method to define mock.On call

type PersisterReader_GetLivenessData_Call added in v0.46.0

type PersisterReader_GetLivenessData_Call struct {
	*mock.Call
}

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

func (*PersisterReader_GetLivenessData_Call) Return added in v0.46.0

func (*PersisterReader_GetLivenessData_Call) Run added in v0.46.0

func (*PersisterReader_GetLivenessData_Call) RunAndReturn added in v0.46.0

type PersisterReader_GetSafetyData_Call added in v0.46.0

type PersisterReader_GetSafetyData_Call struct {
	*mock.Call
}

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

func (*PersisterReader_GetSafetyData_Call) Return added in v0.46.0

func (*PersisterReader_GetSafetyData_Call) Run added in v0.46.0

func (*PersisterReader_GetSafetyData_Call) RunAndReturn added in v0.46.0

type Persister_Expecter added in v0.46.0

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

func (*Persister_Expecter) GetLivenessData added in v0.46.0

func (_e *Persister_Expecter) GetLivenessData() *Persister_GetLivenessData_Call

GetLivenessData is a helper method to define mock.On call

func (*Persister_Expecter) GetSafetyData added in v0.46.0

func (_e *Persister_Expecter) GetSafetyData() *Persister_GetSafetyData_Call

GetSafetyData is a helper method to define mock.On call

func (*Persister_Expecter) PutLivenessData added in v0.46.0

func (_e *Persister_Expecter) PutLivenessData(livenessData interface{}) *Persister_PutLivenessData_Call

PutLivenessData is a helper method to define mock.On call

  • livenessData *hotstuff.LivenessData

func (*Persister_Expecter) PutSafetyData added in v0.46.0

func (_e *Persister_Expecter) PutSafetyData(safetyData interface{}) *Persister_PutSafetyData_Call

PutSafetyData is a helper method to define mock.On call

  • safetyData *hotstuff.SafetyData

type Persister_GetLivenessData_Call added in v0.46.0

type Persister_GetLivenessData_Call struct {
	*mock.Call
}

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

func (*Persister_GetLivenessData_Call) Return added in v0.46.0

func (*Persister_GetLivenessData_Call) Run added in v0.46.0

func (*Persister_GetLivenessData_Call) RunAndReturn added in v0.46.0

type Persister_GetSafetyData_Call added in v0.46.0

type Persister_GetSafetyData_Call struct {
	*mock.Call
}

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

func (*Persister_GetSafetyData_Call) Return added in v0.46.0

func (*Persister_GetSafetyData_Call) Run added in v0.46.0

func (*Persister_GetSafetyData_Call) RunAndReturn added in v0.46.0

type Persister_PutLivenessData_Call added in v0.46.0

type Persister_PutLivenessData_Call struct {
	*mock.Call
}

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

func (*Persister_PutLivenessData_Call) Return added in v0.46.0

func (*Persister_PutLivenessData_Call) Run added in v0.46.0

func (*Persister_PutLivenessData_Call) RunAndReturn added in v0.46.0

type Persister_PutSafetyData_Call added in v0.46.0

type Persister_PutSafetyData_Call struct {
	*mock.Call
}

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

func (*Persister_PutSafetyData_Call) Return added in v0.46.0

func (*Persister_PutSafetyData_Call) Run added in v0.46.0

func (*Persister_PutSafetyData_Call) RunAndReturn added in v0.46.0

func (_c *Persister_PutSafetyData_Call) RunAndReturn(run func(safetyData *hotstuff.SafetyData) error) *Persister_PutSafetyData_Call

type ProposalDurationProvider added in v0.31.0

type ProposalDurationProvider struct {
	mock.Mock
}

ProposalDurationProvider is an autogenerated mock type for the ProposalDurationProvider type

func NewProposalDurationProvider added in v0.31.0

func NewProposalDurationProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProposalDurationProvider

NewProposalDurationProvider creates a new instance of ProposalDurationProvider. 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 (*ProposalDurationProvider) EXPECT added in v0.46.0

func (*ProposalDurationProvider) TargetPublicationTime added in v0.31.0

func (_mock *ProposalDurationProvider) TargetPublicationTime(proposalView uint64, timeViewEntered time.Time, parentBlockId flow.Identifier) time.Time

TargetPublicationTime provides a mock function for the type ProposalDurationProvider

type ProposalDurationProvider_Expecter added in v0.46.0

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

func (*ProposalDurationProvider_Expecter) TargetPublicationTime added in v0.46.0

func (_e *ProposalDurationProvider_Expecter) TargetPublicationTime(proposalView interface{}, timeViewEntered interface{}, parentBlockId interface{}) *ProposalDurationProvider_TargetPublicationTime_Call

TargetPublicationTime is a helper method to define mock.On call

  • proposalView uint64
  • timeViewEntered time.Time
  • parentBlockId flow.Identifier

type ProposalDurationProvider_TargetPublicationTime_Call added in v0.46.0

type ProposalDurationProvider_TargetPublicationTime_Call struct {
	*mock.Call
}

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

func (*ProposalDurationProvider_TargetPublicationTime_Call) Return added in v0.46.0

func (*ProposalDurationProvider_TargetPublicationTime_Call) Run added in v0.46.0

func (*ProposalDurationProvider_TargetPublicationTime_Call) RunAndReturn added in v0.46.0

type ProposalViolationConsumer added in v0.31.0

type ProposalViolationConsumer struct {
	mock.Mock
}

ProposalViolationConsumer is an autogenerated mock type for the ProposalViolationConsumer type

func NewProposalViolationConsumer added in v0.31.0

func NewProposalViolationConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProposalViolationConsumer

NewProposalViolationConsumer creates a new instance of ProposalViolationConsumer. 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 (*ProposalViolationConsumer) EXPECT added in v0.46.0

func (*ProposalViolationConsumer) OnDoubleProposeDetected added in v0.31.0

func (_mock *ProposalViolationConsumer) OnDoubleProposeDetected(block *model.Block, block1 *model.Block)

OnDoubleProposeDetected provides a mock function for the type ProposalViolationConsumer

func (*ProposalViolationConsumer) OnInvalidBlockDetected added in v0.31.0

func (_mock *ProposalViolationConsumer) OnInvalidBlockDetected(err flow.Slashable[model.InvalidProposalError])

OnInvalidBlockDetected provides a mock function for the type ProposalViolationConsumer

type ProposalViolationConsumer_Expecter added in v0.46.0

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

func (*ProposalViolationConsumer_Expecter) OnDoubleProposeDetected added in v0.46.0

func (_e *ProposalViolationConsumer_Expecter) OnDoubleProposeDetected(block interface{}, block1 interface{}) *ProposalViolationConsumer_OnDoubleProposeDetected_Call

OnDoubleProposeDetected is a helper method to define mock.On call

  • block *model.Block
  • block1 *model.Block

func (*ProposalViolationConsumer_Expecter) OnInvalidBlockDetected added in v0.46.0

OnInvalidBlockDetected is a helper method to define mock.On call

  • err flow.Slashable[model.InvalidProposalError]

type ProposalViolationConsumer_OnDoubleProposeDetected_Call added in v0.46.0

type ProposalViolationConsumer_OnDoubleProposeDetected_Call struct {
	*mock.Call
}

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

func (*ProposalViolationConsumer_OnDoubleProposeDetected_Call) Return added in v0.46.0

func (*ProposalViolationConsumer_OnDoubleProposeDetected_Call) Run added in v0.46.0

func (*ProposalViolationConsumer_OnDoubleProposeDetected_Call) RunAndReturn added in v0.46.0

type ProposalViolationConsumer_OnInvalidBlockDetected_Call added in v0.46.0

type ProposalViolationConsumer_OnInvalidBlockDetected_Call struct {
	*mock.Call
}

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

func (*ProposalViolationConsumer_OnInvalidBlockDetected_Call) Return added in v0.46.0

func (*ProposalViolationConsumer_OnInvalidBlockDetected_Call) Run added in v0.46.0

func (*ProposalViolationConsumer_OnInvalidBlockDetected_Call) RunAndReturn added in v0.46.0

type RandomBeaconInspector added in v0.23.9

type RandomBeaconInspector struct {
	mock.Mock
}

RandomBeaconInspector is an autogenerated mock type for the RandomBeaconInspector type

func NewRandomBeaconInspector added in v0.26.1

func NewRandomBeaconInspector(t interface {
	mock.TestingT
	Cleanup(func())
}) *RandomBeaconInspector

NewRandomBeaconInspector creates a new instance of RandomBeaconInspector. 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 (*RandomBeaconInspector) EXPECT added in v0.46.0

func (*RandomBeaconInspector) EnoughShares added in v0.23.9

func (_mock *RandomBeaconInspector) EnoughShares() bool

EnoughShares provides a mock function for the type RandomBeaconInspector

func (*RandomBeaconInspector) Reconstruct added in v0.23.9

func (_mock *RandomBeaconInspector) Reconstruct() (crypto.Signature, error)

Reconstruct provides a mock function for the type RandomBeaconInspector

func (*RandomBeaconInspector) TrustedAdd added in v0.23.9

func (_mock *RandomBeaconInspector) TrustedAdd(signerIndex int, share crypto.Signature) (bool, error)

TrustedAdd provides a mock function for the type RandomBeaconInspector

func (*RandomBeaconInspector) Verify added in v0.23.9

func (_mock *RandomBeaconInspector) Verify(signerIndex int, share crypto.Signature) error

Verify provides a mock function for the type RandomBeaconInspector

type RandomBeaconInspector_EnoughShares_Call added in v0.46.0

type RandomBeaconInspector_EnoughShares_Call struct {
	*mock.Call
}

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

func (*RandomBeaconInspector_EnoughShares_Call) Return added in v0.46.0

func (*RandomBeaconInspector_EnoughShares_Call) Run added in v0.46.0

func (*RandomBeaconInspector_EnoughShares_Call) RunAndReturn added in v0.46.0

type RandomBeaconInspector_Expecter added in v0.46.0

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

func (*RandomBeaconInspector_Expecter) EnoughShares added in v0.46.0

EnoughShares is a helper method to define mock.On call

func (*RandomBeaconInspector_Expecter) Reconstruct added in v0.46.0

Reconstruct is a helper method to define mock.On call

func (*RandomBeaconInspector_Expecter) TrustedAdd added in v0.46.0

func (_e *RandomBeaconInspector_Expecter) TrustedAdd(signerIndex interface{}, share interface{}) *RandomBeaconInspector_TrustedAdd_Call

TrustedAdd is a helper method to define mock.On call

  • signerIndex int
  • share crypto.Signature

func (*RandomBeaconInspector_Expecter) Verify added in v0.46.0

func (_e *RandomBeaconInspector_Expecter) Verify(signerIndex interface{}, share interface{}) *RandomBeaconInspector_Verify_Call

Verify is a helper method to define mock.On call

  • signerIndex int
  • share crypto.Signature

type RandomBeaconInspector_Reconstruct_Call added in v0.46.0

type RandomBeaconInspector_Reconstruct_Call struct {
	*mock.Call
}

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

func (*RandomBeaconInspector_Reconstruct_Call) Return added in v0.46.0

func (*RandomBeaconInspector_Reconstruct_Call) Run added in v0.46.0

func (*RandomBeaconInspector_Reconstruct_Call) RunAndReturn added in v0.46.0

type RandomBeaconInspector_TrustedAdd_Call added in v0.46.0

type RandomBeaconInspector_TrustedAdd_Call struct {
	*mock.Call
}

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

func (*RandomBeaconInspector_TrustedAdd_Call) Return added in v0.46.0

func (*RandomBeaconInspector_TrustedAdd_Call) Run added in v0.46.0

func (*RandomBeaconInspector_TrustedAdd_Call) RunAndReturn added in v0.46.0

type RandomBeaconInspector_Verify_Call added in v0.46.0

type RandomBeaconInspector_Verify_Call struct {
	*mock.Call
}

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

func (*RandomBeaconInspector_Verify_Call) Return added in v0.46.0

func (*RandomBeaconInspector_Verify_Call) Run added in v0.46.0

func (*RandomBeaconInspector_Verify_Call) RunAndReturn added in v0.46.0

func (_c *RandomBeaconInspector_Verify_Call) RunAndReturn(run func(signerIndex int, share crypto.Signature) error) *RandomBeaconInspector_Verify_Call

type RandomBeaconReconstructor added in v0.23.9

type RandomBeaconReconstructor struct {
	mock.Mock
}

RandomBeaconReconstructor is an autogenerated mock type for the RandomBeaconReconstructor type

func NewRandomBeaconReconstructor added in v0.26.1

func NewRandomBeaconReconstructor(t interface {
	mock.TestingT
	Cleanup(func())
}) *RandomBeaconReconstructor

NewRandomBeaconReconstructor creates a new instance of RandomBeaconReconstructor. 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 (*RandomBeaconReconstructor) EXPECT added in v0.46.0

func (*RandomBeaconReconstructor) EnoughShares added in v0.23.9

func (_mock *RandomBeaconReconstructor) EnoughShares() bool

EnoughShares provides a mock function for the type RandomBeaconReconstructor

func (*RandomBeaconReconstructor) Reconstruct added in v0.23.9

func (_mock *RandomBeaconReconstructor) Reconstruct() (crypto.Signature, error)

Reconstruct provides a mock function for the type RandomBeaconReconstructor

func (*RandomBeaconReconstructor) TrustedAdd added in v0.23.9

func (_mock *RandomBeaconReconstructor) TrustedAdd(signerID flow.Identifier, sig crypto.Signature) (bool, error)

TrustedAdd provides a mock function for the type RandomBeaconReconstructor

func (*RandomBeaconReconstructor) Verify added in v0.23.9

func (_mock *RandomBeaconReconstructor) Verify(signerID flow.Identifier, sig crypto.Signature) error

Verify provides a mock function for the type RandomBeaconReconstructor

type RandomBeaconReconstructor_EnoughShares_Call added in v0.46.0

type RandomBeaconReconstructor_EnoughShares_Call struct {
	*mock.Call
}

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

func (*RandomBeaconReconstructor_EnoughShares_Call) Return added in v0.46.0

func (*RandomBeaconReconstructor_EnoughShares_Call) Run added in v0.46.0

func (*RandomBeaconReconstructor_EnoughShares_Call) RunAndReturn added in v0.46.0

type RandomBeaconReconstructor_Expecter added in v0.46.0

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

func (*RandomBeaconReconstructor_Expecter) EnoughShares added in v0.46.0

EnoughShares is a helper method to define mock.On call

func (*RandomBeaconReconstructor_Expecter) Reconstruct added in v0.46.0

Reconstruct is a helper method to define mock.On call

func (*RandomBeaconReconstructor_Expecter) TrustedAdd added in v0.46.0

func (_e *RandomBeaconReconstructor_Expecter) TrustedAdd(signerID interface{}, sig interface{}) *RandomBeaconReconstructor_TrustedAdd_Call

TrustedAdd is a helper method to define mock.On call

  • signerID flow.Identifier
  • sig crypto.Signature

func (*RandomBeaconReconstructor_Expecter) Verify added in v0.46.0

func (_e *RandomBeaconReconstructor_Expecter) Verify(signerID interface{}, sig interface{}) *RandomBeaconReconstructor_Verify_Call

Verify is a helper method to define mock.On call

  • signerID flow.Identifier
  • sig crypto.Signature

type RandomBeaconReconstructor_Reconstruct_Call added in v0.46.0

type RandomBeaconReconstructor_Reconstruct_Call struct {
	*mock.Call
}

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

func (*RandomBeaconReconstructor_Reconstruct_Call) Return added in v0.46.0

func (*RandomBeaconReconstructor_Reconstruct_Call) Run added in v0.46.0

func (*RandomBeaconReconstructor_Reconstruct_Call) RunAndReturn added in v0.46.0

type RandomBeaconReconstructor_TrustedAdd_Call added in v0.46.0

type RandomBeaconReconstructor_TrustedAdd_Call struct {
	*mock.Call
}

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

func (*RandomBeaconReconstructor_TrustedAdd_Call) Return added in v0.46.0

func (*RandomBeaconReconstructor_TrustedAdd_Call) Run added in v0.46.0

func (*RandomBeaconReconstructor_TrustedAdd_Call) RunAndReturn added in v0.46.0

type RandomBeaconReconstructor_Verify_Call added in v0.46.0

type RandomBeaconReconstructor_Verify_Call struct {
	*mock.Call
}

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

func (*RandomBeaconReconstructor_Verify_Call) Return added in v0.46.0

func (*RandomBeaconReconstructor_Verify_Call) Run added in v0.46.0

func (*RandomBeaconReconstructor_Verify_Call) RunAndReturn added in v0.46.0

type Replicas added in v0.29.0

type Replicas struct {
	mock.Mock
}

Replicas is an autogenerated mock type for the Replicas type

func NewReplicas added in v0.29.0

func NewReplicas(t interface {
	mock.TestingT
	Cleanup(func())
}) *Replicas

NewReplicas creates a new instance of Replicas. 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 (*Replicas) DKG added in v0.29.0

func (_mock *Replicas) DKG(view uint64) (hotstuff.DKG, error)

DKG provides a mock function for the type Replicas

func (*Replicas) EXPECT added in v0.46.0

func (_m *Replicas) EXPECT() *Replicas_Expecter

func (*Replicas) IdentitiesByEpoch added in v0.29.0

func (_mock *Replicas) IdentitiesByEpoch(view uint64) (flow.IdentitySkeletonList, error)

IdentitiesByEpoch provides a mock function for the type Replicas

func (*Replicas) IdentityByEpoch added in v0.29.0

func (_mock *Replicas) IdentityByEpoch(view uint64, participantID flow.Identifier) (*flow.IdentitySkeleton, error)

IdentityByEpoch provides a mock function for the type Replicas

func (*Replicas) LeaderForView added in v0.29.0

func (_mock *Replicas) LeaderForView(view uint64) (flow.Identifier, error)

LeaderForView provides a mock function for the type Replicas

func (*Replicas) QuorumThresholdForView added in v0.29.0

func (_mock *Replicas) QuorumThresholdForView(view uint64) (uint64, error)

QuorumThresholdForView provides a mock function for the type Replicas

func (*Replicas) Self added in v0.29.0

func (_mock *Replicas) Self() flow.Identifier

Self provides a mock function for the type Replicas

func (*Replicas) TimeoutThresholdForView added in v0.29.0

func (_mock *Replicas) TimeoutThresholdForView(view uint64) (uint64, error)

TimeoutThresholdForView provides a mock function for the type Replicas

type Replicas_DKG_Call added in v0.46.0

type Replicas_DKG_Call struct {
	*mock.Call
}

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

func (*Replicas_DKG_Call) Return added in v0.46.0

func (_c *Replicas_DKG_Call) Return(dKG hotstuff.DKG, err error) *Replicas_DKG_Call

func (*Replicas_DKG_Call) Run added in v0.46.0

func (_c *Replicas_DKG_Call) Run(run func(view uint64)) *Replicas_DKG_Call

func (*Replicas_DKG_Call) RunAndReturn added in v0.46.0

func (_c *Replicas_DKG_Call) RunAndReturn(run func(view uint64) (hotstuff.DKG, error)) *Replicas_DKG_Call

type Replicas_Expecter added in v0.46.0

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

func (*Replicas_Expecter) DKG added in v0.46.0

func (_e *Replicas_Expecter) DKG(view interface{}) *Replicas_DKG_Call

DKG is a helper method to define mock.On call

  • view uint64

func (*Replicas_Expecter) IdentitiesByEpoch added in v0.46.0

func (_e *Replicas_Expecter) IdentitiesByEpoch(view interface{}) *Replicas_IdentitiesByEpoch_Call

IdentitiesByEpoch is a helper method to define mock.On call

  • view uint64

func (*Replicas_Expecter) IdentityByEpoch added in v0.46.0

func (_e *Replicas_Expecter) IdentityByEpoch(view interface{}, participantID interface{}) *Replicas_IdentityByEpoch_Call

IdentityByEpoch is a helper method to define mock.On call

  • view uint64
  • participantID flow.Identifier

func (*Replicas_Expecter) LeaderForView added in v0.46.0

func (_e *Replicas_Expecter) LeaderForView(view interface{}) *Replicas_LeaderForView_Call

LeaderForView is a helper method to define mock.On call

  • view uint64

func (*Replicas_Expecter) QuorumThresholdForView added in v0.46.0

func (_e *Replicas_Expecter) QuorumThresholdForView(view interface{}) *Replicas_QuorumThresholdForView_Call

QuorumThresholdForView is a helper method to define mock.On call

  • view uint64

func (*Replicas_Expecter) Self added in v0.46.0

Self is a helper method to define mock.On call

func (*Replicas_Expecter) TimeoutThresholdForView added in v0.46.0

func (_e *Replicas_Expecter) TimeoutThresholdForView(view interface{}) *Replicas_TimeoutThresholdForView_Call

TimeoutThresholdForView is a helper method to define mock.On call

  • view uint64

type Replicas_IdentitiesByEpoch_Call added in v0.46.0

type Replicas_IdentitiesByEpoch_Call struct {
	*mock.Call
}

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

func (*Replicas_IdentitiesByEpoch_Call) Return added in v0.46.0

func (*Replicas_IdentitiesByEpoch_Call) Run added in v0.46.0

func (*Replicas_IdentitiesByEpoch_Call) RunAndReturn added in v0.46.0

type Replicas_IdentityByEpoch_Call added in v0.46.0

type Replicas_IdentityByEpoch_Call struct {
	*mock.Call
}

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

func (*Replicas_IdentityByEpoch_Call) Return added in v0.46.0

func (*Replicas_IdentityByEpoch_Call) Run added in v0.46.0

func (_c *Replicas_IdentityByEpoch_Call) Run(run func(view uint64, participantID flow.Identifier)) *Replicas_IdentityByEpoch_Call

func (*Replicas_IdentityByEpoch_Call) RunAndReturn added in v0.46.0

func (_c *Replicas_IdentityByEpoch_Call) RunAndReturn(run func(view uint64, participantID flow.Identifier) (*flow.IdentitySkeleton, error)) *Replicas_IdentityByEpoch_Call

type Replicas_LeaderForView_Call added in v0.46.0

type Replicas_LeaderForView_Call struct {
	*mock.Call
}

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

func (*Replicas_LeaderForView_Call) Return added in v0.46.0

func (*Replicas_LeaderForView_Call) Run added in v0.46.0

func (*Replicas_LeaderForView_Call) RunAndReturn added in v0.46.0

type Replicas_QuorumThresholdForView_Call added in v0.46.0

type Replicas_QuorumThresholdForView_Call struct {
	*mock.Call
}

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

func (*Replicas_QuorumThresholdForView_Call) Return added in v0.46.0

func (*Replicas_QuorumThresholdForView_Call) Run added in v0.46.0

func (*Replicas_QuorumThresholdForView_Call) RunAndReturn added in v0.46.0

type Replicas_Self_Call added in v0.46.0

type Replicas_Self_Call struct {
	*mock.Call
}

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

func (*Replicas_Self_Call) Return added in v0.46.0

func (_c *Replicas_Self_Call) Return(identifier flow.Identifier) *Replicas_Self_Call

func (*Replicas_Self_Call) Run added in v0.46.0

func (_c *Replicas_Self_Call) Run(run func()) *Replicas_Self_Call

func (*Replicas_Self_Call) RunAndReturn added in v0.46.0

func (_c *Replicas_Self_Call) RunAndReturn(run func() flow.Identifier) *Replicas_Self_Call

type Replicas_TimeoutThresholdForView_Call added in v0.46.0

type Replicas_TimeoutThresholdForView_Call struct {
	*mock.Call
}

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

func (*Replicas_TimeoutThresholdForView_Call) Return added in v0.46.0

func (*Replicas_TimeoutThresholdForView_Call) Run added in v0.46.0

func (*Replicas_TimeoutThresholdForView_Call) RunAndReturn added in v0.46.0

type SafetyRules added in v0.29.0

type SafetyRules struct {
	mock.Mock
}

SafetyRules is an autogenerated mock type for the SafetyRules type

func NewSafetyRules added in v0.29.0

func NewSafetyRules(t interface {
	mock.TestingT
	Cleanup(func())
}) *SafetyRules

NewSafetyRules creates a new instance of SafetyRules. 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 (*SafetyRules) EXPECT added in v0.46.0

func (_m *SafetyRules) EXPECT() *SafetyRules_Expecter

func (*SafetyRules) ProduceTimeout added in v0.29.0

func (_mock *SafetyRules) ProduceTimeout(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*model.TimeoutObject, error)

ProduceTimeout provides a mock function for the type SafetyRules

func (*SafetyRules) ProduceVote added in v0.29.0

func (_mock *SafetyRules) ProduceVote(proposal *model.SignedProposal, curView uint64) (*model.Vote, error)

ProduceVote provides a mock function for the type SafetyRules

func (*SafetyRules) SignOwnProposal added in v0.38.0

func (_mock *SafetyRules) SignOwnProposal(unsignedProposal *model.Proposal) (*model.Vote, error)

SignOwnProposal provides a mock function for the type SafetyRules

type SafetyRules_Expecter added in v0.46.0

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

func (*SafetyRules_Expecter) ProduceTimeout added in v0.46.0

func (_e *SafetyRules_Expecter) ProduceTimeout(curView interface{}, newestQC interface{}, lastViewTC interface{}) *SafetyRules_ProduceTimeout_Call

ProduceTimeout is a helper method to define mock.On call

  • curView uint64
  • newestQC *flow.QuorumCertificate
  • lastViewTC *flow.TimeoutCertificate

func (*SafetyRules_Expecter) ProduceVote added in v0.46.0

func (_e *SafetyRules_Expecter) ProduceVote(proposal interface{}, curView interface{}) *SafetyRules_ProduceVote_Call

ProduceVote is a helper method to define mock.On call

  • proposal *model.SignedProposal
  • curView uint64

func (*SafetyRules_Expecter) SignOwnProposal added in v0.46.0

func (_e *SafetyRules_Expecter) SignOwnProposal(unsignedProposal interface{}) *SafetyRules_SignOwnProposal_Call

SignOwnProposal is a helper method to define mock.On call

  • unsignedProposal *model.Proposal

type SafetyRules_ProduceTimeout_Call added in v0.46.0

type SafetyRules_ProduceTimeout_Call struct {
	*mock.Call
}

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

func (*SafetyRules_ProduceTimeout_Call) Return added in v0.46.0

func (*SafetyRules_ProduceTimeout_Call) Run added in v0.46.0

func (*SafetyRules_ProduceTimeout_Call) RunAndReturn added in v0.46.0

type SafetyRules_ProduceVote_Call added in v0.46.0

type SafetyRules_ProduceVote_Call struct {
	*mock.Call
}

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

func (*SafetyRules_ProduceVote_Call) Return added in v0.46.0

func (*SafetyRules_ProduceVote_Call) Run added in v0.46.0

func (*SafetyRules_ProduceVote_Call) RunAndReturn added in v0.46.0

func (_c *SafetyRules_ProduceVote_Call) RunAndReturn(run func(proposal *model.SignedProposal, curView uint64) (*model.Vote, error)) *SafetyRules_ProduceVote_Call

type SafetyRules_SignOwnProposal_Call added in v0.46.0

type SafetyRules_SignOwnProposal_Call struct {
	*mock.Call
}

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

func (*SafetyRules_SignOwnProposal_Call) Return added in v0.46.0

func (*SafetyRules_SignOwnProposal_Call) Run added in v0.46.0

func (*SafetyRules_SignOwnProposal_Call) RunAndReturn added in v0.46.0

func (_c *SafetyRules_SignOwnProposal_Call) RunAndReturn(run func(unsignedProposal *model.Proposal) (*model.Vote, error)) *SafetyRules_SignOwnProposal_Call

type Signer

type Signer struct {
	mock.Mock
}

Signer is an autogenerated mock type for the Signer type

func NewSigner added in v0.26.1

func NewSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Signer

NewSigner creates a new instance of Signer. 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 (*Signer) CreateTimeout added in v0.29.0

func (_mock *Signer) CreateTimeout(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*model.TimeoutObject, error)

CreateTimeout provides a mock function for the type Signer

func (*Signer) CreateVote

func (_mock *Signer) CreateVote(block *model.Block) (*model.Vote, error)

CreateVote provides a mock function for the type Signer

func (*Signer) EXPECT added in v0.46.0

func (_m *Signer) EXPECT() *Signer_Expecter

type Signer_CreateTimeout_Call added in v0.46.0

type Signer_CreateTimeout_Call struct {
	*mock.Call
}

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

func (*Signer_CreateTimeout_Call) Return added in v0.46.0

func (*Signer_CreateTimeout_Call) Run added in v0.46.0

func (_c *Signer_CreateTimeout_Call) Run(run func(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)) *Signer_CreateTimeout_Call

func (*Signer_CreateTimeout_Call) RunAndReturn added in v0.46.0

func (_c *Signer_CreateTimeout_Call) RunAndReturn(run func(curView uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate) (*model.TimeoutObject, error)) *Signer_CreateTimeout_Call

type Signer_CreateVote_Call added in v0.46.0

type Signer_CreateVote_Call struct {
	*mock.Call
}

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

func (*Signer_CreateVote_Call) Return added in v0.46.0

func (*Signer_CreateVote_Call) Run added in v0.46.0

func (_c *Signer_CreateVote_Call) Run(run func(block *model.Block)) *Signer_CreateVote_Call

func (*Signer_CreateVote_Call) RunAndReturn added in v0.46.0

func (_c *Signer_CreateVote_Call) RunAndReturn(run func(block *model.Block) (*model.Vote, error)) *Signer_CreateVote_Call

type Signer_Expecter added in v0.46.0

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

func (*Signer_Expecter) CreateTimeout added in v0.46.0

func (_e *Signer_Expecter) CreateTimeout(curView interface{}, newestQC interface{}, lastViewTC interface{}) *Signer_CreateTimeout_Call

CreateTimeout is a helper method to define mock.On call

  • curView uint64
  • newestQC *flow.QuorumCertificate
  • lastViewTC *flow.TimeoutCertificate

func (*Signer_Expecter) CreateVote added in v0.46.0

func (_e *Signer_Expecter) CreateVote(block interface{}) *Signer_CreateVote_Call

CreateVote is a helper method to define mock.On call

  • block *model.Block

type TimeoutAggregationConsumer added in v0.31.0

type TimeoutAggregationConsumer struct {
	mock.Mock
}

TimeoutAggregationConsumer is an autogenerated mock type for the TimeoutAggregationConsumer type

func NewTimeoutAggregationConsumer added in v0.31.0

func NewTimeoutAggregationConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutAggregationConsumer

NewTimeoutAggregationConsumer creates a new instance of TimeoutAggregationConsumer. 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 (*TimeoutAggregationConsumer) EXPECT added in v0.46.0

func (*TimeoutAggregationConsumer) OnDoubleTimeoutDetected added in v0.31.0

func (_mock *TimeoutAggregationConsumer) OnDoubleTimeoutDetected(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)

OnDoubleTimeoutDetected provides a mock function for the type TimeoutAggregationConsumer

func (*TimeoutAggregationConsumer) OnInvalidTimeoutDetected added in v0.31.0

func (_mock *TimeoutAggregationConsumer) OnInvalidTimeoutDetected(err model.InvalidTimeoutError)

OnInvalidTimeoutDetected provides a mock function for the type TimeoutAggregationConsumer

func (*TimeoutAggregationConsumer) OnNewQcDiscovered added in v0.31.0

func (_mock *TimeoutAggregationConsumer) OnNewQcDiscovered(certificate *flow.QuorumCertificate)

OnNewQcDiscovered provides a mock function for the type TimeoutAggregationConsumer

func (*TimeoutAggregationConsumer) OnNewTcDiscovered added in v0.31.0

func (_mock *TimeoutAggregationConsumer) OnNewTcDiscovered(certificate *flow.TimeoutCertificate)

OnNewTcDiscovered provides a mock function for the type TimeoutAggregationConsumer

func (*TimeoutAggregationConsumer) OnPartialTcCreated added in v0.31.0

func (_mock *TimeoutAggregationConsumer) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)

OnPartialTcCreated provides a mock function for the type TimeoutAggregationConsumer

func (*TimeoutAggregationConsumer) OnTcConstructedFromTimeouts added in v0.31.0

func (_mock *TimeoutAggregationConsumer) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate)

OnTcConstructedFromTimeouts provides a mock function for the type TimeoutAggregationConsumer

func (*TimeoutAggregationConsumer) OnTimeoutProcessed added in v0.31.0

func (_mock *TimeoutAggregationConsumer) OnTimeoutProcessed(timeout *model.TimeoutObject)

OnTimeoutProcessed provides a mock function for the type TimeoutAggregationConsumer

type TimeoutAggregationConsumer_Expecter added in v0.46.0

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

func (*TimeoutAggregationConsumer_Expecter) OnDoubleTimeoutDetected added in v0.46.0

func (_e *TimeoutAggregationConsumer_Expecter) OnDoubleTimeoutDetected(timeoutObject interface{}, timeoutObject1 interface{}) *TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call

OnDoubleTimeoutDetected is a helper method to define mock.On call

  • timeoutObject *model.TimeoutObject
  • timeoutObject1 *model.TimeoutObject

func (*TimeoutAggregationConsumer_Expecter) OnInvalidTimeoutDetected added in v0.46.0

OnInvalidTimeoutDetected is a helper method to define mock.On call

  • err model.InvalidTimeoutError

func (*TimeoutAggregationConsumer_Expecter) OnNewQcDiscovered added in v0.46.0

func (_e *TimeoutAggregationConsumer_Expecter) OnNewQcDiscovered(certificate interface{}) *TimeoutAggregationConsumer_OnNewQcDiscovered_Call

OnNewQcDiscovered is a helper method to define mock.On call

  • certificate *flow.QuorumCertificate

func (*TimeoutAggregationConsumer_Expecter) OnNewTcDiscovered added in v0.46.0

func (_e *TimeoutAggregationConsumer_Expecter) OnNewTcDiscovered(certificate interface{}) *TimeoutAggregationConsumer_OnNewTcDiscovered_Call

OnNewTcDiscovered is a helper method to define mock.On call

  • certificate *flow.TimeoutCertificate

func (*TimeoutAggregationConsumer_Expecter) OnPartialTcCreated added in v0.46.0

func (_e *TimeoutAggregationConsumer_Expecter) OnPartialTcCreated(view interface{}, newestQC interface{}, lastViewTC interface{}) *TimeoutAggregationConsumer_OnPartialTcCreated_Call

OnPartialTcCreated is a helper method to define mock.On call

  • view uint64
  • newestQC *flow.QuorumCertificate
  • lastViewTC *flow.TimeoutCertificate

func (*TimeoutAggregationConsumer_Expecter) OnTcConstructedFromTimeouts added in v0.46.0

func (_e *TimeoutAggregationConsumer_Expecter) OnTcConstructedFromTimeouts(certificate interface{}) *TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call

OnTcConstructedFromTimeouts is a helper method to define mock.On call

  • certificate *flow.TimeoutCertificate

func (*TimeoutAggregationConsumer_Expecter) OnTimeoutProcessed added in v0.46.0

OnTimeoutProcessed is a helper method to define mock.On call

  • timeout *model.TimeoutObject

type TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call added in v0.46.0

type TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) Return added in v0.46.0

func (*TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) Run added in v0.46.0

func (*TimeoutAggregationConsumer_OnDoubleTimeoutDetected_Call) RunAndReturn added in v0.46.0

type TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call added in v0.46.0

type TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) Return added in v0.46.0

func (*TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) Run added in v0.46.0

func (*TimeoutAggregationConsumer_OnInvalidTimeoutDetected_Call) RunAndReturn added in v0.46.0

type TimeoutAggregationConsumer_OnNewQcDiscovered_Call added in v0.46.0

type TimeoutAggregationConsumer_OnNewQcDiscovered_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregationConsumer_OnNewQcDiscovered_Call) Return added in v0.46.0

func (*TimeoutAggregationConsumer_OnNewQcDiscovered_Call) Run added in v0.46.0

func (*TimeoutAggregationConsumer_OnNewQcDiscovered_Call) RunAndReturn added in v0.46.0

type TimeoutAggregationConsumer_OnNewTcDiscovered_Call added in v0.46.0

type TimeoutAggregationConsumer_OnNewTcDiscovered_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregationConsumer_OnNewTcDiscovered_Call) Return added in v0.46.0

func (*TimeoutAggregationConsumer_OnNewTcDiscovered_Call) Run added in v0.46.0

func (*TimeoutAggregationConsumer_OnNewTcDiscovered_Call) RunAndReturn added in v0.46.0

type TimeoutAggregationConsumer_OnPartialTcCreated_Call added in v0.46.0

type TimeoutAggregationConsumer_OnPartialTcCreated_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregationConsumer_OnPartialTcCreated_Call) Return added in v0.46.0

func (*TimeoutAggregationConsumer_OnPartialTcCreated_Call) Run added in v0.46.0

func (*TimeoutAggregationConsumer_OnPartialTcCreated_Call) RunAndReturn added in v0.46.0

type TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call added in v0.46.0

type TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) Return added in v0.46.0

func (*TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) Run added in v0.46.0

func (*TimeoutAggregationConsumer_OnTcConstructedFromTimeouts_Call) RunAndReturn added in v0.46.0

type TimeoutAggregationConsumer_OnTimeoutProcessed_Call added in v0.46.0

type TimeoutAggregationConsumer_OnTimeoutProcessed_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregationConsumer_OnTimeoutProcessed_Call) Return added in v0.46.0

func (*TimeoutAggregationConsumer_OnTimeoutProcessed_Call) Run added in v0.46.0

func (*TimeoutAggregationConsumer_OnTimeoutProcessed_Call) RunAndReturn added in v0.46.0

type TimeoutAggregationViolationConsumer added in v0.31.0

type TimeoutAggregationViolationConsumer struct {
	mock.Mock
}

TimeoutAggregationViolationConsumer is an autogenerated mock type for the TimeoutAggregationViolationConsumer type

func NewTimeoutAggregationViolationConsumer added in v0.31.0

func NewTimeoutAggregationViolationConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutAggregationViolationConsumer

NewTimeoutAggregationViolationConsumer creates a new instance of TimeoutAggregationViolationConsumer. 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 (*TimeoutAggregationViolationConsumer) EXPECT added in v0.46.0

func (*TimeoutAggregationViolationConsumer) OnDoubleTimeoutDetected added in v0.31.0

func (_mock *TimeoutAggregationViolationConsumer) OnDoubleTimeoutDetected(timeoutObject *model.TimeoutObject, timeoutObject1 *model.TimeoutObject)

OnDoubleTimeoutDetected provides a mock function for the type TimeoutAggregationViolationConsumer

func (*TimeoutAggregationViolationConsumer) OnInvalidTimeoutDetected added in v0.31.0

func (_mock *TimeoutAggregationViolationConsumer) OnInvalidTimeoutDetected(err model.InvalidTimeoutError)

OnInvalidTimeoutDetected provides a mock function for the type TimeoutAggregationViolationConsumer

type TimeoutAggregationViolationConsumer_Expecter added in v0.46.0

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

func (*TimeoutAggregationViolationConsumer_Expecter) OnDoubleTimeoutDetected added in v0.46.0

func (_e *TimeoutAggregationViolationConsumer_Expecter) OnDoubleTimeoutDetected(timeoutObject interface{}, timeoutObject1 interface{}) *TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call

OnDoubleTimeoutDetected is a helper method to define mock.On call

  • timeoutObject *model.TimeoutObject
  • timeoutObject1 *model.TimeoutObject

func (*TimeoutAggregationViolationConsumer_Expecter) OnInvalidTimeoutDetected added in v0.46.0

OnInvalidTimeoutDetected is a helper method to define mock.On call

  • err model.InvalidTimeoutError

type TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call added in v0.46.0

type TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) Return added in v0.46.0

func (*TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) Run added in v0.46.0

func (*TimeoutAggregationViolationConsumer_OnDoubleTimeoutDetected_Call) RunAndReturn added in v0.46.0

type TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call added in v0.46.0

type TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call) Return added in v0.46.0

func (*TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call) Run added in v0.46.0

func (*TimeoutAggregationViolationConsumer_OnInvalidTimeoutDetected_Call) RunAndReturn added in v0.46.0

type TimeoutAggregator added in v0.29.0

type TimeoutAggregator struct {
	mock.Mock
}

TimeoutAggregator is an autogenerated mock type for the TimeoutAggregator type

func NewTimeoutAggregator added in v0.29.0

func NewTimeoutAggregator(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutAggregator

NewTimeoutAggregator creates a new instance of TimeoutAggregator. 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 (*TimeoutAggregator) AddTimeout added in v0.29.0

func (_mock *TimeoutAggregator) AddTimeout(timeoutObject *model.TimeoutObject)

AddTimeout provides a mock function for the type TimeoutAggregator

func (*TimeoutAggregator) Done added in v0.29.0

func (_mock *TimeoutAggregator) Done() <-chan struct{}

Done provides a mock function for the type TimeoutAggregator

func (*TimeoutAggregator) EXPECT added in v0.46.0

func (*TimeoutAggregator) PruneUpToView added in v0.29.0

func (_mock *TimeoutAggregator) PruneUpToView(lowestRetainedView uint64)

PruneUpToView provides a mock function for the type TimeoutAggregator

func (*TimeoutAggregator) Ready added in v0.29.0

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

Ready provides a mock function for the type TimeoutAggregator

func (*TimeoutAggregator) Start added in v0.29.0

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

Start provides a mock function for the type TimeoutAggregator

type TimeoutAggregator_AddTimeout_Call added in v0.46.0

type TimeoutAggregator_AddTimeout_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregator_AddTimeout_Call) Return added in v0.46.0

func (*TimeoutAggregator_AddTimeout_Call) Run added in v0.46.0

func (*TimeoutAggregator_AddTimeout_Call) RunAndReturn added in v0.46.0

func (_c *TimeoutAggregator_AddTimeout_Call) RunAndReturn(run func(timeoutObject *model.TimeoutObject)) *TimeoutAggregator_AddTimeout_Call

type TimeoutAggregator_Done_Call added in v0.46.0

type TimeoutAggregator_Done_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregator_Done_Call) Return added in v0.46.0

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

func (*TimeoutAggregator_Done_Call) Run added in v0.46.0

func (*TimeoutAggregator_Done_Call) RunAndReturn added in v0.46.0

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

type TimeoutAggregator_Expecter added in v0.46.0

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

func (*TimeoutAggregator_Expecter) AddTimeout added in v0.46.0

func (_e *TimeoutAggregator_Expecter) AddTimeout(timeoutObject interface{}) *TimeoutAggregator_AddTimeout_Call

AddTimeout is a helper method to define mock.On call

  • timeoutObject *model.TimeoutObject

func (*TimeoutAggregator_Expecter) Done added in v0.46.0

Done is a helper method to define mock.On call

func (*TimeoutAggregator_Expecter) PruneUpToView added in v0.46.0

func (_e *TimeoutAggregator_Expecter) PruneUpToView(lowestRetainedView interface{}) *TimeoutAggregator_PruneUpToView_Call

PruneUpToView is a helper method to define mock.On call

  • lowestRetainedView uint64

func (*TimeoutAggregator_Expecter) Ready added in v0.46.0

Ready is a helper method to define mock.On call

func (*TimeoutAggregator_Expecter) Start added in v0.46.0

func (_e *TimeoutAggregator_Expecter) Start(signalerContext interface{}) *TimeoutAggregator_Start_Call

Start is a helper method to define mock.On call

  • signalerContext irrecoverable.SignalerContext

type TimeoutAggregator_PruneUpToView_Call added in v0.46.0

type TimeoutAggregator_PruneUpToView_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregator_PruneUpToView_Call) Return added in v0.46.0

func (*TimeoutAggregator_PruneUpToView_Call) Run added in v0.46.0

func (*TimeoutAggregator_PruneUpToView_Call) RunAndReturn added in v0.46.0

func (_c *TimeoutAggregator_PruneUpToView_Call) RunAndReturn(run func(lowestRetainedView uint64)) *TimeoutAggregator_PruneUpToView_Call

type TimeoutAggregator_Ready_Call added in v0.46.0

type TimeoutAggregator_Ready_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregator_Ready_Call) Return added in v0.46.0

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

func (*TimeoutAggregator_Ready_Call) Run added in v0.46.0

func (*TimeoutAggregator_Ready_Call) RunAndReturn added in v0.46.0

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

type TimeoutAggregator_Start_Call added in v0.46.0

type TimeoutAggregator_Start_Call struct {
	*mock.Call
}

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

func (*TimeoutAggregator_Start_Call) Return added in v0.46.0

func (*TimeoutAggregator_Start_Call) Run added in v0.46.0

func (*TimeoutAggregator_Start_Call) RunAndReturn added in v0.46.0

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

type TimeoutCollector added in v0.29.0

type TimeoutCollector struct {
	mock.Mock
}

TimeoutCollector is an autogenerated mock type for the TimeoutCollector type

func NewTimeoutCollector added in v0.29.0

func NewTimeoutCollector(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutCollector

NewTimeoutCollector creates a new instance of TimeoutCollector. 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 (*TimeoutCollector) AddTimeout added in v0.29.0

func (_mock *TimeoutCollector) AddTimeout(timeoutObject *model.TimeoutObject) error

AddTimeout provides a mock function for the type TimeoutCollector

func (*TimeoutCollector) EXPECT added in v0.46.0

func (*TimeoutCollector) View added in v0.29.0

func (_mock *TimeoutCollector) View() uint64

View provides a mock function for the type TimeoutCollector

type TimeoutCollectorConsumer added in v0.29.0

type TimeoutCollectorConsumer struct {
	mock.Mock
}

TimeoutCollectorConsumer is an autogenerated mock type for the TimeoutCollectorConsumer type

func NewTimeoutCollectorConsumer added in v0.29.0

func NewTimeoutCollectorConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutCollectorConsumer

NewTimeoutCollectorConsumer creates a new instance of TimeoutCollectorConsumer. 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 (*TimeoutCollectorConsumer) EXPECT added in v0.46.0

func (*TimeoutCollectorConsumer) OnNewQcDiscovered added in v0.29.0

func (_mock *TimeoutCollectorConsumer) OnNewQcDiscovered(certificate *flow.QuorumCertificate)

OnNewQcDiscovered provides a mock function for the type TimeoutCollectorConsumer

func (*TimeoutCollectorConsumer) OnNewTcDiscovered added in v0.29.0

func (_mock *TimeoutCollectorConsumer) OnNewTcDiscovered(certificate *flow.TimeoutCertificate)

OnNewTcDiscovered provides a mock function for the type TimeoutCollectorConsumer

func (*TimeoutCollectorConsumer) OnPartialTcCreated added in v0.29.0

func (_mock *TimeoutCollectorConsumer) OnPartialTcCreated(view uint64, newestQC *flow.QuorumCertificate, lastViewTC *flow.TimeoutCertificate)

OnPartialTcCreated provides a mock function for the type TimeoutCollectorConsumer

func (*TimeoutCollectorConsumer) OnTcConstructedFromTimeouts added in v0.29.0

func (_mock *TimeoutCollectorConsumer) OnTcConstructedFromTimeouts(certificate *flow.TimeoutCertificate)

OnTcConstructedFromTimeouts provides a mock function for the type TimeoutCollectorConsumer

func (*TimeoutCollectorConsumer) OnTimeoutProcessed added in v0.31.0

func (_mock *TimeoutCollectorConsumer) OnTimeoutProcessed(timeout *model.TimeoutObject)

OnTimeoutProcessed provides a mock function for the type TimeoutCollectorConsumer

type TimeoutCollectorConsumer_Expecter added in v0.46.0

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

func (*TimeoutCollectorConsumer_Expecter) OnNewQcDiscovered added in v0.46.0

func (_e *TimeoutCollectorConsumer_Expecter) OnNewQcDiscovered(certificate interface{}) *TimeoutCollectorConsumer_OnNewQcDiscovered_Call

OnNewQcDiscovered is a helper method to define mock.On call

  • certificate *flow.QuorumCertificate

func (*TimeoutCollectorConsumer_Expecter) OnNewTcDiscovered added in v0.46.0

func (_e *TimeoutCollectorConsumer_Expecter) OnNewTcDiscovered(certificate interface{}) *TimeoutCollectorConsumer_OnNewTcDiscovered_Call

OnNewTcDiscovered is a helper method to define mock.On call

  • certificate *flow.TimeoutCertificate

func (*TimeoutCollectorConsumer_Expecter) OnPartialTcCreated added in v0.46.0

func (_e *TimeoutCollectorConsumer_Expecter) OnPartialTcCreated(view interface{}, newestQC interface{}, lastViewTC interface{}) *TimeoutCollectorConsumer_OnPartialTcCreated_Call

OnPartialTcCreated is a helper method to define mock.On call

  • view uint64
  • newestQC *flow.QuorumCertificate
  • lastViewTC *flow.TimeoutCertificate

func (*TimeoutCollectorConsumer_Expecter) OnTcConstructedFromTimeouts added in v0.46.0

func (_e *TimeoutCollectorConsumer_Expecter) OnTcConstructedFromTimeouts(certificate interface{}) *TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call

OnTcConstructedFromTimeouts is a helper method to define mock.On call

  • certificate *flow.TimeoutCertificate

func (*TimeoutCollectorConsumer_Expecter) OnTimeoutProcessed added in v0.46.0

func (_e *TimeoutCollectorConsumer_Expecter) OnTimeoutProcessed(timeout interface{}) *TimeoutCollectorConsumer_OnTimeoutProcessed_Call

OnTimeoutProcessed is a helper method to define mock.On call

  • timeout *model.TimeoutObject

type TimeoutCollectorConsumer_OnNewQcDiscovered_Call added in v0.46.0

type TimeoutCollectorConsumer_OnNewQcDiscovered_Call struct {
	*mock.Call
}

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

func (*TimeoutCollectorConsumer_OnNewQcDiscovered_Call) Return added in v0.46.0

func (*TimeoutCollectorConsumer_OnNewQcDiscovered_Call) Run added in v0.46.0

func (*TimeoutCollectorConsumer_OnNewQcDiscovered_Call) RunAndReturn added in v0.46.0

type TimeoutCollectorConsumer_OnNewTcDiscovered_Call added in v0.46.0

type TimeoutCollectorConsumer_OnNewTcDiscovered_Call struct {
	*mock.Call
}

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

func (*TimeoutCollectorConsumer_OnNewTcDiscovered_Call) Return added in v0.46.0

func (*TimeoutCollectorConsumer_OnNewTcDiscovered_Call) Run added in v0.46.0

func (*TimeoutCollectorConsumer_OnNewTcDiscovered_Call) RunAndReturn added in v0.46.0

type TimeoutCollectorConsumer_OnPartialTcCreated_Call added in v0.46.0

type TimeoutCollectorConsumer_OnPartialTcCreated_Call struct {
	*mock.Call
}

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

func (*TimeoutCollectorConsumer_OnPartialTcCreated_Call) Return added in v0.46.0

func (*TimeoutCollectorConsumer_OnPartialTcCreated_Call) Run added in v0.46.0

func (*TimeoutCollectorConsumer_OnPartialTcCreated_Call) RunAndReturn added in v0.46.0

type TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call added in v0.46.0

type TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call struct {
	*mock.Call
}

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

func (*TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) Return added in v0.46.0

func (*TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) Run added in v0.46.0

func (*TimeoutCollectorConsumer_OnTcConstructedFromTimeouts_Call) RunAndReturn added in v0.46.0

type TimeoutCollectorConsumer_OnTimeoutProcessed_Call added in v0.46.0

type TimeoutCollectorConsumer_OnTimeoutProcessed_Call struct {
	*mock.Call
}

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

func (*TimeoutCollectorConsumer_OnTimeoutProcessed_Call) Return added in v0.46.0

func (*TimeoutCollectorConsumer_OnTimeoutProcessed_Call) Run added in v0.46.0

func (*TimeoutCollectorConsumer_OnTimeoutProcessed_Call) RunAndReturn added in v0.46.0

type TimeoutCollectorFactory added in v0.29.0

type TimeoutCollectorFactory struct {
	mock.Mock
}

TimeoutCollectorFactory is an autogenerated mock type for the TimeoutCollectorFactory type

func NewTimeoutCollectorFactory added in v0.29.0

func NewTimeoutCollectorFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutCollectorFactory

NewTimeoutCollectorFactory creates a new instance of TimeoutCollectorFactory. 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 (*TimeoutCollectorFactory) Create added in v0.29.0

Create provides a mock function for the type TimeoutCollectorFactory

func (*TimeoutCollectorFactory) EXPECT added in v0.46.0

type TimeoutCollectorFactory_Create_Call added in v0.46.0

type TimeoutCollectorFactory_Create_Call struct {
	*mock.Call
}

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

func (*TimeoutCollectorFactory_Create_Call) Return added in v0.46.0

func (*TimeoutCollectorFactory_Create_Call) Run added in v0.46.0

func (*TimeoutCollectorFactory_Create_Call) RunAndReturn added in v0.46.0

type TimeoutCollectorFactory_Expecter added in v0.46.0

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

func (*TimeoutCollectorFactory_Expecter) Create added in v0.46.0

Create is a helper method to define mock.On call

  • view uint64

type TimeoutCollector_AddTimeout_Call added in v0.46.0

type TimeoutCollector_AddTimeout_Call struct {
	*mock.Call
}

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

func (*TimeoutCollector_AddTimeout_Call) Return added in v0.46.0

func (*TimeoutCollector_AddTimeout_Call) Run added in v0.46.0

func (*TimeoutCollector_AddTimeout_Call) RunAndReturn added in v0.46.0

type TimeoutCollector_Expecter added in v0.46.0

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

func (*TimeoutCollector_Expecter) AddTimeout added in v0.46.0

func (_e *TimeoutCollector_Expecter) AddTimeout(timeoutObject interface{}) *TimeoutCollector_AddTimeout_Call

AddTimeout is a helper method to define mock.On call

  • timeoutObject *model.TimeoutObject

func (*TimeoutCollector_Expecter) View added in v0.46.0

View is a helper method to define mock.On call

type TimeoutCollector_View_Call added in v0.46.0

type TimeoutCollector_View_Call struct {
	*mock.Call
}

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

func (*TimeoutCollector_View_Call) Return added in v0.46.0

func (*TimeoutCollector_View_Call) Run added in v0.46.0

func (*TimeoutCollector_View_Call) RunAndReturn added in v0.46.0

func (_c *TimeoutCollector_View_Call) RunAndReturn(run func() uint64) *TimeoutCollector_View_Call

type TimeoutCollectors added in v0.29.0

type TimeoutCollectors struct {
	mock.Mock
}

TimeoutCollectors is an autogenerated mock type for the TimeoutCollectors type

func NewTimeoutCollectors added in v0.29.0

func NewTimeoutCollectors(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutCollectors

NewTimeoutCollectors creates a new instance of TimeoutCollectors. 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 (*TimeoutCollectors) EXPECT added in v0.46.0

func (*TimeoutCollectors) GetOrCreateCollector added in v0.29.0

func (_mock *TimeoutCollectors) GetOrCreateCollector(view uint64) (hotstuff.TimeoutCollector, bool, error)

GetOrCreateCollector provides a mock function for the type TimeoutCollectors

func (*TimeoutCollectors) PruneUpToView added in v0.29.0

func (_mock *TimeoutCollectors) PruneUpToView(lowestRetainedView uint64)

PruneUpToView provides a mock function for the type TimeoutCollectors

type TimeoutCollectors_Expecter added in v0.46.0

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

func (*TimeoutCollectors_Expecter) GetOrCreateCollector added in v0.46.0

func (_e *TimeoutCollectors_Expecter) GetOrCreateCollector(view interface{}) *TimeoutCollectors_GetOrCreateCollector_Call

GetOrCreateCollector is a helper method to define mock.On call

  • view uint64

func (*TimeoutCollectors_Expecter) PruneUpToView added in v0.46.0

func (_e *TimeoutCollectors_Expecter) PruneUpToView(lowestRetainedView interface{}) *TimeoutCollectors_PruneUpToView_Call

PruneUpToView is a helper method to define mock.On call

  • lowestRetainedView uint64

type TimeoutCollectors_GetOrCreateCollector_Call added in v0.46.0

type TimeoutCollectors_GetOrCreateCollector_Call struct {
	*mock.Call
}

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

func (*TimeoutCollectors_GetOrCreateCollector_Call) Return added in v0.46.0

func (*TimeoutCollectors_GetOrCreateCollector_Call) Run added in v0.46.0

func (*TimeoutCollectors_GetOrCreateCollector_Call) RunAndReturn added in v0.46.0

type TimeoutCollectors_PruneUpToView_Call added in v0.46.0

type TimeoutCollectors_PruneUpToView_Call struct {
	*mock.Call
}

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

func (*TimeoutCollectors_PruneUpToView_Call) Return added in v0.46.0

func (*TimeoutCollectors_PruneUpToView_Call) Run added in v0.46.0

func (*TimeoutCollectors_PruneUpToView_Call) RunAndReturn added in v0.46.0

func (_c *TimeoutCollectors_PruneUpToView_Call) RunAndReturn(run func(lowestRetainedView uint64)) *TimeoutCollectors_PruneUpToView_Call

type TimeoutProcessor added in v0.29.0

type TimeoutProcessor struct {
	mock.Mock
}

TimeoutProcessor is an autogenerated mock type for the TimeoutProcessor type

func NewTimeoutProcessor added in v0.29.0

func NewTimeoutProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutProcessor

NewTimeoutProcessor creates a new instance of TimeoutProcessor. 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 (*TimeoutProcessor) EXPECT added in v0.46.0

func (*TimeoutProcessor) Process added in v0.29.0

func (_mock *TimeoutProcessor) Process(timeout *model.TimeoutObject) error

Process provides a mock function for the type TimeoutProcessor

type TimeoutProcessorFactory added in v0.29.0

type TimeoutProcessorFactory struct {
	mock.Mock
}

TimeoutProcessorFactory is an autogenerated mock type for the TimeoutProcessorFactory type

func NewTimeoutProcessorFactory added in v0.29.0

func NewTimeoutProcessorFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutProcessorFactory

NewTimeoutProcessorFactory creates a new instance of TimeoutProcessorFactory. 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 (*TimeoutProcessorFactory) Create added in v0.29.0

Create provides a mock function for the type TimeoutProcessorFactory

func (*TimeoutProcessorFactory) EXPECT added in v0.46.0

type TimeoutProcessorFactory_Create_Call added in v0.46.0

type TimeoutProcessorFactory_Create_Call struct {
	*mock.Call
}

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

func (*TimeoutProcessorFactory_Create_Call) Return added in v0.46.0

func (*TimeoutProcessorFactory_Create_Call) Run added in v0.46.0

func (*TimeoutProcessorFactory_Create_Call) RunAndReturn added in v0.46.0

type TimeoutProcessorFactory_Expecter added in v0.46.0

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

func (*TimeoutProcessorFactory_Expecter) Create added in v0.46.0

Create is a helper method to define mock.On call

  • view uint64

type TimeoutProcessor_Expecter added in v0.46.0

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

func (*TimeoutProcessor_Expecter) Process added in v0.46.0

func (_e *TimeoutProcessor_Expecter) Process(timeout interface{}) *TimeoutProcessor_Process_Call

Process is a helper method to define mock.On call

  • timeout *model.TimeoutObject

type TimeoutProcessor_Process_Call added in v0.46.0

type TimeoutProcessor_Process_Call struct {
	*mock.Call
}

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

func (*TimeoutProcessor_Process_Call) Return added in v0.46.0

func (*TimeoutProcessor_Process_Call) Run added in v0.46.0

func (*TimeoutProcessor_Process_Call) RunAndReturn added in v0.46.0

type TimeoutSignatureAggregator added in v0.29.0

type TimeoutSignatureAggregator struct {
	mock.Mock
}

TimeoutSignatureAggregator is an autogenerated mock type for the TimeoutSignatureAggregator type

func NewTimeoutSignatureAggregator added in v0.29.0

func NewTimeoutSignatureAggregator(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeoutSignatureAggregator

NewTimeoutSignatureAggregator creates a new instance of TimeoutSignatureAggregator. 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 (*TimeoutSignatureAggregator) Aggregate added in v0.29.0

Aggregate provides a mock function for the type TimeoutSignatureAggregator

func (*TimeoutSignatureAggregator) EXPECT added in v0.46.0

func (*TimeoutSignatureAggregator) TotalWeight added in v0.29.0

func (_mock *TimeoutSignatureAggregator) TotalWeight() uint64

TotalWeight provides a mock function for the type TimeoutSignatureAggregator

func (*TimeoutSignatureAggregator) VerifyAndAdd added in v0.29.0

func (_mock *TimeoutSignatureAggregator) VerifyAndAdd(signerID flow.Identifier, sig crypto.Signature, newestQCView uint64) (uint64, error)

VerifyAndAdd provides a mock function for the type TimeoutSignatureAggregator

func (*TimeoutSignatureAggregator) View added in v0.29.0

func (_mock *TimeoutSignatureAggregator) View() uint64

View provides a mock function for the type TimeoutSignatureAggregator

type TimeoutSignatureAggregator_Aggregate_Call added in v0.46.0

type TimeoutSignatureAggregator_Aggregate_Call struct {
	*mock.Call
}

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

func (*TimeoutSignatureAggregator_Aggregate_Call) Return added in v0.46.0

func (*TimeoutSignatureAggregator_Aggregate_Call) Run added in v0.46.0

func (*TimeoutSignatureAggregator_Aggregate_Call) RunAndReturn added in v0.46.0

type TimeoutSignatureAggregator_Expecter added in v0.46.0

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

func (*TimeoutSignatureAggregator_Expecter) Aggregate added in v0.46.0

Aggregate is a helper method to define mock.On call

func (*TimeoutSignatureAggregator_Expecter) TotalWeight added in v0.46.0

TotalWeight is a helper method to define mock.On call

func (*TimeoutSignatureAggregator_Expecter) VerifyAndAdd added in v0.46.0

func (_e *TimeoutSignatureAggregator_Expecter) VerifyAndAdd(signerID interface{}, sig interface{}, newestQCView interface{}) *TimeoutSignatureAggregator_VerifyAndAdd_Call

VerifyAndAdd is a helper method to define mock.On call

  • signerID flow.Identifier
  • sig crypto.Signature
  • newestQCView uint64

func (*TimeoutSignatureAggregator_Expecter) View added in v0.46.0

View is a helper method to define mock.On call

type TimeoutSignatureAggregator_TotalWeight_Call added in v0.46.0

type TimeoutSignatureAggregator_TotalWeight_Call struct {
	*mock.Call
}

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

func (*TimeoutSignatureAggregator_TotalWeight_Call) Return added in v0.46.0

func (*TimeoutSignatureAggregator_TotalWeight_Call) Run added in v0.46.0

func (*TimeoutSignatureAggregator_TotalWeight_Call) RunAndReturn added in v0.46.0

type TimeoutSignatureAggregator_VerifyAndAdd_Call added in v0.46.0

type TimeoutSignatureAggregator_VerifyAndAdd_Call struct {
	*mock.Call
}

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

func (*TimeoutSignatureAggregator_VerifyAndAdd_Call) Return added in v0.46.0

func (*TimeoutSignatureAggregator_VerifyAndAdd_Call) Run added in v0.46.0

func (*TimeoutSignatureAggregator_VerifyAndAdd_Call) RunAndReturn added in v0.46.0

type TimeoutSignatureAggregator_View_Call added in v0.46.0

type TimeoutSignatureAggregator_View_Call struct {
	*mock.Call
}

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

func (*TimeoutSignatureAggregator_View_Call) Return added in v0.46.0

func (*TimeoutSignatureAggregator_View_Call) Run added in v0.46.0

func (*TimeoutSignatureAggregator_View_Call) RunAndReturn added in v0.46.0

type Validator

type Validator struct {
	mock.Mock
}

Validator is an autogenerated mock type for the Validator type

func NewValidator added in v0.26.1

func NewValidator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Validator

NewValidator creates a new instance of Validator. 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 (*Validator) EXPECT added in v0.46.0

func (_m *Validator) EXPECT() *Validator_Expecter

func (*Validator) ValidateProposal

func (_mock *Validator) ValidateProposal(proposal *model.SignedProposal) error

ValidateProposal provides a mock function for the type Validator

func (*Validator) ValidateQC

func (_mock *Validator) ValidateQC(qc *flow.QuorumCertificate) error

ValidateQC provides a mock function for the type Validator

func (*Validator) ValidateTC added in v0.29.0

func (_mock *Validator) ValidateTC(tc *flow.TimeoutCertificate) error

ValidateTC provides a mock function for the type Validator

func (*Validator) ValidateVote

func (_mock *Validator) ValidateVote(vote *model.Vote) (*flow.IdentitySkeleton, error)

ValidateVote provides a mock function for the type Validator

type Validator_Expecter added in v0.46.0

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

func (*Validator_Expecter) ValidateProposal added in v0.46.0

func (_e *Validator_Expecter) ValidateProposal(proposal interface{}) *Validator_ValidateProposal_Call

ValidateProposal is a helper method to define mock.On call

  • proposal *model.SignedProposal

func (*Validator_Expecter) ValidateQC added in v0.46.0

func (_e *Validator_Expecter) ValidateQC(qc interface{}) *Validator_ValidateQC_Call

ValidateQC is a helper method to define mock.On call

  • qc *flow.QuorumCertificate

func (*Validator_Expecter) ValidateTC added in v0.46.0

func (_e *Validator_Expecter) ValidateTC(tc interface{}) *Validator_ValidateTC_Call

ValidateTC is a helper method to define mock.On call

  • tc *flow.TimeoutCertificate

func (*Validator_Expecter) ValidateVote added in v0.46.0

func (_e *Validator_Expecter) ValidateVote(vote interface{}) *Validator_ValidateVote_Call

ValidateVote is a helper method to define mock.On call

  • vote *model.Vote

type Validator_ValidateProposal_Call added in v0.46.0

type Validator_ValidateProposal_Call struct {
	*mock.Call
}

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

func (*Validator_ValidateProposal_Call) Return added in v0.46.0

func (*Validator_ValidateProposal_Call) Run added in v0.46.0

func (*Validator_ValidateProposal_Call) RunAndReturn added in v0.46.0

type Validator_ValidateQC_Call added in v0.46.0

type Validator_ValidateQC_Call struct {
	*mock.Call
}

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

func (*Validator_ValidateQC_Call) Return added in v0.46.0

func (*Validator_ValidateQC_Call) Run added in v0.46.0

func (*Validator_ValidateQC_Call) RunAndReturn added in v0.46.0

type Validator_ValidateTC_Call added in v0.46.0

type Validator_ValidateTC_Call struct {
	*mock.Call
}

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

func (*Validator_ValidateTC_Call) Return added in v0.46.0

func (*Validator_ValidateTC_Call) Run added in v0.46.0

func (*Validator_ValidateTC_Call) RunAndReturn added in v0.46.0

type Validator_ValidateVote_Call added in v0.46.0

type Validator_ValidateVote_Call struct {
	*mock.Call
}

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

func (*Validator_ValidateVote_Call) Return added in v0.46.0

func (*Validator_ValidateVote_Call) Run added in v0.46.0

func (*Validator_ValidateVote_Call) RunAndReturn added in v0.46.0

type Verifier

type Verifier struct {
	mock.Mock
}

Verifier is an autogenerated mock type for the Verifier type

func NewVerifier added in v0.26.1

func NewVerifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *Verifier

NewVerifier creates a new instance of Verifier. 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 (*Verifier) EXPECT added in v0.46.0

func (_m *Verifier) EXPECT() *Verifier_Expecter

func (*Verifier) VerifyQC

func (_mock *Verifier) VerifyQC(signers flow.IdentitySkeletonList, sigData []byte, view uint64, blockID flow.Identifier) error

VerifyQC provides a mock function for the type Verifier

func (*Verifier) VerifyTC added in v0.29.0

func (_mock *Verifier) VerifyTC(signers flow.IdentitySkeletonList, sigData []byte, view uint64, highQCViews []uint64) error

VerifyTC provides a mock function for the type Verifier

func (*Verifier) VerifyVote

func (_mock *Verifier) VerifyVote(voter *flow.IdentitySkeleton, sigData []byte, view uint64, blockID flow.Identifier) error

VerifyVote provides a mock function for the type Verifier

type Verifier_Expecter added in v0.46.0

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

func (*Verifier_Expecter) VerifyQC added in v0.46.0

func (_e *Verifier_Expecter) VerifyQC(signers interface{}, sigData interface{}, view interface{}, blockID interface{}) *Verifier_VerifyQC_Call

VerifyQC is a helper method to define mock.On call

  • signers flow.IdentitySkeletonList
  • sigData []byte
  • view uint64
  • blockID flow.Identifier

func (*Verifier_Expecter) VerifyTC added in v0.46.0

func (_e *Verifier_Expecter) VerifyTC(signers interface{}, sigData interface{}, view interface{}, highQCViews interface{}) *Verifier_VerifyTC_Call

VerifyTC is a helper method to define mock.On call

  • signers flow.IdentitySkeletonList
  • sigData []byte
  • view uint64
  • highQCViews []uint64

func (*Verifier_Expecter) VerifyVote added in v0.46.0

func (_e *Verifier_Expecter) VerifyVote(voter interface{}, sigData interface{}, view interface{}, blockID interface{}) *Verifier_VerifyVote_Call

VerifyVote is a helper method to define mock.On call

  • voter *flow.IdentitySkeleton
  • sigData []byte
  • view uint64
  • blockID flow.Identifier

type Verifier_VerifyQC_Call added in v0.46.0

type Verifier_VerifyQC_Call struct {
	*mock.Call
}

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

func (*Verifier_VerifyQC_Call) Return added in v0.46.0

func (*Verifier_VerifyQC_Call) Run added in v0.46.0

func (_c *Verifier_VerifyQC_Call) Run(run func(signers flow.IdentitySkeletonList, sigData []byte, view uint64, blockID flow.Identifier)) *Verifier_VerifyQC_Call

func (*Verifier_VerifyQC_Call) RunAndReturn added in v0.46.0

func (_c *Verifier_VerifyQC_Call) RunAndReturn(run func(signers flow.IdentitySkeletonList, sigData []byte, view uint64, blockID flow.Identifier) error) *Verifier_VerifyQC_Call

type Verifier_VerifyTC_Call added in v0.46.0

type Verifier_VerifyTC_Call struct {
	*mock.Call
}

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

func (*Verifier_VerifyTC_Call) Return added in v0.46.0

func (*Verifier_VerifyTC_Call) Run added in v0.46.0

func (_c *Verifier_VerifyTC_Call) Run(run func(signers flow.IdentitySkeletonList, sigData []byte, view uint64, highQCViews []uint64)) *Verifier_VerifyTC_Call

func (*Verifier_VerifyTC_Call) RunAndReturn added in v0.46.0

func (_c *Verifier_VerifyTC_Call) RunAndReturn(run func(signers flow.IdentitySkeletonList, sigData []byte, view uint64, highQCViews []uint64) error) *Verifier_VerifyTC_Call

type Verifier_VerifyVote_Call added in v0.46.0

type Verifier_VerifyVote_Call struct {
	*mock.Call
}

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

func (*Verifier_VerifyVote_Call) Return added in v0.46.0

func (*Verifier_VerifyVote_Call) Run added in v0.46.0

func (_c *Verifier_VerifyVote_Call) Run(run func(voter *flow.IdentitySkeleton, sigData []byte, view uint64, blockID flow.Identifier)) *Verifier_VerifyVote_Call

func (*Verifier_VerifyVote_Call) RunAndReturn added in v0.46.0

func (_c *Verifier_VerifyVote_Call) RunAndReturn(run func(voter *flow.IdentitySkeleton, sigData []byte, view uint64, blockID flow.Identifier) error) *Verifier_VerifyVote_Call

type VerifyingVoteProcessor added in v0.23.9

type VerifyingVoteProcessor struct {
	mock.Mock
}

VerifyingVoteProcessor is an autogenerated mock type for the VerifyingVoteProcessor type

func NewVerifyingVoteProcessor added in v0.26.1

func NewVerifyingVoteProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *VerifyingVoteProcessor

NewVerifyingVoteProcessor creates a new instance of VerifyingVoteProcessor. 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 (*VerifyingVoteProcessor) Block added in v0.23.9

func (_mock *VerifyingVoteProcessor) Block() *model.Block

Block provides a mock function for the type VerifyingVoteProcessor

func (*VerifyingVoteProcessor) EXPECT added in v0.46.0

func (*VerifyingVoteProcessor) Process added in v0.23.9

func (_mock *VerifyingVoteProcessor) Process(vote *model.Vote) error

Process provides a mock function for the type VerifyingVoteProcessor

func (*VerifyingVoteProcessor) Status added in v0.23.9

Status provides a mock function for the type VerifyingVoteProcessor

type VerifyingVoteProcessor_Block_Call added in v0.46.0

type VerifyingVoteProcessor_Block_Call struct {
	*mock.Call
}

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

func (*VerifyingVoteProcessor_Block_Call) Return added in v0.46.0

func (*VerifyingVoteProcessor_Block_Call) Run added in v0.46.0

func (*VerifyingVoteProcessor_Block_Call) RunAndReturn added in v0.46.0

type VerifyingVoteProcessor_Expecter added in v0.46.0

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

func (*VerifyingVoteProcessor_Expecter) Block added in v0.46.0

Block is a helper method to define mock.On call

func (*VerifyingVoteProcessor_Expecter) Process added in v0.46.0

Process is a helper method to define mock.On call

  • vote *model.Vote

func (*VerifyingVoteProcessor_Expecter) Status added in v0.46.0

Status is a helper method to define mock.On call

type VerifyingVoteProcessor_Process_Call added in v0.46.0

type VerifyingVoteProcessor_Process_Call struct {
	*mock.Call
}

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

func (*VerifyingVoteProcessor_Process_Call) Return added in v0.46.0

func (*VerifyingVoteProcessor_Process_Call) Run added in v0.46.0

func (*VerifyingVoteProcessor_Process_Call) RunAndReturn added in v0.46.0

type VerifyingVoteProcessor_Status_Call added in v0.46.0

type VerifyingVoteProcessor_Status_Call struct {
	*mock.Call
}

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

func (*VerifyingVoteProcessor_Status_Call) Return added in v0.46.0

func (*VerifyingVoteProcessor_Status_Call) Run added in v0.46.0

func (*VerifyingVoteProcessor_Status_Call) RunAndReturn added in v0.46.0

type VoteAggregationConsumer added in v0.31.0

type VoteAggregationConsumer struct {
	mock.Mock
}

VoteAggregationConsumer is an autogenerated mock type for the VoteAggregationConsumer type

func NewVoteAggregationConsumer added in v0.31.0

func NewVoteAggregationConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *VoteAggregationConsumer

NewVoteAggregationConsumer creates a new instance of VoteAggregationConsumer. 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 (*VoteAggregationConsumer) EXPECT added in v0.46.0

func (*VoteAggregationConsumer) OnDoubleVotingDetected added in v0.31.0

func (_mock *VoteAggregationConsumer) OnDoubleVotingDetected(vote *model.Vote, vote1 *model.Vote)

OnDoubleVotingDetected provides a mock function for the type VoteAggregationConsumer

func (*VoteAggregationConsumer) OnInvalidVoteDetected added in v0.31.0

func (_mock *VoteAggregationConsumer) OnInvalidVoteDetected(err model.InvalidVoteError)

OnInvalidVoteDetected provides a mock function for the type VoteAggregationConsumer

func (*VoteAggregationConsumer) OnQcConstructedFromVotes added in v0.31.0

func (_mock *VoteAggregationConsumer) OnQcConstructedFromVotes(quorumCertificate *flow.QuorumCertificate)

OnQcConstructedFromVotes provides a mock function for the type VoteAggregationConsumer

func (*VoteAggregationConsumer) OnVoteForInvalidBlockDetected added in v0.31.0

func (_mock *VoteAggregationConsumer) OnVoteForInvalidBlockDetected(vote *model.Vote, invalidProposal *model.SignedProposal)

OnVoteForInvalidBlockDetected provides a mock function for the type VoteAggregationConsumer

func (*VoteAggregationConsumer) OnVoteProcessed added in v0.31.0

func (_mock *VoteAggregationConsumer) OnVoteProcessed(vote *model.Vote)

OnVoteProcessed provides a mock function for the type VoteAggregationConsumer

type VoteAggregationConsumer_Expecter added in v0.46.0

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

func (*VoteAggregationConsumer_Expecter) OnDoubleVotingDetected added in v0.46.0

func (_e *VoteAggregationConsumer_Expecter) OnDoubleVotingDetected(vote interface{}, vote1 interface{}) *VoteAggregationConsumer_OnDoubleVotingDetected_Call

OnDoubleVotingDetected is a helper method to define mock.On call

  • vote *model.Vote
  • vote1 *model.Vote

func (*VoteAggregationConsumer_Expecter) OnInvalidVoteDetected added in v0.46.0

OnInvalidVoteDetected is a helper method to define mock.On call

  • err model.InvalidVoteError

func (*VoteAggregationConsumer_Expecter) OnQcConstructedFromVotes added in v0.46.0

func (_e *VoteAggregationConsumer_Expecter) OnQcConstructedFromVotes(quorumCertificate interface{}) *VoteAggregationConsumer_OnQcConstructedFromVotes_Call

OnQcConstructedFromVotes is a helper method to define mock.On call

  • quorumCertificate *flow.QuorumCertificate

func (*VoteAggregationConsumer_Expecter) OnVoteForInvalidBlockDetected added in v0.46.0

func (_e *VoteAggregationConsumer_Expecter) OnVoteForInvalidBlockDetected(vote interface{}, invalidProposal interface{}) *VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call

OnVoteForInvalidBlockDetected is a helper method to define mock.On call

  • vote *model.Vote
  • invalidProposal *model.SignedProposal

func (*VoteAggregationConsumer_Expecter) OnVoteProcessed added in v0.46.0

OnVoteProcessed is a helper method to define mock.On call

  • vote *model.Vote

type VoteAggregationConsumer_OnDoubleVotingDetected_Call added in v0.46.0

type VoteAggregationConsumer_OnDoubleVotingDetected_Call struct {
	*mock.Call
}

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

func (*VoteAggregationConsumer_OnDoubleVotingDetected_Call) Return added in v0.46.0

func (*VoteAggregationConsumer_OnDoubleVotingDetected_Call) Run added in v0.46.0

func (*VoteAggregationConsumer_OnDoubleVotingDetected_Call) RunAndReturn added in v0.46.0

type VoteAggregationConsumer_OnInvalidVoteDetected_Call added in v0.46.0

type VoteAggregationConsumer_OnInvalidVoteDetected_Call struct {
	*mock.Call
}

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

func (*VoteAggregationConsumer_OnInvalidVoteDetected_Call) Return added in v0.46.0

func (*VoteAggregationConsumer_OnInvalidVoteDetected_Call) Run added in v0.46.0

func (*VoteAggregationConsumer_OnInvalidVoteDetected_Call) RunAndReturn added in v0.46.0

type VoteAggregationConsumer_OnQcConstructedFromVotes_Call added in v0.46.0

type VoteAggregationConsumer_OnQcConstructedFromVotes_Call struct {
	*mock.Call
}

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

func (*VoteAggregationConsumer_OnQcConstructedFromVotes_Call) Return added in v0.46.0

func (*VoteAggregationConsumer_OnQcConstructedFromVotes_Call) Run added in v0.46.0

func (*VoteAggregationConsumer_OnQcConstructedFromVotes_Call) RunAndReturn added in v0.46.0

type VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call added in v0.46.0

type VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call struct {
	*mock.Call
}

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

func (*VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) Return added in v0.46.0

func (*VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) Run added in v0.46.0

func (*VoteAggregationConsumer_OnVoteForInvalidBlockDetected_Call) RunAndReturn added in v0.46.0

type VoteAggregationConsumer_OnVoteProcessed_Call added in v0.46.0

type VoteAggregationConsumer_OnVoteProcessed_Call struct {
	*mock.Call
}

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

func (*VoteAggregationConsumer_OnVoteProcessed_Call) Return added in v0.46.0

func (*VoteAggregationConsumer_OnVoteProcessed_Call) Run added in v0.46.0

func (*VoteAggregationConsumer_OnVoteProcessed_Call) RunAndReturn added in v0.46.0

type VoteAggregationViolationConsumer added in v0.31.0

type VoteAggregationViolationConsumer struct {
	mock.Mock
}

VoteAggregationViolationConsumer is an autogenerated mock type for the VoteAggregationViolationConsumer type

func NewVoteAggregationViolationConsumer added in v0.31.0

func NewVoteAggregationViolationConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *VoteAggregationViolationConsumer

NewVoteAggregationViolationConsumer creates a new instance of VoteAggregationViolationConsumer. 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 (*VoteAggregationViolationConsumer) EXPECT added in v0.46.0

func (*VoteAggregationViolationConsumer) OnDoubleVotingDetected added in v0.31.0

func (_mock *VoteAggregationViolationConsumer) OnDoubleVotingDetected(vote *model.Vote, vote1 *model.Vote)

OnDoubleVotingDetected provides a mock function for the type VoteAggregationViolationConsumer

func (*VoteAggregationViolationConsumer) OnInvalidVoteDetected added in v0.31.0

func (_mock *VoteAggregationViolationConsumer) OnInvalidVoteDetected(err model.InvalidVoteError)

OnInvalidVoteDetected provides a mock function for the type VoteAggregationViolationConsumer

func (*VoteAggregationViolationConsumer) OnVoteForInvalidBlockDetected added in v0.31.0

func (_mock *VoteAggregationViolationConsumer) OnVoteForInvalidBlockDetected(vote *model.Vote, invalidProposal *model.SignedProposal)

OnVoteForInvalidBlockDetected provides a mock function for the type VoteAggregationViolationConsumer

type VoteAggregationViolationConsumer_Expecter added in v0.46.0

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

func (*VoteAggregationViolationConsumer_Expecter) OnDoubleVotingDetected added in v0.46.0

func (_e *VoteAggregationViolationConsumer_Expecter) OnDoubleVotingDetected(vote interface{}, vote1 interface{}) *VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call

OnDoubleVotingDetected is a helper method to define mock.On call

  • vote *model.Vote
  • vote1 *model.Vote

func (*VoteAggregationViolationConsumer_Expecter) OnInvalidVoteDetected added in v0.46.0

OnInvalidVoteDetected is a helper method to define mock.On call

  • err model.InvalidVoteError

func (*VoteAggregationViolationConsumer_Expecter) OnVoteForInvalidBlockDetected added in v0.46.0

func (_e *VoteAggregationViolationConsumer_Expecter) OnVoteForInvalidBlockDetected(vote interface{}, invalidProposal interface{}) *VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call

OnVoteForInvalidBlockDetected is a helper method to define mock.On call

  • vote *model.Vote
  • invalidProposal *model.SignedProposal

type VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call added in v0.46.0

type VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call struct {
	*mock.Call
}

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

func (*VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) Return added in v0.46.0

func (*VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) Run added in v0.46.0

func (*VoteAggregationViolationConsumer_OnDoubleVotingDetected_Call) RunAndReturn added in v0.46.0

type VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call added in v0.46.0

type VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call struct {
	*mock.Call
}

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

func (*VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call) Return added in v0.46.0

func (*VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call) Run added in v0.46.0

func (*VoteAggregationViolationConsumer_OnInvalidVoteDetected_Call) RunAndReturn added in v0.46.0

type VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call added in v0.46.0

type VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call struct {
	*mock.Call
}

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

func (*VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) Return added in v0.46.0

func (*VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) Run added in v0.46.0

func (*VoteAggregationViolationConsumer_OnVoteForInvalidBlockDetected_Call) RunAndReturn added in v0.46.0

type VoteAggregator

type VoteAggregator struct {
	mock.Mock
}

VoteAggregator is an autogenerated mock type for the VoteAggregator type

func NewVoteAggregator added in v0.26.1

func NewVoteAggregator(t interface {
	mock.TestingT
	Cleanup(func())
}) *VoteAggregator

NewVoteAggregator creates a new instance of VoteAggregator. 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 (*VoteAggregator) AddBlock added in v0.23.9

func (_mock *VoteAggregator) AddBlock(block *model.SignedProposal)

AddBlock provides a mock function for the type VoteAggregator

func (*VoteAggregator) AddVote added in v0.23.9

func (_mock *VoteAggregator) AddVote(vote *model.Vote)

AddVote provides a mock function for the type VoteAggregator

func (*VoteAggregator) Done added in v0.23.9

func (_mock *VoteAggregator) Done() <-chan struct{}

Done provides a mock function for the type VoteAggregator

func (*VoteAggregator) EXPECT added in v0.46.0

func (*VoteAggregator) InvalidBlock added in v0.23.9

func (_mock *VoteAggregator) InvalidBlock(block *model.SignedProposal) error

InvalidBlock provides a mock function for the type VoteAggregator

func (*VoteAggregator) PruneUpToView added in v0.23.9

func (_mock *VoteAggregator) PruneUpToView(view uint64)

PruneUpToView provides a mock function for the type VoteAggregator

func (*VoteAggregator) Ready added in v0.23.9

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

Ready provides a mock function for the type VoteAggregator

func (*VoteAggregator) Start added in v0.23.9

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

Start provides a mock function for the type VoteAggregator

type VoteAggregator_AddBlock_Call added in v0.46.0

type VoteAggregator_AddBlock_Call struct {
	*mock.Call
}

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

func (*VoteAggregator_AddBlock_Call) Return added in v0.46.0

func (*VoteAggregator_AddBlock_Call) Run added in v0.46.0

func (*VoteAggregator_AddBlock_Call) RunAndReturn added in v0.46.0

type VoteAggregator_AddVote_Call added in v0.46.0

type VoteAggregator_AddVote_Call struct {
	*mock.Call
}

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

func (*VoteAggregator_AddVote_Call) Return added in v0.46.0

func (*VoteAggregator_AddVote_Call) Run added in v0.46.0

func (*VoteAggregator_AddVote_Call) RunAndReturn added in v0.46.0

func (_c *VoteAggregator_AddVote_Call) RunAndReturn(run func(vote *model.Vote)) *VoteAggregator_AddVote_Call

type VoteAggregator_Done_Call added in v0.46.0

type VoteAggregator_Done_Call struct {
	*mock.Call
}

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

func (*VoteAggregator_Done_Call) Return added in v0.46.0

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

func (*VoteAggregator_Done_Call) Run added in v0.46.0

func (*VoteAggregator_Done_Call) RunAndReturn added in v0.46.0

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

type VoteAggregator_Expecter added in v0.46.0

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

func (*VoteAggregator_Expecter) AddBlock added in v0.46.0

func (_e *VoteAggregator_Expecter) AddBlock(block interface{}) *VoteAggregator_AddBlock_Call

AddBlock is a helper method to define mock.On call

  • block *model.SignedProposal

func (*VoteAggregator_Expecter) AddVote added in v0.46.0

func (_e *VoteAggregator_Expecter) AddVote(vote interface{}) *VoteAggregator_AddVote_Call

AddVote is a helper method to define mock.On call

  • vote *model.Vote

func (*VoteAggregator_Expecter) Done added in v0.46.0

Done is a helper method to define mock.On call

func (*VoteAggregator_Expecter) InvalidBlock added in v0.46.0

func (_e *VoteAggregator_Expecter) InvalidBlock(block interface{}) *VoteAggregator_InvalidBlock_Call

InvalidBlock is a helper method to define mock.On call

  • block *model.SignedProposal

func (*VoteAggregator_Expecter) PruneUpToView added in v0.46.0

func (_e *VoteAggregator_Expecter) PruneUpToView(view interface{}) *VoteAggregator_PruneUpToView_Call

PruneUpToView is a helper method to define mock.On call

  • view uint64

func (*VoteAggregator_Expecter) Ready added in v0.46.0

Ready is a helper method to define mock.On call

func (*VoteAggregator_Expecter) Start added in v0.46.0

func (_e *VoteAggregator_Expecter) Start(signalerContext interface{}) *VoteAggregator_Start_Call

Start is a helper method to define mock.On call

  • signalerContext irrecoverable.SignalerContext

type VoteAggregator_InvalidBlock_Call added in v0.46.0

type VoteAggregator_InvalidBlock_Call struct {
	*mock.Call
}

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

func (*VoteAggregator_InvalidBlock_Call) Return added in v0.46.0

func (*VoteAggregator_InvalidBlock_Call) Run added in v0.46.0

func (*VoteAggregator_InvalidBlock_Call) RunAndReturn added in v0.46.0

type VoteAggregator_PruneUpToView_Call added in v0.46.0

type VoteAggregator_PruneUpToView_Call struct {
	*mock.Call
}

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

func (*VoteAggregator_PruneUpToView_Call) Return added in v0.46.0

func (*VoteAggregator_PruneUpToView_Call) Run added in v0.46.0

func (*VoteAggregator_PruneUpToView_Call) RunAndReturn added in v0.46.0

type VoteAggregator_Ready_Call added in v0.46.0

type VoteAggregator_Ready_Call struct {
	*mock.Call
}

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

func (*VoteAggregator_Ready_Call) Return added in v0.46.0

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

func (*VoteAggregator_Ready_Call) Run added in v0.46.0

func (*VoteAggregator_Ready_Call) RunAndReturn added in v0.46.0

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

type VoteAggregator_Start_Call added in v0.46.0

type VoteAggregator_Start_Call struct {
	*mock.Call
}

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

func (*VoteAggregator_Start_Call) Return added in v0.46.0

func (*VoteAggregator_Start_Call) Run added in v0.46.0

func (*VoteAggregator_Start_Call) RunAndReturn added in v0.46.0

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

type VoteCollector added in v0.23.9

type VoteCollector struct {
	mock.Mock
}

VoteCollector is an autogenerated mock type for the VoteCollector type

func NewVoteCollector added in v0.26.1

func NewVoteCollector(t interface {
	mock.TestingT
	Cleanup(func())
}) *VoteCollector

NewVoteCollector creates a new instance of VoteCollector. 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 (*VoteCollector) AddVote added in v0.23.9

func (_mock *VoteCollector) AddVote(vote *model.Vote) error

AddVote provides a mock function for the type VoteCollector

func (*VoteCollector) EXPECT added in v0.46.0

func (_m *VoteCollector) EXPECT() *VoteCollector_Expecter

func (*VoteCollector) ProcessBlock added in v0.23.9

func (_mock *VoteCollector) ProcessBlock(block *model.SignedProposal) error

ProcessBlock provides a mock function for the type VoteCollector

func (*VoteCollector) RegisterVoteConsumer added in v0.23.9

func (_mock *VoteCollector) RegisterVoteConsumer(consumer hotstuff.VoteConsumer)

RegisterVoteConsumer provides a mock function for the type VoteCollector

func (*VoteCollector) Status added in v0.23.9

func (_mock *VoteCollector) Status() hotstuff.VoteCollectorStatus

Status provides a mock function for the type VoteCollector

func (*VoteCollector) View added in v0.23.9

func (_mock *VoteCollector) View() uint64

View provides a mock function for the type VoteCollector

type VoteCollectorConsumer added in v0.31.0

type VoteCollectorConsumer struct {
	mock.Mock
}

VoteCollectorConsumer is an autogenerated mock type for the VoteCollectorConsumer type

func NewVoteCollectorConsumer added in v0.31.0

func NewVoteCollectorConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *VoteCollectorConsumer

NewVoteCollectorConsumer creates a new instance of VoteCollectorConsumer. 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 (*VoteCollectorConsumer) EXPECT added in v0.46.0

func (*VoteCollectorConsumer) OnQcConstructedFromVotes added in v0.31.0

func (_mock *VoteCollectorConsumer) OnQcConstructedFromVotes(quorumCertificate *flow.QuorumCertificate)

OnQcConstructedFromVotes provides a mock function for the type VoteCollectorConsumer

func (*VoteCollectorConsumer) OnVoteProcessed added in v0.31.0

func (_mock *VoteCollectorConsumer) OnVoteProcessed(vote *model.Vote)

OnVoteProcessed provides a mock function for the type VoteCollectorConsumer

type VoteCollectorConsumer_Expecter added in v0.46.0

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

func (*VoteCollectorConsumer_Expecter) OnQcConstructedFromVotes added in v0.46.0

func (_e *VoteCollectorConsumer_Expecter) OnQcConstructedFromVotes(quorumCertificate interface{}) *VoteCollectorConsumer_OnQcConstructedFromVotes_Call

OnQcConstructedFromVotes is a helper method to define mock.On call

  • quorumCertificate *flow.QuorumCertificate

func (*VoteCollectorConsumer_Expecter) OnVoteProcessed added in v0.46.0

func (_e *VoteCollectorConsumer_Expecter) OnVoteProcessed(vote interface{}) *VoteCollectorConsumer_OnVoteProcessed_Call

OnVoteProcessed is a helper method to define mock.On call

  • vote *model.Vote

type VoteCollectorConsumer_OnQcConstructedFromVotes_Call added in v0.46.0

type VoteCollectorConsumer_OnQcConstructedFromVotes_Call struct {
	*mock.Call
}

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

func (*VoteCollectorConsumer_OnQcConstructedFromVotes_Call) Return added in v0.46.0

func (*VoteCollectorConsumer_OnQcConstructedFromVotes_Call) Run added in v0.46.0

func (*VoteCollectorConsumer_OnQcConstructedFromVotes_Call) RunAndReturn added in v0.46.0

type VoteCollectorConsumer_OnVoteProcessed_Call added in v0.46.0

type VoteCollectorConsumer_OnVoteProcessed_Call struct {
	*mock.Call
}

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

func (*VoteCollectorConsumer_OnVoteProcessed_Call) Return added in v0.46.0

func (*VoteCollectorConsumer_OnVoteProcessed_Call) Run added in v0.46.0

func (*VoteCollectorConsumer_OnVoteProcessed_Call) RunAndReturn added in v0.46.0

type VoteCollector_AddVote_Call added in v0.46.0

type VoteCollector_AddVote_Call struct {
	*mock.Call
}

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

func (*VoteCollector_AddVote_Call) Return added in v0.46.0

func (*VoteCollector_AddVote_Call) Run added in v0.46.0

func (*VoteCollector_AddVote_Call) RunAndReturn added in v0.46.0

func (_c *VoteCollector_AddVote_Call) RunAndReturn(run func(vote *model.Vote) error) *VoteCollector_AddVote_Call

type VoteCollector_Expecter added in v0.46.0

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

func (*VoteCollector_Expecter) AddVote added in v0.46.0

func (_e *VoteCollector_Expecter) AddVote(vote interface{}) *VoteCollector_AddVote_Call

AddVote is a helper method to define mock.On call

  • vote *model.Vote

func (*VoteCollector_Expecter) ProcessBlock added in v0.46.0

func (_e *VoteCollector_Expecter) ProcessBlock(block interface{}) *VoteCollector_ProcessBlock_Call

ProcessBlock is a helper method to define mock.On call

  • block *model.SignedProposal

func (*VoteCollector_Expecter) RegisterVoteConsumer added in v0.46.0

func (_e *VoteCollector_Expecter) RegisterVoteConsumer(consumer interface{}) *VoteCollector_RegisterVoteConsumer_Call

RegisterVoteConsumer is a helper method to define mock.On call

  • consumer hotstuff.VoteConsumer

func (*VoteCollector_Expecter) Status added in v0.46.0

Status is a helper method to define mock.On call

func (*VoteCollector_Expecter) View added in v0.46.0

View is a helper method to define mock.On call

type VoteCollector_ProcessBlock_Call added in v0.46.0

type VoteCollector_ProcessBlock_Call struct {
	*mock.Call
}

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

func (*VoteCollector_ProcessBlock_Call) Return added in v0.46.0

func (*VoteCollector_ProcessBlock_Call) Run added in v0.46.0

func (*VoteCollector_ProcessBlock_Call) RunAndReturn added in v0.46.0

type VoteCollector_RegisterVoteConsumer_Call added in v0.46.0

type VoteCollector_RegisterVoteConsumer_Call struct {
	*mock.Call
}

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

func (*VoteCollector_RegisterVoteConsumer_Call) Return added in v0.46.0

func (*VoteCollector_RegisterVoteConsumer_Call) Run added in v0.46.0

func (*VoteCollector_RegisterVoteConsumer_Call) RunAndReturn added in v0.46.0

type VoteCollector_Status_Call added in v0.46.0

type VoteCollector_Status_Call struct {
	*mock.Call
}

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

func (*VoteCollector_Status_Call) Return added in v0.46.0

func (*VoteCollector_Status_Call) Run added in v0.46.0

func (*VoteCollector_Status_Call) RunAndReturn added in v0.46.0

type VoteCollector_View_Call added in v0.46.0

type VoteCollector_View_Call struct {
	*mock.Call
}

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

func (*VoteCollector_View_Call) Return added in v0.46.0

func (*VoteCollector_View_Call) Run added in v0.46.0

func (_c *VoteCollector_View_Call) Run(run func()) *VoteCollector_View_Call

func (*VoteCollector_View_Call) RunAndReturn added in v0.46.0

func (_c *VoteCollector_View_Call) RunAndReturn(run func() uint64) *VoteCollector_View_Call

type VoteCollectors added in v0.23.9

type VoteCollectors struct {
	mock.Mock
}

VoteCollectors is an autogenerated mock type for the VoteCollectors type

func NewVoteCollectors added in v0.26.1

func NewVoteCollectors(t interface {
	mock.TestingT
	Cleanup(func())
}) *VoteCollectors

NewVoteCollectors creates a new instance of VoteCollectors. 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 (*VoteCollectors) Done added in v0.23.9

func (_mock *VoteCollectors) Done() <-chan struct{}

Done provides a mock function for the type VoteCollectors

func (*VoteCollectors) EXPECT added in v0.46.0

func (*VoteCollectors) GetOrCreateCollector added in v0.23.9

func (_mock *VoteCollectors) GetOrCreateCollector(view uint64) (hotstuff.VoteCollector, bool, error)

GetOrCreateCollector provides a mock function for the type VoteCollectors

func (*VoteCollectors) PruneUpToView added in v0.23.9

func (_mock *VoteCollectors) PruneUpToView(lowestRetainedView uint64)

PruneUpToView provides a mock function for the type VoteCollectors

func (*VoteCollectors) Ready added in v0.23.9

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

Ready provides a mock function for the type VoteCollectors

func (*VoteCollectors) Start added in v0.23.9

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

Start provides a mock function for the type VoteCollectors

type VoteCollectors_Done_Call added in v0.46.0

type VoteCollectors_Done_Call struct {
	*mock.Call
}

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

func (*VoteCollectors_Done_Call) Return added in v0.46.0

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

func (*VoteCollectors_Done_Call) Run added in v0.46.0

func (*VoteCollectors_Done_Call) RunAndReturn added in v0.46.0

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

type VoteCollectors_Expecter added in v0.46.0

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

func (*VoteCollectors_Expecter) Done added in v0.46.0

Done is a helper method to define mock.On call

func (*VoteCollectors_Expecter) GetOrCreateCollector added in v0.46.0

func (_e *VoteCollectors_Expecter) GetOrCreateCollector(view interface{}) *VoteCollectors_GetOrCreateCollector_Call

GetOrCreateCollector is a helper method to define mock.On call

  • view uint64

func (*VoteCollectors_Expecter) PruneUpToView added in v0.46.0

func (_e *VoteCollectors_Expecter) PruneUpToView(lowestRetainedView interface{}) *VoteCollectors_PruneUpToView_Call

PruneUpToView is a helper method to define mock.On call

  • lowestRetainedView uint64

func (*VoteCollectors_Expecter) Ready added in v0.46.0

Ready is a helper method to define mock.On call

func (*VoteCollectors_Expecter) Start added in v0.46.0

func (_e *VoteCollectors_Expecter) Start(signalerContext interface{}) *VoteCollectors_Start_Call

Start is a helper method to define mock.On call

  • signalerContext irrecoverable.SignalerContext

type VoteCollectors_GetOrCreateCollector_Call added in v0.46.0

type VoteCollectors_GetOrCreateCollector_Call struct {
	*mock.Call
}

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

func (*VoteCollectors_GetOrCreateCollector_Call) Return added in v0.46.0

func (*VoteCollectors_GetOrCreateCollector_Call) Run added in v0.46.0

func (*VoteCollectors_GetOrCreateCollector_Call) RunAndReturn added in v0.46.0

type VoteCollectors_PruneUpToView_Call added in v0.46.0

type VoteCollectors_PruneUpToView_Call struct {
	*mock.Call
}

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

func (*VoteCollectors_PruneUpToView_Call) Return added in v0.46.0

func (*VoteCollectors_PruneUpToView_Call) Run added in v0.46.0

func (_c *VoteCollectors_PruneUpToView_Call) Run(run func(lowestRetainedView uint64)) *VoteCollectors_PruneUpToView_Call

func (*VoteCollectors_PruneUpToView_Call) RunAndReturn added in v0.46.0

func (_c *VoteCollectors_PruneUpToView_Call) RunAndReturn(run func(lowestRetainedView uint64)) *VoteCollectors_PruneUpToView_Call

type VoteCollectors_Ready_Call added in v0.46.0

type VoteCollectors_Ready_Call struct {
	*mock.Call
}

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

func (*VoteCollectors_Ready_Call) Return added in v0.46.0

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

func (*VoteCollectors_Ready_Call) Run added in v0.46.0

func (*VoteCollectors_Ready_Call) RunAndReturn added in v0.46.0

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

type VoteCollectors_Start_Call added in v0.46.0

type VoteCollectors_Start_Call struct {
	*mock.Call
}

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

func (*VoteCollectors_Start_Call) Return added in v0.46.0

func (*VoteCollectors_Start_Call) Run added in v0.46.0

func (*VoteCollectors_Start_Call) RunAndReturn added in v0.46.0

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

type VoteProcessor added in v0.23.9

type VoteProcessor struct {
	mock.Mock
}

VoteProcessor is an autogenerated mock type for the VoteProcessor type

func NewVoteProcessor added in v0.26.1

func NewVoteProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *VoteProcessor

NewVoteProcessor creates a new instance of VoteProcessor. 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 (*VoteProcessor) EXPECT added in v0.46.0

func (_m *VoteProcessor) EXPECT() *VoteProcessor_Expecter

func (*VoteProcessor) Process added in v0.23.9

func (_mock *VoteProcessor) Process(vote *model.Vote) error

Process provides a mock function for the type VoteProcessor

func (*VoteProcessor) Status added in v0.23.9

func (_mock *VoteProcessor) Status() hotstuff.VoteCollectorStatus

Status provides a mock function for the type VoteProcessor

type VoteProcessorFactory added in v0.23.9

type VoteProcessorFactory struct {
	mock.Mock
}

VoteProcessorFactory is an autogenerated mock type for the VoteProcessorFactory type

func NewVoteProcessorFactory added in v0.26.1

func NewVoteProcessorFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *VoteProcessorFactory

NewVoteProcessorFactory creates a new instance of VoteProcessorFactory. 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 (*VoteProcessorFactory) Create added in v0.23.9

Create provides a mock function for the type VoteProcessorFactory

func (*VoteProcessorFactory) EXPECT added in v0.46.0

type VoteProcessorFactory_Create_Call added in v0.46.0

type VoteProcessorFactory_Create_Call struct {
	*mock.Call
}

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

func (*VoteProcessorFactory_Create_Call) Return added in v0.46.0

func (*VoteProcessorFactory_Create_Call) Run added in v0.46.0

func (*VoteProcessorFactory_Create_Call) RunAndReturn added in v0.46.0

type VoteProcessorFactory_Expecter added in v0.46.0

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

func (*VoteProcessorFactory_Expecter) Create added in v0.46.0

func (_e *VoteProcessorFactory_Expecter) Create(log interface{}, proposal interface{}) *VoteProcessorFactory_Create_Call

Create is a helper method to define mock.On call

  • log zerolog.Logger
  • proposal *model.SignedProposal

type VoteProcessor_Expecter added in v0.46.0

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

func (*VoteProcessor_Expecter) Process added in v0.46.0

func (_e *VoteProcessor_Expecter) Process(vote interface{}) *VoteProcessor_Process_Call

Process is a helper method to define mock.On call

  • vote *model.Vote

func (*VoteProcessor_Expecter) Status added in v0.46.0

Status is a helper method to define mock.On call

type VoteProcessor_Process_Call added in v0.46.0

type VoteProcessor_Process_Call struct {
	*mock.Call
}

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

func (*VoteProcessor_Process_Call) Return added in v0.46.0

func (*VoteProcessor_Process_Call) Run added in v0.46.0

func (*VoteProcessor_Process_Call) RunAndReturn added in v0.46.0

func (_c *VoteProcessor_Process_Call) RunAndReturn(run func(vote *model.Vote) error) *VoteProcessor_Process_Call

type VoteProcessor_Status_Call added in v0.46.0

type VoteProcessor_Status_Call struct {
	*mock.Call
}

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

func (*VoteProcessor_Status_Call) Return added in v0.46.0

func (*VoteProcessor_Status_Call) Run added in v0.46.0

func (*VoteProcessor_Status_Call) RunAndReturn added in v0.46.0

type WeightedSignatureAggregator added in v0.23.9

type WeightedSignatureAggregator struct {
	mock.Mock
}

WeightedSignatureAggregator is an autogenerated mock type for the WeightedSignatureAggregator type

func NewWeightedSignatureAggregator added in v0.26.1

func NewWeightedSignatureAggregator(t interface {
	mock.TestingT
	Cleanup(func())
}) *WeightedSignatureAggregator

NewWeightedSignatureAggregator creates a new instance of WeightedSignatureAggregator. 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 (*WeightedSignatureAggregator) Aggregate added in v0.23.9

func (_mock *WeightedSignatureAggregator) Aggregate() (flow.IdentifierList, []byte, error)

Aggregate provides a mock function for the type WeightedSignatureAggregator

func (*WeightedSignatureAggregator) EXPECT added in v0.46.0

func (*WeightedSignatureAggregator) TotalWeight added in v0.23.9

func (_mock *WeightedSignatureAggregator) TotalWeight() uint64

TotalWeight provides a mock function for the type WeightedSignatureAggregator

func (*WeightedSignatureAggregator) TrustedAdd added in v0.23.9

func (_mock *WeightedSignatureAggregator) TrustedAdd(signerID flow.Identifier, sig crypto.Signature) (uint64, error)

TrustedAdd provides a mock function for the type WeightedSignatureAggregator

func (*WeightedSignatureAggregator) Verify added in v0.23.9

func (_mock *WeightedSignatureAggregator) Verify(signerID flow.Identifier, sig crypto.Signature) error

Verify provides a mock function for the type WeightedSignatureAggregator

type WeightedSignatureAggregator_Aggregate_Call added in v0.46.0

type WeightedSignatureAggregator_Aggregate_Call struct {
	*mock.Call
}

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

func (*WeightedSignatureAggregator_Aggregate_Call) Return added in v0.46.0

func (*WeightedSignatureAggregator_Aggregate_Call) Run added in v0.46.0

func (*WeightedSignatureAggregator_Aggregate_Call) RunAndReturn added in v0.46.0

type WeightedSignatureAggregator_Expecter added in v0.46.0

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

func (*WeightedSignatureAggregator_Expecter) Aggregate added in v0.46.0

Aggregate is a helper method to define mock.On call

func (*WeightedSignatureAggregator_Expecter) TotalWeight added in v0.46.0

TotalWeight is a helper method to define mock.On call

func (*WeightedSignatureAggregator_Expecter) TrustedAdd added in v0.46.0

func (_e *WeightedSignatureAggregator_Expecter) TrustedAdd(signerID interface{}, sig interface{}) *WeightedSignatureAggregator_TrustedAdd_Call

TrustedAdd is a helper method to define mock.On call

  • signerID flow.Identifier
  • sig crypto.Signature

func (*WeightedSignatureAggregator_Expecter) Verify added in v0.46.0

func (_e *WeightedSignatureAggregator_Expecter) Verify(signerID interface{}, sig interface{}) *WeightedSignatureAggregator_Verify_Call

Verify is a helper method to define mock.On call

  • signerID flow.Identifier
  • sig crypto.Signature

type WeightedSignatureAggregator_TotalWeight_Call added in v0.46.0

type WeightedSignatureAggregator_TotalWeight_Call struct {
	*mock.Call
}

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

func (*WeightedSignatureAggregator_TotalWeight_Call) Return added in v0.46.0

func (*WeightedSignatureAggregator_TotalWeight_Call) Run added in v0.46.0

func (*WeightedSignatureAggregator_TotalWeight_Call) RunAndReturn added in v0.46.0

type WeightedSignatureAggregator_TrustedAdd_Call added in v0.46.0

type WeightedSignatureAggregator_TrustedAdd_Call struct {
	*mock.Call
}

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

func (*WeightedSignatureAggregator_TrustedAdd_Call) Return added in v0.46.0

func (*WeightedSignatureAggregator_TrustedAdd_Call) Run added in v0.46.0

func (*WeightedSignatureAggregator_TrustedAdd_Call) RunAndReturn added in v0.46.0

type WeightedSignatureAggregator_Verify_Call added in v0.46.0

type WeightedSignatureAggregator_Verify_Call struct {
	*mock.Call
}

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

func (*WeightedSignatureAggregator_Verify_Call) Return added in v0.46.0

func (*WeightedSignatureAggregator_Verify_Call) Run added in v0.46.0

func (*WeightedSignatureAggregator_Verify_Call) RunAndReturn added in v0.46.0

type Workerpool added in v0.23.9

type Workerpool struct {
	mock.Mock
}

Workerpool is an autogenerated mock type for the Workerpool type

func NewWorkerpool added in v0.26.1

func NewWorkerpool(t interface {
	mock.TestingT
	Cleanup(func())
}) *Workerpool

NewWorkerpool creates a new instance of Workerpool. 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 (*Workerpool) EXPECT added in v0.46.0

func (_m *Workerpool) EXPECT() *Workerpool_Expecter

func (*Workerpool) StopWait added in v0.23.9

func (_mock *Workerpool) StopWait()

StopWait provides a mock function for the type Workerpool

func (*Workerpool) Submit added in v0.23.9

func (_mock *Workerpool) Submit(task func())

Submit provides a mock function for the type Workerpool

type Workerpool_Expecter added in v0.46.0

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

func (*Workerpool_Expecter) StopWait added in v0.46.0

StopWait is a helper method to define mock.On call

func (*Workerpool_Expecter) Submit added in v0.46.0

func (_e *Workerpool_Expecter) Submit(task interface{}) *Workerpool_Submit_Call

Submit is a helper method to define mock.On call

  • task func()

type Workerpool_StopWait_Call added in v0.46.0

type Workerpool_StopWait_Call struct {
	*mock.Call
}

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

func (*Workerpool_StopWait_Call) Return added in v0.46.0

func (*Workerpool_StopWait_Call) Run added in v0.46.0

func (*Workerpool_StopWait_Call) RunAndReturn added in v0.46.0

func (_c *Workerpool_StopWait_Call) RunAndReturn(run func()) *Workerpool_StopWait_Call

type Workerpool_Submit_Call added in v0.46.0

type Workerpool_Submit_Call struct {
	*mock.Call
}

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

func (*Workerpool_Submit_Call) Return added in v0.46.0

func (*Workerpool_Submit_Call) Run added in v0.46.0

func (_c *Workerpool_Submit_Call) Run(run func(task func())) *Workerpool_Submit_Call

func (*Workerpool_Submit_Call) RunAndReturn added in v0.46.0

func (_c *Workerpool_Submit_Call) RunAndReturn(run func(task func())) *Workerpool_Submit_Call

type Workers added in v0.23.9

type Workers struct {
	mock.Mock
}

Workers is an autogenerated mock type for the Workers type

func NewWorkers added in v0.26.1

func NewWorkers(t interface {
	mock.TestingT
	Cleanup(func())
}) *Workers

NewWorkers creates a new instance of Workers. 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 (*Workers) EXPECT added in v0.46.0

func (_m *Workers) EXPECT() *Workers_Expecter

func (*Workers) Submit added in v0.23.9

func (_mock *Workers) Submit(task func())

Submit provides a mock function for the type Workers

type Workers_Expecter added in v0.46.0

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

func (*Workers_Expecter) Submit added in v0.46.0

func (_e *Workers_Expecter) Submit(task interface{}) *Workers_Submit_Call

Submit is a helper method to define mock.On call

  • task func()

type Workers_Submit_Call added in v0.46.0

type Workers_Submit_Call struct {
	*mock.Call
}

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

func (*Workers_Submit_Call) Return added in v0.46.0

func (*Workers_Submit_Call) Run added in v0.46.0

func (_c *Workers_Submit_Call) Run(run func(task func())) *Workers_Submit_Call

func (*Workers_Submit_Call) RunAndReturn added in v0.46.0

func (_c *Workers_Submit_Call) RunAndReturn(run func(task func())) *Workers_Submit_Call

Jump to

Keyboard shortcuts

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