mocks

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.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 FeeEstimatorAPI added in v1.8.2

type FeeEstimatorAPI struct {
	mock.Mock
}

FeeEstimatorAPI is an autogenerated mock type for the FeeEstimatorAPI type

func NewFeeEstimatorAPI added in v1.8.2

func NewFeeEstimatorAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *FeeEstimatorAPI

NewFeeEstimatorAPI creates a new instance of FeeEstimatorAPI. 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 (*FeeEstimatorAPI) EXPECT added in v1.10.0

func (*FeeEstimatorAPI) GetFeeEstimate added in v1.8.2

func (_m *FeeEstimatorAPI) GetFeeEstimate(ctx context.Context, protocol string, network string) ubiquity.ApiGetFeeEstimateRequest

GetFeeEstimate provides a mock function with given fields: ctx, protocol, network

func (*FeeEstimatorAPI) GetFeeEstimateExecute added in v1.8.2

GetFeeEstimateExecute provides a mock function with given fields: r

type FeeEstimatorAPI_Expecter added in v1.10.0

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

func (*FeeEstimatorAPI_Expecter) GetFeeEstimate added in v1.10.0

func (_e *FeeEstimatorAPI_Expecter) GetFeeEstimate(ctx interface{}, protocol interface{}, network interface{}) *FeeEstimatorAPI_GetFeeEstimate_Call

GetFeeEstimate is a helper method to define mock.On call

  • ctx context.Context
  • protocol string
  • network string

func (*FeeEstimatorAPI_Expecter) GetFeeEstimateExecute added in v1.10.0

func (_e *FeeEstimatorAPI_Expecter) GetFeeEstimateExecute(r interface{}) *FeeEstimatorAPI_GetFeeEstimateExecute_Call

GetFeeEstimateExecute is a helper method to define mock.On call

  • r ubiquity.ApiGetFeeEstimateRequest

type FeeEstimatorAPI_GetFeeEstimateExecute_Call added in v1.10.0

type FeeEstimatorAPI_GetFeeEstimateExecute_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorAPI_GetFeeEstimateExecute_Call) Return added in v1.10.0

func (*FeeEstimatorAPI_GetFeeEstimateExecute_Call) Run added in v1.10.0

func (*FeeEstimatorAPI_GetFeeEstimateExecute_Call) RunAndReturn added in v1.10.0

type FeeEstimatorAPI_GetFeeEstimate_Call added in v1.10.0

type FeeEstimatorAPI_GetFeeEstimate_Call struct {
	*mock.Call
}

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

func (*FeeEstimatorAPI_GetFeeEstimate_Call) Return added in v1.10.0

func (*FeeEstimatorAPI_GetFeeEstimate_Call) Run added in v1.10.0

func (*FeeEstimatorAPI_GetFeeEstimate_Call) RunAndReturn added in v1.10.0

type TransactionsAPI

type TransactionsAPI struct {
	mock.Mock
}

TransactionsAPI is an autogenerated mock type for the TransactionsAPI type

func NewTransactionsAPI added in v1.1.0

func NewTransactionsAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransactionsAPI

NewTransactionsAPI creates a new instance of TransactionsAPI. 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 (*TransactionsAPI) EXPECT added in v1.10.0

func (*TransactionsAPI) GetTxByHash added in v1.3.0

func (_m *TransactionsAPI) GetTxByHash(ctx context.Context, protocol string, network string, hash string) ubiquity.ApiGetTxByHashRequest

GetTxByHash provides a mock function with given fields: ctx, protocol, network, hash

func (*TransactionsAPI) GetTxByHashExecute added in v1.3.0

GetTxByHashExecute provides a mock function with given fields: r

func (*TransactionsAPI) GetTxConfirmations

func (_m *TransactionsAPI) GetTxConfirmations(ctx context.Context, protocol string, network string, hash string) ubiquity.ApiGetTxConfirmationsRequest

GetTxConfirmations provides a mock function with given fields: ctx, protocol, network, hash

func (*TransactionsAPI) GetTxConfirmationsExecute

GetTxConfirmationsExecute provides a mock function with given fields: r

func (*TransactionsAPI) GetTxOutputByHashAndIndex added in v1.3.0

func (_m *TransactionsAPI) GetTxOutputByHashAndIndex(ctx context.Context, protocol string, network string, hash string, index int32) ubiquity.ApiGetTxOutputByHashAndIndexRequest

GetTxOutputByHashAndIndex provides a mock function with given fields: ctx, protocol, network, hash, index

func (*TransactionsAPI) GetTxOutputByHashAndIndexExecute added in v1.3.0

func (_m *TransactionsAPI) GetTxOutputByHashAndIndexExecute(r ubiquity.ApiGetTxOutputByHashAndIndexRequest) (ubiquity.TxOutput, *http.Response, error)

GetTxOutputByHashAndIndexExecute provides a mock function with given fields: r

func (*TransactionsAPI) GetTxs

func (_m *TransactionsAPI) GetTxs(ctx context.Context, protocol string, network string) ubiquity.ApiGetTxsRequest

GetTxs provides a mock function with given fields: ctx, protocol, network

func (*TransactionsAPI) GetTxsByAddress added in v1.11.0

func (_m *TransactionsAPI) GetTxsByAddress(ctx context.Context, protocol string, network string, address string) ubiquity.ApiGetTxsByAddressRequest

GetTxsByAddress provides a mock function with given fields: ctx, protocol, network, address

func (*TransactionsAPI) GetTxsByAddressExecute added in v1.11.0

GetTxsByAddressExecute provides a mock function with given fields: r

func (*TransactionsAPI) GetTxsExecute

GetTxsExecute provides a mock function with given fields: r

func (*TransactionsAPI) GetUTXOByAccount added in v1.11.0

func (_m *TransactionsAPI) GetUTXOByAccount(ctx context.Context, protocol string, network string, address string) ubiquity.ApiGetUTXOByAccountRequest

GetUTXOByAccount provides a mock function with given fields: ctx, protocol, network, address

func (*TransactionsAPI) GetUTXOByAccountExecute added in v1.11.0

GetUTXOByAccountExecute provides a mock function with given fields: r

func (*TransactionsAPI) TxCreate added in v1.3.0

func (_m *TransactionsAPI) TxCreate(ctx context.Context, protocol string, network string) ubiquity.ApiTxCreateRequest

TxCreate provides a mock function with given fields: ctx, protocol, network

func (*TransactionsAPI) TxCreateExecute added in v1.3.0

TxCreateExecute provides a mock function with given fields: r

func (*TransactionsAPI) TxSend

func (_m *TransactionsAPI) TxSend(ctx context.Context, protocol string, network string) ubiquity.ApiTxSendRequest

TxSend provides a mock function with given fields: ctx, protocol, network

func (*TransactionsAPI) TxSendExecute

TxSendExecute provides a mock function with given fields: r

type TransactionsAPI_Expecter added in v1.10.0

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

func (*TransactionsAPI_Expecter) GetTxByHash added in v1.10.0

func (_e *TransactionsAPI_Expecter) GetTxByHash(ctx interface{}, protocol interface{}, network interface{}, hash interface{}) *TransactionsAPI_GetTxByHash_Call

GetTxByHash is a helper method to define mock.On call

  • ctx context.Context
  • protocol string
  • network string
  • hash string

func (*TransactionsAPI_Expecter) GetTxByHashExecute added in v1.10.0

func (_e *TransactionsAPI_Expecter) GetTxByHashExecute(r interface{}) *TransactionsAPI_GetTxByHashExecute_Call

GetTxByHashExecute is a helper method to define mock.On call

  • r ubiquity.ApiGetTxByHashRequest

func (*TransactionsAPI_Expecter) GetTxConfirmations added in v1.10.0

func (_e *TransactionsAPI_Expecter) GetTxConfirmations(ctx interface{}, protocol interface{}, network interface{}, hash interface{}) *TransactionsAPI_GetTxConfirmations_Call

GetTxConfirmations is a helper method to define mock.On call

  • ctx context.Context
  • protocol string
  • network string
  • hash string

func (*TransactionsAPI_Expecter) GetTxConfirmationsExecute added in v1.10.0

func (_e *TransactionsAPI_Expecter) GetTxConfirmationsExecute(r interface{}) *TransactionsAPI_GetTxConfirmationsExecute_Call

GetTxConfirmationsExecute is a helper method to define mock.On call

  • r ubiquity.ApiGetTxConfirmationsRequest

func (*TransactionsAPI_Expecter) GetTxOutputByHashAndIndex added in v1.10.0

func (_e *TransactionsAPI_Expecter) GetTxOutputByHashAndIndex(ctx interface{}, protocol interface{}, network interface{}, hash interface{}, index interface{}) *TransactionsAPI_GetTxOutputByHashAndIndex_Call

GetTxOutputByHashAndIndex is a helper method to define mock.On call

  • ctx context.Context
  • protocol string
  • network string
  • hash string
  • index int32

func (*TransactionsAPI_Expecter) GetTxOutputByHashAndIndexExecute added in v1.10.0

func (_e *TransactionsAPI_Expecter) GetTxOutputByHashAndIndexExecute(r interface{}) *TransactionsAPI_GetTxOutputByHashAndIndexExecute_Call

GetTxOutputByHashAndIndexExecute is a helper method to define mock.On call

  • r ubiquity.ApiGetTxOutputByHashAndIndexRequest

func (*TransactionsAPI_Expecter) GetTxs added in v1.10.0

func (_e *TransactionsAPI_Expecter) GetTxs(ctx interface{}, protocol interface{}, network interface{}) *TransactionsAPI_GetTxs_Call

GetTxs is a helper method to define mock.On call

  • ctx context.Context
  • protocol string
  • network string

func (*TransactionsAPI_Expecter) GetTxsByAddress added in v1.11.0

func (_e *TransactionsAPI_Expecter) GetTxsByAddress(ctx interface{}, protocol interface{}, network interface{}, address interface{}) *TransactionsAPI_GetTxsByAddress_Call

GetTxsByAddress is a helper method to define mock.On call

  • ctx context.Context
  • protocol string
  • network string
  • address string

func (*TransactionsAPI_Expecter) GetTxsByAddressExecute added in v1.11.0

func (_e *TransactionsAPI_Expecter) GetTxsByAddressExecute(r interface{}) *TransactionsAPI_GetTxsByAddressExecute_Call

GetTxsByAddressExecute is a helper method to define mock.On call

  • r ubiquity.ApiGetTxsByAddressRequest

func (*TransactionsAPI_Expecter) GetTxsExecute added in v1.10.0

func (_e *TransactionsAPI_Expecter) GetTxsExecute(r interface{}) *TransactionsAPI_GetTxsExecute_Call

GetTxsExecute is a helper method to define mock.On call

  • r ubiquity.ApiGetTxsRequest

func (*TransactionsAPI_Expecter) GetUTXOByAccount added in v1.11.0

func (_e *TransactionsAPI_Expecter) GetUTXOByAccount(ctx interface{}, protocol interface{}, network interface{}, address interface{}) *TransactionsAPI_GetUTXOByAccount_Call

GetUTXOByAccount is a helper method to define mock.On call

  • ctx context.Context
  • protocol string
  • network string
  • address string

func (*TransactionsAPI_Expecter) GetUTXOByAccountExecute added in v1.11.0

func (_e *TransactionsAPI_Expecter) GetUTXOByAccountExecute(r interface{}) *TransactionsAPI_GetUTXOByAccountExecute_Call

GetUTXOByAccountExecute is a helper method to define mock.On call

  • r ubiquity.ApiGetUTXOByAccountRequest

func (*TransactionsAPI_Expecter) TxCreate added in v1.10.0

func (_e *TransactionsAPI_Expecter) TxCreate(ctx interface{}, protocol interface{}, network interface{}) *TransactionsAPI_TxCreate_Call

TxCreate is a helper method to define mock.On call

  • ctx context.Context
  • protocol string
  • network string

func (*TransactionsAPI_Expecter) TxCreateExecute added in v1.10.0

func (_e *TransactionsAPI_Expecter) TxCreateExecute(r interface{}) *TransactionsAPI_TxCreateExecute_Call

TxCreateExecute is a helper method to define mock.On call

  • r ubiquity.ApiTxCreateRequest

func (*TransactionsAPI_Expecter) TxSend added in v1.10.0

func (_e *TransactionsAPI_Expecter) TxSend(ctx interface{}, protocol interface{}, network interface{}) *TransactionsAPI_TxSend_Call

TxSend is a helper method to define mock.On call

  • ctx context.Context
  • protocol string
  • network string

func (*TransactionsAPI_Expecter) TxSendExecute added in v1.10.0

func (_e *TransactionsAPI_Expecter) TxSendExecute(r interface{}) *TransactionsAPI_TxSendExecute_Call

TxSendExecute is a helper method to define mock.On call

  • r ubiquity.ApiTxSendRequest

type TransactionsAPI_GetTxByHashExecute_Call added in v1.10.0

type TransactionsAPI_GetTxByHashExecute_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxByHashExecute_Call) Return added in v1.10.0

func (*TransactionsAPI_GetTxByHashExecute_Call) Run added in v1.10.0

func (*TransactionsAPI_GetTxByHashExecute_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_GetTxByHash_Call added in v1.10.0

type TransactionsAPI_GetTxByHash_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxByHash_Call) Return added in v1.10.0

func (*TransactionsAPI_GetTxByHash_Call) Run added in v1.10.0

func (_c *TransactionsAPI_GetTxByHash_Call) Run(run func(ctx context.Context, protocol string, network string, hash string)) *TransactionsAPI_GetTxByHash_Call

func (*TransactionsAPI_GetTxByHash_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_GetTxConfirmationsExecute_Call added in v1.10.0

type TransactionsAPI_GetTxConfirmationsExecute_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxConfirmationsExecute_Call) Return added in v1.10.0

func (*TransactionsAPI_GetTxConfirmationsExecute_Call) Run added in v1.10.0

func (*TransactionsAPI_GetTxConfirmationsExecute_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_GetTxConfirmations_Call added in v1.10.0

type TransactionsAPI_GetTxConfirmations_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxConfirmations_Call) Return added in v1.10.0

func (*TransactionsAPI_GetTxConfirmations_Call) Run added in v1.10.0

func (*TransactionsAPI_GetTxConfirmations_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_GetTxOutputByHashAndIndexExecute_Call added in v1.10.0

type TransactionsAPI_GetTxOutputByHashAndIndexExecute_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxOutputByHashAndIndexExecute_Call) Return added in v1.10.0

func (*TransactionsAPI_GetTxOutputByHashAndIndexExecute_Call) Run added in v1.10.0

func (*TransactionsAPI_GetTxOutputByHashAndIndexExecute_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_GetTxOutputByHashAndIndex_Call added in v1.10.0

type TransactionsAPI_GetTxOutputByHashAndIndex_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxOutputByHashAndIndex_Call) Return added in v1.10.0

func (*TransactionsAPI_GetTxOutputByHashAndIndex_Call) Run added in v1.10.0

func (*TransactionsAPI_GetTxOutputByHashAndIndex_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_GetTxsByAddressExecute_Call added in v1.11.0

type TransactionsAPI_GetTxsByAddressExecute_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxsByAddressExecute_Call) Return added in v1.11.0

func (*TransactionsAPI_GetTxsByAddressExecute_Call) Run added in v1.11.0

func (*TransactionsAPI_GetTxsByAddressExecute_Call) RunAndReturn added in v1.11.0

type TransactionsAPI_GetTxsByAddress_Call added in v1.11.0

type TransactionsAPI_GetTxsByAddress_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxsByAddress_Call) Return added in v1.11.0

func (*TransactionsAPI_GetTxsByAddress_Call) Run added in v1.11.0

func (*TransactionsAPI_GetTxsByAddress_Call) RunAndReturn added in v1.11.0

type TransactionsAPI_GetTxsExecute_Call added in v1.10.0

type TransactionsAPI_GetTxsExecute_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxsExecute_Call) Return added in v1.10.0

func (*TransactionsAPI_GetTxsExecute_Call) Run added in v1.10.0

func (*TransactionsAPI_GetTxsExecute_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_GetTxs_Call added in v1.10.0

type TransactionsAPI_GetTxs_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetTxs_Call) Return added in v1.10.0

func (*TransactionsAPI_GetTxs_Call) Run added in v1.10.0

func (_c *TransactionsAPI_GetTxs_Call) Run(run func(ctx context.Context, protocol string, network string)) *TransactionsAPI_GetTxs_Call

func (*TransactionsAPI_GetTxs_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_GetUTXOByAccountExecute_Call added in v1.11.0

type TransactionsAPI_GetUTXOByAccountExecute_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetUTXOByAccountExecute_Call) Return added in v1.11.0

func (*TransactionsAPI_GetUTXOByAccountExecute_Call) Run added in v1.11.0

func (*TransactionsAPI_GetUTXOByAccountExecute_Call) RunAndReturn added in v1.11.0

type TransactionsAPI_GetUTXOByAccount_Call added in v1.11.0

type TransactionsAPI_GetUTXOByAccount_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_GetUTXOByAccount_Call) Return added in v1.11.0

func (*TransactionsAPI_GetUTXOByAccount_Call) Run added in v1.11.0

func (*TransactionsAPI_GetUTXOByAccount_Call) RunAndReturn added in v1.11.0

type TransactionsAPI_TxCreateExecute_Call added in v1.10.0

type TransactionsAPI_TxCreateExecute_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_TxCreateExecute_Call) Return added in v1.10.0

func (*TransactionsAPI_TxCreateExecute_Call) Run added in v1.10.0

func (*TransactionsAPI_TxCreateExecute_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_TxCreate_Call added in v1.10.0

type TransactionsAPI_TxCreate_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_TxCreate_Call) Return added in v1.10.0

func (*TransactionsAPI_TxCreate_Call) Run added in v1.10.0

func (_c *TransactionsAPI_TxCreate_Call) Run(run func(ctx context.Context, protocol string, network string)) *TransactionsAPI_TxCreate_Call

func (*TransactionsAPI_TxCreate_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_TxSendExecute_Call added in v1.10.0

type TransactionsAPI_TxSendExecute_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_TxSendExecute_Call) Return added in v1.10.0

func (*TransactionsAPI_TxSendExecute_Call) Run added in v1.10.0

func (*TransactionsAPI_TxSendExecute_Call) RunAndReturn added in v1.10.0

type TransactionsAPI_TxSend_Call added in v1.10.0

type TransactionsAPI_TxSend_Call struct {
	*mock.Call
}

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

func (*TransactionsAPI_TxSend_Call) Return added in v1.10.0

func (*TransactionsAPI_TxSend_Call) Run added in v1.10.0

func (_c *TransactionsAPI_TxSend_Call) Run(run func(ctx context.Context, protocol string, network string)) *TransactionsAPI_TxSend_Call

func (*TransactionsAPI_TxSend_Call) RunAndReturn added in v1.10.0

Jump to

Keyboard shortcuts

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