mock

package
v0.43.1-access-memory-... Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: AGPL-3.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 API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*API) GetExecutionDataByBlockID

func (_m *API) GetExecutionDataByBlockID(ctx context.Context, blockID flow.Identifier) (*execution_data.BlockExecutionData, error)

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

func (*API) GetRegisterValues added in v0.32.10

func (_m *API) GetRegisterValues(registerIDs flow.RegisterIDs, height uint64) ([]flow.RegisterValue, error)

GetRegisterValues provides a mock function with given fields: registerIDs, height

func (*API) SubscribeAccountStatusesFromLatestBlock added in v0.33.30

func (_m *API) SubscribeAccountStatusesFromLatestBlock(ctx context.Context, filter state_stream.AccountStatusFilter) subscription.Subscription

SubscribeAccountStatusesFromLatestBlock provides a mock function with given fields: ctx, filter

func (*API) SubscribeAccountStatusesFromStartBlockID added in v0.33.30

func (_m *API) SubscribeAccountStatusesFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, filter state_stream.AccountStatusFilter) subscription.Subscription

SubscribeAccountStatusesFromStartBlockID provides a mock function with given fields: ctx, startBlockID, filter

func (*API) SubscribeAccountStatusesFromStartHeight added in v0.33.30

func (_m *API) SubscribeAccountStatusesFromStartHeight(ctx context.Context, startHeight uint64, filter state_stream.AccountStatusFilter) subscription.Subscription

SubscribeAccountStatusesFromStartHeight provides a mock function with given fields: ctx, startHeight, filter

func (*API) SubscribeEvents added in v0.30.2

func (_m *API) SubscribeEvents(ctx context.Context, startBlockID flow.Identifier, startHeight uint64, filter state_stream.EventFilter) subscription.Subscription

SubscribeEvents provides a mock function with given fields: ctx, startBlockID, startHeight, filter

func (*API) SubscribeEventsFromLatest added in v0.33.30

func (_m *API) SubscribeEventsFromLatest(ctx context.Context, filter state_stream.EventFilter) subscription.Subscription

SubscribeEventsFromLatest provides a mock function with given fields: ctx, filter

func (*API) SubscribeEventsFromStartBlockID added in v0.33.30

func (_m *API) SubscribeEventsFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, filter state_stream.EventFilter) subscription.Subscription

SubscribeEventsFromStartBlockID provides a mock function with given fields: ctx, startBlockID, filter

func (*API) SubscribeEventsFromStartHeight added in v0.33.30

func (_m *API) SubscribeEventsFromStartHeight(ctx context.Context, startHeight uint64, filter state_stream.EventFilter) subscription.Subscription

SubscribeEventsFromStartHeight provides a mock function with given fields: ctx, startHeight, filter

func (*API) SubscribeExecutionData added in v0.30.2

func (_m *API) SubscribeExecutionData(ctx context.Context, startBlockID flow.Identifier, startBlockHeight uint64) subscription.Subscription

SubscribeExecutionData provides a mock function with given fields: ctx, startBlockID, startBlockHeight

func (*API) SubscribeExecutionDataFromLatest added in v0.33.30

func (_m *API) SubscribeExecutionDataFromLatest(ctx context.Context) subscription.Subscription

SubscribeExecutionDataFromLatest provides a mock function with given fields: ctx

func (*API) SubscribeExecutionDataFromStartBlockHeight added in v0.33.30

func (_m *API) SubscribeExecutionDataFromStartBlockHeight(ctx context.Context, startBlockHeight uint64) subscription.Subscription

SubscribeExecutionDataFromStartBlockHeight provides a mock function with given fields: ctx, startBlockHeight

func (*API) SubscribeExecutionDataFromStartBlockID added in v0.33.30

func (_m *API) SubscribeExecutionDataFromStartBlockID(ctx context.Context, startBlockID flow.Identifier) subscription.Subscription

SubscribeExecutionDataFromStartBlockID provides a mock function with given fields: ctx, startBlockID

Jump to

Keyboard shortcuts

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