mock

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: AGPL-3.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 API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t mockConstructorTestingTNewAPI) *API

NewAPI creates a new instance of API. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*API) GetBlockByHeight

func (_m *API) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, error)

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

func (*API) GetBlockByID

func (_m *API) GetBlockByID(ctx context.Context, id flow.Identifier) (*flow.Block, error)

GetBlockByID provides a mock function with given fields: ctx, id

func (*API) GetBlockHeaderByHeight

func (_m *API) GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.Header, error)

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

func (*API) GetBlockHeaderByID

func (_m *API) GetBlockHeaderByID(ctx context.Context, id flow.Identifier) (*flow.Header, error)

GetBlockHeaderByID provides a mock function with given fields: ctx, id

func (*API) GetLatestBlock

func (_m *API) GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, error)

GetLatestBlock provides a mock function with given fields: ctx, isSealed

func (*API) GetLatestBlockHeader

func (_m *API) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.Header, error)

GetLatestBlockHeader provides a mock function with given fields: ctx, isSealed

func (*API) GetLatestProtocolStateSnapshot

func (_m *API) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)

GetLatestProtocolStateSnapshot provides a mock function with given fields: ctx

func (*API) GetNetworkParameters

func (_m *API) GetNetworkParameters(ctx context.Context) access.NetworkParameters

GetNetworkParameters provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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