mocks

package
v1.5.0-dev.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

NewProvider creates a new instance of Provider. 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 (*Provider) EXPECT added in v1.4.0

func (_m *Provider) EXPECT() *Provider_Expecter

func (*Provider) ID

func (_mock *Provider) ID() string

ID provides a mock function for the type Provider

func (*Provider) LightBlock

func (_mock *Provider) LightBlock(ctx context.Context, height int64) (*types.LightBlock, error)

LightBlock provides a mock function for the type Provider

func (*Provider) ReportEvidence

func (_mock *Provider) ReportEvidence(context1 context.Context, evidence types.Evidence) error

ReportEvidence provides a mock function for the type Provider

type Provider_Expecter added in v1.4.0

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

func (*Provider_Expecter) ID added in v1.4.0

ID is a helper method to define mock.On call

func (*Provider_Expecter) LightBlock added in v1.4.0

func (_e *Provider_Expecter) LightBlock(ctx interface{}, height interface{}) *Provider_LightBlock_Call

LightBlock is a helper method to define mock.On call

  • ctx
  • height

func (*Provider_Expecter) ReportEvidence added in v1.4.0

func (_e *Provider_Expecter) ReportEvidence(context1 interface{}, evidence interface{}) *Provider_ReportEvidence_Call

ReportEvidence is a helper method to define mock.On call

  • context1
  • evidence

type Provider_ID_Call added in v1.4.0

type Provider_ID_Call struct {
	*mock.Call
}

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

func (*Provider_ID_Call) Return added in v1.4.0

func (_c *Provider_ID_Call) Return(s string) *Provider_ID_Call

func (*Provider_ID_Call) Run added in v1.4.0

func (_c *Provider_ID_Call) Run(run func()) *Provider_ID_Call

func (*Provider_ID_Call) RunAndReturn added in v1.4.0

func (_c *Provider_ID_Call) RunAndReturn(run func() string) *Provider_ID_Call

type Provider_LightBlock_Call added in v1.4.0

type Provider_LightBlock_Call struct {
	*mock.Call
}

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

func (*Provider_LightBlock_Call) Return added in v1.4.0

func (*Provider_LightBlock_Call) Run added in v1.4.0

func (_c *Provider_LightBlock_Call) Run(run func(ctx context.Context, height int64)) *Provider_LightBlock_Call

func (*Provider_LightBlock_Call) RunAndReturn added in v1.4.0

func (_c *Provider_LightBlock_Call) RunAndReturn(run func(ctx context.Context, height int64) (*types.LightBlock, error)) *Provider_LightBlock_Call

type Provider_ReportEvidence_Call added in v1.4.0

type Provider_ReportEvidence_Call struct {
	*mock.Call
}

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

func (*Provider_ReportEvidence_Call) Return added in v1.4.0

func (*Provider_ReportEvidence_Call) Run added in v1.4.0

func (*Provider_ReportEvidence_Call) RunAndReturn added in v1.4.0

func (_c *Provider_ReportEvidence_Call) RunAndReturn(run func(context1 context.Context, evidence types.Evidence) error) *Provider_ReportEvidence_Call

Jump to

Keyboard shortcuts

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