mocks

package
v0.34.21 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0 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 LightClient

type LightClient struct {
	mock.Mock
}

LightClient is an autogenerated mock type for the LightClient type

func NewLightClient added in v0.34.20

func NewLightClient(t NewLightClientT) *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.

func (*LightClient) ChainID

func (_m *LightClient) ChainID() string

ChainID provides a mock function with given fields:

func (*LightClient) TrustedLightBlock

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

TrustedLightBlock provides a mock function with given fields: height

func (*LightClient) Update added in v0.34.4

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

Update provides a mock function with given fields: ctx, now

func (*LightClient) VerifyLightBlockAtHeight

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

VerifyLightBlockAtHeight provides a mock function with given fields: ctx, height, now

type NewLightClientT added in v0.34.21

type NewLightClientT interface {
	mock.TestingT
	Cleanup(func())
}

Jump to

Keyboard shortcuts

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