mock

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterEvents added in v0.31.0

type ClusterEvents struct {
	mock.Mock
}

ClusterEvents is an autogenerated mock type for the ClusterEvents type

func NewClusterEvents added in v0.31.0

func NewClusterEvents(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterEvents

NewClusterEvents creates a new instance of ClusterEvents. 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 (*ClusterEvents) ActiveClustersChanged added in v0.31.0

func (_mock *ClusterEvents) ActiveClustersChanged(chainIDList flow.ChainIDList)

ActiveClustersChanged provides a mock function for the type ClusterEvents

func (*ClusterEvents) EXPECT added in v0.46.0

func (_m *ClusterEvents) EXPECT() *ClusterEvents_Expecter

type ClusterEvents_ActiveClustersChanged_Call added in v0.46.0

type ClusterEvents_ActiveClustersChanged_Call struct {
	*mock.Call
}

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

func (*ClusterEvents_ActiveClustersChanged_Call) Return added in v0.46.0

func (*ClusterEvents_ActiveClustersChanged_Call) Run added in v0.46.0

func (*ClusterEvents_ActiveClustersChanged_Call) RunAndReturn added in v0.46.0

type ClusterEvents_Expecter added in v0.46.0

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

func (*ClusterEvents_Expecter) ActiveClustersChanged added in v0.46.0

func (_e *ClusterEvents_Expecter) ActiveClustersChanged(chainIDList interface{}) *ClusterEvents_ActiveClustersChanged_Call

ActiveClustersChanged is a helper method to define mock.On call

  • chainIDList flow.ChainIDList

type Compliance

type Compliance struct {
	mock.Mock
}

Compliance is an autogenerated mock type for the Compliance type

func NewCompliance

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

NewCompliance creates a new instance of Compliance. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Compliance) Done

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

Done provides a mock function for the type Compliance

func (*Compliance) EXPECT added in v0.46.0

func (_m *Compliance) EXPECT() *Compliance_Expecter

func (*Compliance) OnClusterBlockProposal

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

OnClusterBlockProposal provides a mock function for the type Compliance

func (*Compliance) OnSyncedClusterBlock

func (_mock *Compliance) OnSyncedClusterBlock(block flow.Slashable[*cluster.Proposal])

OnSyncedClusterBlock provides a mock function for the type Compliance

func (*Compliance) Ready

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

Ready provides a mock function for the type Compliance

func (*Compliance) Start

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

Start provides a mock function for the type Compliance

type Compliance_Done_Call added in v0.46.0

type Compliance_Done_Call struct {
	*mock.Call
}

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

func (*Compliance_Done_Call) Return added in v0.46.0

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

func (*Compliance_Done_Call) Run added in v0.46.0

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

func (*Compliance_Done_Call) RunAndReturn added in v0.46.0

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

type Compliance_Expecter added in v0.46.0

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

func (*Compliance_Expecter) Done added in v0.46.0

Done is a helper method to define mock.On call

func (*Compliance_Expecter) OnClusterBlockProposal added in v0.46.0

func (_e *Compliance_Expecter) OnClusterBlockProposal(proposal interface{}) *Compliance_OnClusterBlockProposal_Call

OnClusterBlockProposal is a helper method to define mock.On call

  • proposal flow.Slashable[*cluster.Proposal]

func (*Compliance_Expecter) OnSyncedClusterBlock added in v0.46.0

func (_e *Compliance_Expecter) OnSyncedClusterBlock(block interface{}) *Compliance_OnSyncedClusterBlock_Call

OnSyncedClusterBlock is a helper method to define mock.On call

  • block flow.Slashable[*cluster.Proposal]

func (*Compliance_Expecter) Ready added in v0.46.0

Ready is a helper method to define mock.On call

func (*Compliance_Expecter) Start added in v0.46.0

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

Start is a helper method to define mock.On call

  • signalerContext irrecoverable.SignalerContext

type Compliance_OnClusterBlockProposal_Call added in v0.46.0

type Compliance_OnClusterBlockProposal_Call struct {
	*mock.Call
}

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

func (*Compliance_OnClusterBlockProposal_Call) Return added in v0.46.0

func (*Compliance_OnClusterBlockProposal_Call) Run added in v0.46.0

func (*Compliance_OnClusterBlockProposal_Call) RunAndReturn added in v0.46.0

type Compliance_OnSyncedClusterBlock_Call added in v0.46.0

type Compliance_OnSyncedClusterBlock_Call struct {
	*mock.Call
}

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

func (*Compliance_OnSyncedClusterBlock_Call) Return added in v0.46.0

func (*Compliance_OnSyncedClusterBlock_Call) Run added in v0.46.0

func (*Compliance_OnSyncedClusterBlock_Call) RunAndReturn added in v0.46.0

type Compliance_Ready_Call added in v0.46.0

type Compliance_Ready_Call struct {
	*mock.Call
}

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

func (*Compliance_Ready_Call) Return added in v0.46.0

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

func (*Compliance_Ready_Call) Run added in v0.46.0

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

func (*Compliance_Ready_Call) RunAndReturn added in v0.46.0

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

type Compliance_Start_Call added in v0.46.0

type Compliance_Start_Call struct {
	*mock.Call
}

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

func (*Compliance_Start_Call) Return added in v0.46.0

func (*Compliance_Start_Call) Run added in v0.46.0

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

func (*Compliance_Start_Call) RunAndReturn added in v0.46.0

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

type EngineEvents added in v0.31.0

type EngineEvents struct {
	mock.Mock
}

EngineEvents is an autogenerated mock type for the EngineEvents type

func NewEngineEvents added in v0.31.0

func NewEngineEvents(t interface {
	mock.TestingT
	Cleanup(func())
}) *EngineEvents

NewEngineEvents creates a new instance of EngineEvents. 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 (*EngineEvents) ActiveClustersChanged added in v0.31.0

func (_mock *EngineEvents) ActiveClustersChanged(chainIDList flow.ChainIDList)

ActiveClustersChanged provides a mock function for the type EngineEvents

func (*EngineEvents) EXPECT added in v0.46.0

func (_m *EngineEvents) EXPECT() *EngineEvents_Expecter

type EngineEvents_ActiveClustersChanged_Call added in v0.46.0

type EngineEvents_ActiveClustersChanged_Call struct {
	*mock.Call
}

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

func (*EngineEvents_ActiveClustersChanged_Call) Return added in v0.46.0

func (*EngineEvents_ActiveClustersChanged_Call) Run added in v0.46.0

func (*EngineEvents_ActiveClustersChanged_Call) RunAndReturn added in v0.46.0

type EngineEvents_Expecter added in v0.46.0

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

func (*EngineEvents_Expecter) ActiveClustersChanged added in v0.46.0

func (_e *EngineEvents_Expecter) ActiveClustersChanged(chainIDList interface{}) *EngineEvents_ActiveClustersChanged_Call

ActiveClustersChanged is a helper method to define mock.On call

  • chainIDList flow.ChainIDList

type GuaranteedCollectionPublisher added in v0.38.0

type GuaranteedCollectionPublisher struct {
	mock.Mock
}

GuaranteedCollectionPublisher is an autogenerated mock type for the GuaranteedCollectionPublisher type

func NewGuaranteedCollectionPublisher added in v0.38.0

func NewGuaranteedCollectionPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *GuaranteedCollectionPublisher

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

func (*GuaranteedCollectionPublisher) SubmitCollectionGuarantee added in v0.38.0

func (_mock *GuaranteedCollectionPublisher) SubmitCollectionGuarantee(guarantee *messages.CollectionGuarantee)

SubmitCollectionGuarantee provides a mock function for the type GuaranteedCollectionPublisher

type GuaranteedCollectionPublisher_Expecter added in v0.46.0

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

func (*GuaranteedCollectionPublisher_Expecter) SubmitCollectionGuarantee added in v0.46.0

SubmitCollectionGuarantee is a helper method to define mock.On call

  • guarantee *messages.CollectionGuarantee

type GuaranteedCollectionPublisher_SubmitCollectionGuarantee_Call added in v0.46.0

type GuaranteedCollectionPublisher_SubmitCollectionGuarantee_Call struct {
	*mock.Call
}

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

func (*GuaranteedCollectionPublisher_SubmitCollectionGuarantee_Call) Return added in v0.46.0

func (*GuaranteedCollectionPublisher_SubmitCollectionGuarantee_Call) Run added in v0.46.0

func (*GuaranteedCollectionPublisher_SubmitCollectionGuarantee_Call) RunAndReturn added in v0.46.0

Jump to

Keyboard shortcuts

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