mocks

package
v0.0.0-...-be384fd Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockClient

type BlockClient struct {
	mock.Mock
}

BlockClient is an autogenerated mock type for the BlockClient type

func NewBlockClient

func NewBlockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockClient

NewBlockClient creates a new instance of BlockClient. 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 (*BlockClient) GetBlock

func (_m *BlockClient) GetBlock(ctx context.Context, height int64, peerID types.NodeID) (*promise.Promise[*blocksync.BlockResponse], error)

GetBlock provides a mock function with given fields: ctx, height, peerID

func (*BlockClient) GetSyncStatus

func (_m *BlockClient) GetSyncStatus(ctx context.Context) error

GetSyncStatus provides a mock function with given fields: ctx

func (*BlockClient) Send

func (_m *BlockClient) Send(ctx context.Context, msg interface{}) error

Send provides a mock function with given fields: ctx, msg

type SnapshotClient

type SnapshotClient struct {
	mock.Mock
}

SnapshotClient is an autogenerated mock type for the SnapshotClient type

func NewSnapshotClient

func NewSnapshotClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *SnapshotClient

NewSnapshotClient creates a new instance of SnapshotClient. 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 (*SnapshotClient) GetChunk

func (_m *SnapshotClient) GetChunk(ctx context.Context, peerID types.NodeID, height uint64, format uint32, index uint32) (*promise.Promise[*statesync.ChunkResponse], error)

GetChunk provides a mock function with given fields: ctx, peerID, height, format, index

func (*SnapshotClient) GetLightBlock

func (_m *SnapshotClient) GetLightBlock(ctx context.Context, peerID types.NodeID, height uint64) (*promise.Promise[*statesync.LightBlockResponse], error)

GetLightBlock provides a mock function with given fields: ctx, peerID, height

func (*SnapshotClient) GetParams

func (_m *SnapshotClient) GetParams(ctx context.Context, peerID types.NodeID, height uint64) (*promise.Promise[*statesync.ParamsResponse], error)

GetParams provides a mock function with given fields: ctx, peerID, height

func (*SnapshotClient) GetSnapshots

func (_m *SnapshotClient) GetSnapshots(ctx context.Context, peerID types.NodeID) error

GetSnapshots provides a mock function with given fields: ctx, peerID

Jump to

Keyboard shortcuts

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