mock

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: AGPL-3.0 Imports: 3 Imported by: ? modules, 0 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 ComplianceCore

type ComplianceCore struct {
	mock.Mock
}

ComplianceCore is an autogenerated mock type for the complianceCore type

func NewComplianceCore

func NewComplianceCore(t interface {
	mock.TestingT
	Cleanup(func())
}) *ComplianceCore

NewComplianceCore creates a new instance of ComplianceCore. 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 (*ComplianceCore) Done

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

Done provides a mock function for the type ComplianceCore

func (*ComplianceCore) EXPECT added in v0.46.0

func (*ComplianceCore) OnBlockRange

func (_mock *ComplianceCore) OnBlockRange(originID flow.Identifier, connectedRange []*flow.Proposal) error

OnBlockRange provides a mock function for the type ComplianceCore

func (*ComplianceCore) OnFinalizedBlock

func (_mock *ComplianceCore) OnFinalizedBlock(finalized *flow.Header)

OnFinalizedBlock provides a mock function for the type ComplianceCore

func (*ComplianceCore) Ready

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

Ready provides a mock function for the type ComplianceCore

func (*ComplianceCore) Start

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

Start provides a mock function for the type ComplianceCore

type ComplianceCore_Done_Call added in v0.46.0

type ComplianceCore_Done_Call struct {
	*mock.Call
}

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

func (*ComplianceCore_Done_Call) Return added in v0.46.0

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

func (*ComplianceCore_Done_Call) Run added in v0.46.0

func (*ComplianceCore_Done_Call) RunAndReturn added in v0.46.0

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

type ComplianceCore_Expecter added in v0.46.0

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

func (*ComplianceCore_Expecter) Done added in v0.46.0

Done is a helper method to define mock.On call

func (*ComplianceCore_Expecter) OnBlockRange added in v0.46.0

func (_e *ComplianceCore_Expecter) OnBlockRange(originID interface{}, connectedRange interface{}) *ComplianceCore_OnBlockRange_Call

OnBlockRange is a helper method to define mock.On call

  • originID flow.Identifier
  • connectedRange []*flow.Proposal

func (*ComplianceCore_Expecter) OnFinalizedBlock added in v0.46.0

func (_e *ComplianceCore_Expecter) OnFinalizedBlock(finalized interface{}) *ComplianceCore_OnFinalizedBlock_Call

OnFinalizedBlock is a helper method to define mock.On call

  • finalized *flow.Header

func (*ComplianceCore_Expecter) Ready added in v0.46.0

Ready is a helper method to define mock.On call

func (*ComplianceCore_Expecter) Start added in v0.46.0

func (_e *ComplianceCore_Expecter) Start(signalerContext interface{}) *ComplianceCore_Start_Call

Start is a helper method to define mock.On call

  • signalerContext irrecoverable.SignalerContext

type ComplianceCore_OnBlockRange_Call added in v0.46.0

type ComplianceCore_OnBlockRange_Call struct {
	*mock.Call
}

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

func (*ComplianceCore_OnBlockRange_Call) Return added in v0.46.0

func (*ComplianceCore_OnBlockRange_Call) Run added in v0.46.0

func (_c *ComplianceCore_OnBlockRange_Call) Run(run func(originID flow.Identifier, connectedRange []*flow.Proposal)) *ComplianceCore_OnBlockRange_Call

func (*ComplianceCore_OnBlockRange_Call) RunAndReturn added in v0.46.0

func (_c *ComplianceCore_OnBlockRange_Call) RunAndReturn(run func(originID flow.Identifier, connectedRange []*flow.Proposal) error) *ComplianceCore_OnBlockRange_Call

type ComplianceCore_OnFinalizedBlock_Call added in v0.46.0

type ComplianceCore_OnFinalizedBlock_Call struct {
	*mock.Call
}

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

func (*ComplianceCore_OnFinalizedBlock_Call) Return added in v0.46.0

func (*ComplianceCore_OnFinalizedBlock_Call) Run added in v0.46.0

func (*ComplianceCore_OnFinalizedBlock_Call) RunAndReturn added in v0.46.0

type ComplianceCore_Ready_Call added in v0.46.0

type ComplianceCore_Ready_Call struct {
	*mock.Call
}

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

func (*ComplianceCore_Ready_Call) Return added in v0.46.0

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

func (*ComplianceCore_Ready_Call) Run added in v0.46.0

func (*ComplianceCore_Ready_Call) RunAndReturn added in v0.46.0

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

type ComplianceCore_Start_Call added in v0.46.0

type ComplianceCore_Start_Call struct {
	*mock.Call
}

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

func (*ComplianceCore_Start_Call) Return added in v0.46.0

func (*ComplianceCore_Start_Call) Run added in v0.46.0

func (*ComplianceCore_Start_Call) RunAndReturn added in v0.46.0

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

Jump to

Keyboard shortcuts

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