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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LightClient

type LightClient struct {
	mock.Mock
}

LightClient is an autogenerated mock type for the LightClient type

func NewLightClient

func NewLightClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *LightClient

NewLightClient creates a new instance of LightClient. 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 (*LightClient) ChainID

func (_mock *LightClient) ChainID() string

ChainID provides a mock function for the type LightClient

func (*LightClient) EXPECT added in v1.4.0

func (_m *LightClient) EXPECT() *LightClient_Expecter

func (*LightClient) Status

func (_mock *LightClient) Status(ctx context.Context) *types.LightClientInfo

Status provides a mock function for the type LightClient

func (*LightClient) TrustedLightBlock

func (_mock *LightClient) TrustedLightBlock(height int64) (*types.LightBlock, error)

TrustedLightBlock provides a mock function for the type LightClient

func (*LightClient) Update

func (_mock *LightClient) Update(ctx context.Context, now time.Time) (*types.LightBlock, error)

Update provides a mock function for the type LightClient

func (*LightClient) VerifyLightBlockAtHeight

func (_mock *LightClient) VerifyLightBlockAtHeight(ctx context.Context, height int64, now time.Time) (*types.LightBlock, error)

VerifyLightBlockAtHeight provides a mock function for the type LightClient

type LightClient_ChainID_Call added in v1.4.0

type LightClient_ChainID_Call struct {
	*mock.Call
}

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

func (*LightClient_ChainID_Call) Return added in v1.4.0

func (*LightClient_ChainID_Call) Run added in v1.4.0

func (*LightClient_ChainID_Call) RunAndReturn added in v1.4.0

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

type LightClient_Expecter added in v1.4.0

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

func (*LightClient_Expecter) ChainID added in v1.4.0

ChainID is a helper method to define mock.On call

func (*LightClient_Expecter) Status added in v1.4.0

func (_e *LightClient_Expecter) Status(ctx interface{}) *LightClient_Status_Call

Status is a helper method to define mock.On call

  • ctx

func (*LightClient_Expecter) TrustedLightBlock added in v1.4.0

func (_e *LightClient_Expecter) TrustedLightBlock(height interface{}) *LightClient_TrustedLightBlock_Call

TrustedLightBlock is a helper method to define mock.On call

  • height

func (*LightClient_Expecter) Update added in v1.4.0

func (_e *LightClient_Expecter) Update(ctx interface{}, now interface{}) *LightClient_Update_Call

Update is a helper method to define mock.On call

  • ctx
  • now

func (*LightClient_Expecter) VerifyLightBlockAtHeight added in v1.4.0

func (_e *LightClient_Expecter) VerifyLightBlockAtHeight(ctx interface{}, height interface{}, now interface{}) *LightClient_VerifyLightBlockAtHeight_Call

VerifyLightBlockAtHeight is a helper method to define mock.On call

  • ctx
  • height
  • now

type LightClient_Status_Call added in v1.4.0

type LightClient_Status_Call struct {
	*mock.Call
}

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

func (*LightClient_Status_Call) Return added in v1.4.0

func (*LightClient_Status_Call) Run added in v1.4.0

func (*LightClient_Status_Call) RunAndReturn added in v1.4.0

type LightClient_TrustedLightBlock_Call added in v1.4.0

type LightClient_TrustedLightBlock_Call struct {
	*mock.Call
}

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

func (*LightClient_TrustedLightBlock_Call) Return added in v1.4.0

func (*LightClient_TrustedLightBlock_Call) Run added in v1.4.0

func (*LightClient_TrustedLightBlock_Call) RunAndReturn added in v1.4.0

type LightClient_Update_Call added in v1.4.0

type LightClient_Update_Call struct {
	*mock.Call
}

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

func (*LightClient_Update_Call) Return added in v1.4.0

func (*LightClient_Update_Call) Run added in v1.4.0

func (*LightClient_Update_Call) RunAndReturn added in v1.4.0

func (_c *LightClient_Update_Call) RunAndReturn(run func(ctx context.Context, now time.Time) (*types.LightBlock, error)) *LightClient_Update_Call

type LightClient_VerifyLightBlockAtHeight_Call added in v1.4.0

type LightClient_VerifyLightBlockAtHeight_Call struct {
	*mock.Call
}

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

func (*LightClient_VerifyLightBlockAtHeight_Call) Return added in v1.4.0

func (*LightClient_VerifyLightBlockAtHeight_Call) Run added in v1.4.0

func (*LightClient_VerifyLightBlockAtHeight_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