Help us shape the future of Go! Take the 2026 Go Developer Survey

mock

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 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) EXPECT added in v0.46.0

func (_m *API) EXPECT() *API_Expecter

func (*API) GetExecutionDataByBlockID

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

GetExecutionDataByBlockID provides a mock function for the type API

func (*API) GetRegisterValues added in v0.32.10

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

GetRegisterValues provides a mock function for the type API

func (*API) SubscribeAccountStatusesFromLatestBlock added in v0.33.30

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

SubscribeAccountStatusesFromLatestBlock provides a mock function for the type API

func (*API) SubscribeAccountStatusesFromStartBlockID added in v0.33.30

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

SubscribeAccountStatusesFromStartBlockID provides a mock function for the type API

func (*API) SubscribeAccountStatusesFromStartHeight added in v0.33.30

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

SubscribeAccountStatusesFromStartHeight provides a mock function for the type API

func (*API) SubscribeEvents added in v0.30.2

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

SubscribeEvents provides a mock function for the type API

func (*API) SubscribeEventsFromLatest added in v0.33.30

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

SubscribeEventsFromLatest provides a mock function for the type API

func (*API) SubscribeEventsFromStartBlockID added in v0.33.30

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

SubscribeEventsFromStartBlockID provides a mock function for the type API

func (*API) SubscribeEventsFromStartHeight added in v0.33.30

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

SubscribeEventsFromStartHeight provides a mock function for the type API

func (*API) SubscribeExecutionData added in v0.30.2

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

SubscribeExecutionData provides a mock function for the type API

func (*API) SubscribeExecutionDataFromLatest added in v0.33.30

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

SubscribeExecutionDataFromLatest provides a mock function for the type API

func (*API) SubscribeExecutionDataFromStartBlockHeight added in v0.33.30

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

SubscribeExecutionDataFromStartBlockHeight provides a mock function for the type API

func (*API) SubscribeExecutionDataFromStartBlockID added in v0.33.30

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

SubscribeExecutionDataFromStartBlockID provides a mock function for the type API

type API_Expecter added in v0.46.0

type API_Expecter struct {
	// contains filtered or unexported fields
}

func (*API_Expecter) GetExecutionDataByBlockID added in v0.46.0

func (_e *API_Expecter) GetExecutionDataByBlockID(ctx interface{}, blockID interface{}) *API_GetExecutionDataByBlockID_Call

GetExecutionDataByBlockID is a helper method to define mock.On call

  • ctx context.Context
  • blockID flow.Identifier

func (*API_Expecter) GetRegisterValues added in v0.46.0

func (_e *API_Expecter) GetRegisterValues(registerIDs interface{}, height interface{}) *API_GetRegisterValues_Call

GetRegisterValues is a helper method to define mock.On call

  • registerIDs flow.RegisterIDs
  • height uint64

func (*API_Expecter) SubscribeAccountStatusesFromLatestBlock added in v0.46.0

func (_e *API_Expecter) SubscribeAccountStatusesFromLatestBlock(ctx interface{}, filter interface{}) *API_SubscribeAccountStatusesFromLatestBlock_Call

SubscribeAccountStatusesFromLatestBlock is a helper method to define mock.On call

  • ctx context.Context
  • filter state_stream.AccountStatusFilter

func (*API_Expecter) SubscribeAccountStatusesFromStartBlockID added in v0.46.0

func (_e *API_Expecter) SubscribeAccountStatusesFromStartBlockID(ctx interface{}, startBlockID interface{}, filter interface{}) *API_SubscribeAccountStatusesFromStartBlockID_Call

SubscribeAccountStatusesFromStartBlockID is a helper method to define mock.On call

  • ctx context.Context
  • startBlockID flow.Identifier
  • filter state_stream.AccountStatusFilter

func (*API_Expecter) SubscribeAccountStatusesFromStartHeight added in v0.46.0

func (_e *API_Expecter) SubscribeAccountStatusesFromStartHeight(ctx interface{}, startHeight interface{}, filter interface{}) *API_SubscribeAccountStatusesFromStartHeight_Call

SubscribeAccountStatusesFromStartHeight is a helper method to define mock.On call

  • ctx context.Context
  • startHeight uint64
  • filter state_stream.AccountStatusFilter

func (*API_Expecter) SubscribeEvents added in v0.46.0

func (_e *API_Expecter) SubscribeEvents(ctx interface{}, startBlockID interface{}, startHeight interface{}, filter interface{}) *API_SubscribeEvents_Call

SubscribeEvents is a helper method to define mock.On call

  • ctx context.Context
  • startBlockID flow.Identifier
  • startHeight uint64
  • filter state_stream.EventFilter

func (*API_Expecter) SubscribeEventsFromLatest added in v0.46.0

func (_e *API_Expecter) SubscribeEventsFromLatest(ctx interface{}, filter interface{}) *API_SubscribeEventsFromLatest_Call

SubscribeEventsFromLatest is a helper method to define mock.On call

  • ctx context.Context
  • filter state_stream.EventFilter

func (*API_Expecter) SubscribeEventsFromStartBlockID added in v0.46.0

func (_e *API_Expecter) SubscribeEventsFromStartBlockID(ctx interface{}, startBlockID interface{}, filter interface{}) *API_SubscribeEventsFromStartBlockID_Call

SubscribeEventsFromStartBlockID is a helper method to define mock.On call

  • ctx context.Context
  • startBlockID flow.Identifier
  • filter state_stream.EventFilter

func (*API_Expecter) SubscribeEventsFromStartHeight added in v0.46.0

func (_e *API_Expecter) SubscribeEventsFromStartHeight(ctx interface{}, startHeight interface{}, filter interface{}) *API_SubscribeEventsFromStartHeight_Call

SubscribeEventsFromStartHeight is a helper method to define mock.On call

  • ctx context.Context
  • startHeight uint64
  • filter state_stream.EventFilter

func (*API_Expecter) SubscribeExecutionData added in v0.46.0

func (_e *API_Expecter) SubscribeExecutionData(ctx interface{}, startBlockID interface{}, startBlockHeight interface{}) *API_SubscribeExecutionData_Call

SubscribeExecutionData is a helper method to define mock.On call

  • ctx context.Context
  • startBlockID flow.Identifier
  • startBlockHeight uint64

func (*API_Expecter) SubscribeExecutionDataFromLatest added in v0.46.0

func (_e *API_Expecter) SubscribeExecutionDataFromLatest(ctx interface{}) *API_SubscribeExecutionDataFromLatest_Call

SubscribeExecutionDataFromLatest is a helper method to define mock.On call

  • ctx context.Context

func (*API_Expecter) SubscribeExecutionDataFromStartBlockHeight added in v0.46.0

func (_e *API_Expecter) SubscribeExecutionDataFromStartBlockHeight(ctx interface{}, startBlockHeight interface{}) *API_SubscribeExecutionDataFromStartBlockHeight_Call

SubscribeExecutionDataFromStartBlockHeight is a helper method to define mock.On call

  • ctx context.Context
  • startBlockHeight uint64

func (*API_Expecter) SubscribeExecutionDataFromStartBlockID added in v0.46.0

func (_e *API_Expecter) SubscribeExecutionDataFromStartBlockID(ctx interface{}, startBlockID interface{}) *API_SubscribeExecutionDataFromStartBlockID_Call

SubscribeExecutionDataFromStartBlockID is a helper method to define mock.On call

  • ctx context.Context
  • startBlockID flow.Identifier

type API_GetExecutionDataByBlockID_Call added in v0.46.0

type API_GetExecutionDataByBlockID_Call struct {
	*mock.Call
}

API_GetExecutionDataByBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetExecutionDataByBlockID'

func (*API_GetExecutionDataByBlockID_Call) Return added in v0.46.0

func (*API_GetExecutionDataByBlockID_Call) Run added in v0.46.0

func (*API_GetExecutionDataByBlockID_Call) RunAndReturn added in v0.46.0

type API_GetRegisterValues_Call added in v0.46.0

type API_GetRegisterValues_Call struct {
	*mock.Call
}

API_GetRegisterValues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRegisterValues'

func (*API_GetRegisterValues_Call) Return added in v0.46.0

func (*API_GetRegisterValues_Call) Run added in v0.46.0

func (_c *API_GetRegisterValues_Call) Run(run func(registerIDs flow.RegisterIDs, height uint64)) *API_GetRegisterValues_Call

func (*API_GetRegisterValues_Call) RunAndReturn added in v0.46.0

func (_c *API_GetRegisterValues_Call) RunAndReturn(run func(registerIDs flow.RegisterIDs, height uint64) ([]flow.RegisterValue, error)) *API_GetRegisterValues_Call

type API_SubscribeAccountStatusesFromLatestBlock_Call added in v0.46.0

type API_SubscribeAccountStatusesFromLatestBlock_Call struct {
	*mock.Call
}

API_SubscribeAccountStatusesFromLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeAccountStatusesFromLatestBlock'

func (*API_SubscribeAccountStatusesFromLatestBlock_Call) Return added in v0.46.0

func (*API_SubscribeAccountStatusesFromLatestBlock_Call) Run added in v0.46.0

func (*API_SubscribeAccountStatusesFromLatestBlock_Call) RunAndReturn added in v0.46.0

type API_SubscribeAccountStatusesFromStartBlockID_Call added in v0.46.0

type API_SubscribeAccountStatusesFromStartBlockID_Call struct {
	*mock.Call
}

API_SubscribeAccountStatusesFromStartBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeAccountStatusesFromStartBlockID'

func (*API_SubscribeAccountStatusesFromStartBlockID_Call) Return added in v0.46.0

func (*API_SubscribeAccountStatusesFromStartBlockID_Call) Run added in v0.46.0

func (*API_SubscribeAccountStatusesFromStartBlockID_Call) RunAndReturn added in v0.46.0

type API_SubscribeAccountStatusesFromStartHeight_Call added in v0.46.0

type API_SubscribeAccountStatusesFromStartHeight_Call struct {
	*mock.Call
}

API_SubscribeAccountStatusesFromStartHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeAccountStatusesFromStartHeight'

func (*API_SubscribeAccountStatusesFromStartHeight_Call) Return added in v0.46.0

func (*API_SubscribeAccountStatusesFromStartHeight_Call) Run added in v0.46.0

func (*API_SubscribeAccountStatusesFromStartHeight_Call) RunAndReturn added in v0.46.0

type API_SubscribeEventsFromLatest_Call added in v0.46.0

type API_SubscribeEventsFromLatest_Call struct {
	*mock.Call
}

API_SubscribeEventsFromLatest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeEventsFromLatest'

func (*API_SubscribeEventsFromLatest_Call) Return added in v0.46.0

func (*API_SubscribeEventsFromLatest_Call) Run added in v0.46.0

func (*API_SubscribeEventsFromLatest_Call) RunAndReturn added in v0.46.0

type API_SubscribeEventsFromStartBlockID_Call added in v0.46.0

type API_SubscribeEventsFromStartBlockID_Call struct {
	*mock.Call
}

API_SubscribeEventsFromStartBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeEventsFromStartBlockID'

func (*API_SubscribeEventsFromStartBlockID_Call) Return added in v0.46.0

func (*API_SubscribeEventsFromStartBlockID_Call) Run added in v0.46.0

func (*API_SubscribeEventsFromStartBlockID_Call) RunAndReturn added in v0.46.0

type API_SubscribeEventsFromStartHeight_Call added in v0.46.0

type API_SubscribeEventsFromStartHeight_Call struct {
	*mock.Call
}

API_SubscribeEventsFromStartHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeEventsFromStartHeight'

func (*API_SubscribeEventsFromStartHeight_Call) Return added in v0.46.0

func (*API_SubscribeEventsFromStartHeight_Call) Run added in v0.46.0

func (*API_SubscribeEventsFromStartHeight_Call) RunAndReturn added in v0.46.0

type API_SubscribeEvents_Call added in v0.46.0

type API_SubscribeEvents_Call struct {
	*mock.Call
}

API_SubscribeEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeEvents'

func (*API_SubscribeEvents_Call) Return added in v0.46.0

func (*API_SubscribeEvents_Call) Run added in v0.46.0

func (_c *API_SubscribeEvents_Call) Run(run func(ctx context.Context, startBlockID flow.Identifier, startHeight uint64, filter state_stream.EventFilter)) *API_SubscribeEvents_Call

func (*API_SubscribeEvents_Call) RunAndReturn added in v0.46.0

func (_c *API_SubscribeEvents_Call) RunAndReturn(run func(ctx context.Context, startBlockID flow.Identifier, startHeight uint64, filter state_stream.EventFilter) subscription.Subscription) *API_SubscribeEvents_Call

type API_SubscribeExecutionDataFromLatest_Call added in v0.46.0

type API_SubscribeExecutionDataFromLatest_Call struct {
	*mock.Call
}

API_SubscribeExecutionDataFromLatest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeExecutionDataFromLatest'

func (*API_SubscribeExecutionDataFromLatest_Call) Return added in v0.46.0

func (*API_SubscribeExecutionDataFromLatest_Call) Run added in v0.46.0

func (*API_SubscribeExecutionDataFromLatest_Call) RunAndReturn added in v0.46.0

type API_SubscribeExecutionDataFromStartBlockHeight_Call added in v0.46.0

type API_SubscribeExecutionDataFromStartBlockHeight_Call struct {
	*mock.Call
}

API_SubscribeExecutionDataFromStartBlockHeight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeExecutionDataFromStartBlockHeight'

func (*API_SubscribeExecutionDataFromStartBlockHeight_Call) Return added in v0.46.0

func (*API_SubscribeExecutionDataFromStartBlockHeight_Call) Run added in v0.46.0

func (*API_SubscribeExecutionDataFromStartBlockHeight_Call) RunAndReturn added in v0.46.0

type API_SubscribeExecutionDataFromStartBlockID_Call added in v0.46.0

type API_SubscribeExecutionDataFromStartBlockID_Call struct {
	*mock.Call
}

API_SubscribeExecutionDataFromStartBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeExecutionDataFromStartBlockID'

func (*API_SubscribeExecutionDataFromStartBlockID_Call) Return added in v0.46.0

func (*API_SubscribeExecutionDataFromStartBlockID_Call) Run added in v0.46.0

func (*API_SubscribeExecutionDataFromStartBlockID_Call) RunAndReturn added in v0.46.0

type API_SubscribeExecutionData_Call added in v0.46.0

type API_SubscribeExecutionData_Call struct {
	*mock.Call
}

API_SubscribeExecutionData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeExecutionData'

func (*API_SubscribeExecutionData_Call) Return added in v0.46.0

func (*API_SubscribeExecutionData_Call) Run added in v0.46.0

func (_c *API_SubscribeExecutionData_Call) Run(run func(ctx context.Context, startBlockID flow.Identifier, startBlockHeight uint64)) *API_SubscribeExecutionData_Call

func (*API_SubscribeExecutionData_Call) RunAndReturn added in v0.46.0

func (_c *API_SubscribeExecutionData_Call) RunAndReturn(run func(ctx context.Context, startBlockID flow.Identifier, startBlockHeight uint64) subscription.Subscription) *API_SubscribeExecutionData_Call

Jump to

Keyboard shortcuts

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