mocks

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 5 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 mockConstructorTestingTNewBlockClient) *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.

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) Send

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

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

Jump to

Keyboard shortcuts

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