mocks

package
v1.5.0-dev.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 (_m *Provider) ID() string

ID provides a mock function with no fields

func (*Provider) LightBlock

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

LightBlock provides a mock function with given fields: ctx, height

func (*Provider) ReportEvidence

func (_m *Provider) ReportEvidence(_a0 context.Context, _a1 types.Evidence) error

ReportEvidence provides a mock function with given fields: _a0, _a1

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 context.Context
  • height int64

func (*Provider_Expecter) ReportEvidence added in v1.4.0

func (_e *Provider_Expecter) ReportEvidence(_a0 interface{}, _a1 interface{}) *Provider_ReportEvidence_Call

ReportEvidence is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 types.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(_a0 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

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

Jump to

Keyboard shortcuts

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