mock

package
v0.49.0 Latest Latest
Warning

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

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

func (_m *API) EXPECT() *API_Expecter

func (*API) GetAccountFungibleTokenTransfers

func (_mock *API) GetAccountFungibleTokenTransfers(ctx context.Context, address flow.Address, limit uint32, cursor *access.TransferCursor, filter extended.AccountTransferFilter, expandOptions extended.AccountTransferExpandOptions, encodingVersion entities.EventEncodingVersion) (*access.FungibleTokenTransfersPage, error)

GetAccountFungibleTokenTransfers provides a mock function for the type API

func (*API) GetAccountNonFungibleTokenTransfers

func (_mock *API) GetAccountNonFungibleTokenTransfers(ctx context.Context, address flow.Address, limit uint32, cursor *access.TransferCursor, filter extended.AccountTransferFilter, expandOptions extended.AccountTransferExpandOptions, encodingVersion entities.EventEncodingVersion) (*access.NonFungibleTokenTransfersPage, error)

GetAccountNonFungibleTokenTransfers provides a mock function for the type API

func (*API) GetAccountTransactions

GetAccountTransactions provides a mock function for the type API

func (*API) GetContract

GetContract provides a mock function for the type API

func (*API) GetContractDeployments

GetContractDeployments provides a mock function for the type API

func (*API) GetContracts

GetContracts provides a mock function for the type API

func (*API) GetContractsByAddress

GetContractsByAddress provides a mock function for the type API

func (*API) GetScheduledTransaction

func (_mock *API) GetScheduledTransaction(ctx context.Context, id uint64, expandOptions extended.ScheduledTransactionExpandOptions, encodingVersion entities.EventEncodingVersion) (*access.ScheduledTransaction, error)

GetScheduledTransaction provides a mock function for the type API

func (*API) GetScheduledTransactions

GetScheduledTransactions provides a mock function for the type API

func (*API) GetScheduledTransactionsByAddress

func (_mock *API) GetScheduledTransactionsByAddress(ctx context.Context, address flow.Address, limit uint32, cursor *access.ScheduledTransactionCursor, filter extended.ScheduledTransactionFilter, expandOptions extended.ScheduledTransactionExpandOptions, encodingVersion entities.EventEncodingVersion) (*access.ScheduledTransactionsPage, error)

GetScheduledTransactionsByAddress provides a mock function for the type API

type API_Expecter

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

func (*API_Expecter) GetAccountFungibleTokenTransfers

func (_e *API_Expecter) GetAccountFungibleTokenTransfers(ctx interface{}, address interface{}, limit interface{}, cursor interface{}, filter interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetAccountFungibleTokenTransfers_Call

GetAccountFungibleTokenTransfers is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • limit uint32
  • cursor *access.TransferCursor
  • filter extended.AccountTransferFilter
  • expandOptions extended.AccountTransferExpandOptions
  • encodingVersion entities.EventEncodingVersion

func (*API_Expecter) GetAccountNonFungibleTokenTransfers

func (_e *API_Expecter) GetAccountNonFungibleTokenTransfers(ctx interface{}, address interface{}, limit interface{}, cursor interface{}, filter interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetAccountNonFungibleTokenTransfers_Call

GetAccountNonFungibleTokenTransfers is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • limit uint32
  • cursor *access.TransferCursor
  • filter extended.AccountTransferFilter
  • expandOptions extended.AccountTransferExpandOptions
  • encodingVersion entities.EventEncodingVersion

func (*API_Expecter) GetAccountTransactions

func (_e *API_Expecter) GetAccountTransactions(ctx interface{}, address interface{}, limit interface{}, cursor interface{}, filter interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetAccountTransactions_Call

GetAccountTransactions is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • limit uint32
  • cursor *access.AccountTransactionCursor
  • filter extended.AccountTransactionFilter
  • expandOptions extended.AccountTransactionExpandOptions
  • encodingVersion entities.EventEncodingVersion

func (*API_Expecter) GetContract

func (_e *API_Expecter) GetContract(ctx interface{}, id interface{}, filter interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetContract_Call

GetContract is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • filter extended.ContractDeploymentFilter
  • expandOptions extended.ContractDeploymentExpandOptions
  • encodingVersion entities.EventEncodingVersion

func (*API_Expecter) GetContractDeployments

func (_e *API_Expecter) GetContractDeployments(ctx interface{}, id interface{}, limit interface{}, cursor interface{}, filter interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetContractDeployments_Call

GetContractDeployments is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • limit uint32
  • cursor *access.ContractDeploymentsCursor
  • filter extended.ContractDeploymentFilter
  • expandOptions extended.ContractDeploymentExpandOptions
  • encodingVersion entities.EventEncodingVersion

func (*API_Expecter) GetContracts

func (_e *API_Expecter) GetContracts(ctx interface{}, limit interface{}, cursor interface{}, filter interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetContracts_Call

GetContracts is a helper method to define mock.On call

  • ctx context.Context
  • limit uint32
  • cursor *access.ContractDeploymentsCursor
  • filter extended.ContractDeploymentFilter
  • expandOptions extended.ContractDeploymentExpandOptions
  • encodingVersion entities.EventEncodingVersion

func (*API_Expecter) GetContractsByAddress

func (_e *API_Expecter) GetContractsByAddress(ctx interface{}, address interface{}, limit interface{}, cursor interface{}, filter interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetContractsByAddress_Call

GetContractsByAddress is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • limit uint32
  • cursor *access.ContractDeploymentsCursor
  • filter extended.ContractDeploymentFilter
  • expandOptions extended.ContractDeploymentExpandOptions
  • encodingVersion entities.EventEncodingVersion

func (*API_Expecter) GetScheduledTransaction

func (_e *API_Expecter) GetScheduledTransaction(ctx interface{}, id interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetScheduledTransaction_Call

GetScheduledTransaction is a helper method to define mock.On call

  • ctx context.Context
  • id uint64
  • expandOptions extended.ScheduledTransactionExpandOptions
  • encodingVersion entities.EventEncodingVersion

func (*API_Expecter) GetScheduledTransactions

func (_e *API_Expecter) GetScheduledTransactions(ctx interface{}, limit interface{}, cursor interface{}, filter interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetScheduledTransactions_Call

GetScheduledTransactions is a helper method to define mock.On call

  • ctx context.Context
  • limit uint32
  • cursor *access.ScheduledTransactionCursor
  • filter extended.ScheduledTransactionFilter
  • expandOptions extended.ScheduledTransactionExpandOptions
  • encodingVersion entities.EventEncodingVersion

func (*API_Expecter) GetScheduledTransactionsByAddress

func (_e *API_Expecter) GetScheduledTransactionsByAddress(ctx interface{}, address interface{}, limit interface{}, cursor interface{}, filter interface{}, expandOptions interface{}, encodingVersion interface{}) *API_GetScheduledTransactionsByAddress_Call

GetScheduledTransactionsByAddress is a helper method to define mock.On call

  • ctx context.Context
  • address flow.Address
  • limit uint32
  • cursor *access.ScheduledTransactionCursor
  • filter extended.ScheduledTransactionFilter
  • expandOptions extended.ScheduledTransactionExpandOptions
  • encodingVersion entities.EventEncodingVersion

type API_GetAccountFungibleTokenTransfers_Call

type API_GetAccountFungibleTokenTransfers_Call struct {
	*mock.Call
}

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

func (*API_GetAccountFungibleTokenTransfers_Call) Return

func (*API_GetAccountFungibleTokenTransfers_Call) Run

type API_GetAccountNonFungibleTokenTransfers_Call

type API_GetAccountNonFungibleTokenTransfers_Call struct {
	*mock.Call
}

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

func (*API_GetAccountNonFungibleTokenTransfers_Call) Return

func (*API_GetAccountNonFungibleTokenTransfers_Call) Run

type API_GetAccountTransactions_Call

type API_GetAccountTransactions_Call struct {
	*mock.Call
}

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

func (*API_GetAccountTransactions_Call) Return

func (*API_GetAccountTransactions_Call) Run

type API_GetContractDeployments_Call

type API_GetContractDeployments_Call struct {
	*mock.Call
}

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

func (*API_GetContractDeployments_Call) Return

type API_GetContract_Call

type API_GetContract_Call struct {
	*mock.Call
}

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

func (*API_GetContract_Call) Return

func (_c *API_GetContract_Call) Return(contractDeployment *access.ContractDeployment, err error) *API_GetContract_Call

func (*API_GetContract_Call) Run

type API_GetContractsByAddress_Call

type API_GetContractsByAddress_Call struct {
	*mock.Call
}

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

func (*API_GetContractsByAddress_Call) Return

func (*API_GetContractsByAddress_Call) Run

type API_GetContracts_Call

type API_GetContracts_Call struct {
	*mock.Call
}

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

func (*API_GetContracts_Call) Return

func (_c *API_GetContracts_Call) Return(contractDeploymentPage *access.ContractDeploymentPage, err error) *API_GetContracts_Call

func (*API_GetContracts_Call) Run

type API_GetScheduledTransaction_Call

type API_GetScheduledTransaction_Call struct {
	*mock.Call
}

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

func (*API_GetScheduledTransaction_Call) Return

func (*API_GetScheduledTransaction_Call) Run

func (*API_GetScheduledTransaction_Call) RunAndReturn

type API_GetScheduledTransactionsByAddress_Call

type API_GetScheduledTransactionsByAddress_Call struct {
	*mock.Call
}

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

func (*API_GetScheduledTransactionsByAddress_Call) Return

type API_GetScheduledTransactions_Call

type API_GetScheduledTransactions_Call struct {
	*mock.Call
}

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

func (*API_GetScheduledTransactions_Call) Return

Jump to

Keyboard shortcuts

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