mock

package
v0.33.23-failure-mode-... Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 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

func (*API) GetNodeVersionInfo added in v0.31.0

func (_m *API) GetNodeVersionInfo(ctx context.Context) (*access.NodeVersionInfo, error)

GetNodeVersionInfo provides a mock function with given fields: ctx

func (*API) GetProtocolStateSnapshotByBlockID added in v0.33.1

func (_m *API) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)

GetProtocolStateSnapshotByBlockID provides a mock function with given fields: ctx, blockID

func (*API) GetProtocolStateSnapshotByHeight added in v0.33.1

func (_m *API) GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)

GetProtocolStateSnapshotByHeight provides a mock function with given fields: ctx, blockHeight

Jump to

Keyboard shortcuts

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