mock

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessingProxyMock

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

ProcessingProxyMock proxies some methods of processing.Service and mocks others

func NewProcessingProxyMock

func NewProcessingProxyMock(t *testing.T, service *processing.Service) *ProcessingProxyMock

func (*ProcessingProxyMock) BatchCheckIncomingTransactions

func (m *ProcessingProxyMock) BatchCheckIncomingTransactions(_ context.Context, transactionIDs []int64) error

func (*ProcessingProxyMock) BatchCheckInternalTransfers

func (m *ProcessingProxyMock) BatchCheckInternalTransfers(_ context.Context, transactionIDs []int64) error

func (*ProcessingProxyMock) BatchCheckWithdrawals

func (m *ProcessingProxyMock) BatchCheckWithdrawals(_ context.Context, transactionIDs []int64) error

func (*ProcessingProxyMock) BatchCreateInternalTransfers

func (m *ProcessingProxyMock) BatchCreateInternalTransfers(
	_ context.Context,
	balances []*wallet.Balance,
) (*processing.TransferResult, error)

func (*ProcessingProxyMock) BatchCreateWithdrawals

func (m *ProcessingProxyMock) BatchCreateWithdrawals(
	_ context.Context,
	paymentIDs []int64,
) (*processing.TransferResult, error)

func (*ProcessingProxyMock) BatchExpirePayments

func (m *ProcessingProxyMock) BatchExpirePayments(_ context.Context, paymentIDs []int64) error

func (*ProcessingProxyMock) EnsureOutboundWallet

func (m *ProcessingProxyMock) EnsureOutboundWallet(ctx context.Context, chain money.Blockchain) (*wallet.Wallet, bool, error)

func (*ProcessingProxyMock) SetupBatchCheckIncomingTransactions

func (m *ProcessingProxyMock) SetupBatchCheckIncomingTransactions(transactionIDs []int64, err error)

func (*ProcessingProxyMock) SetupBatchCheckInternalTransfers

func (m *ProcessingProxyMock) SetupBatchCheckInternalTransfers(transactionIDs []int64, err error)

func (*ProcessingProxyMock) SetupBatchCheckWithdrawals

func (m *ProcessingProxyMock) SetupBatchCheckWithdrawals(transactionIDs []int64, err error)

func (*ProcessingProxyMock) SetupBatchCreateInternalTransfers

func (m *ProcessingProxyMock) SetupBatchCreateInternalTransfers(
	balances []*wallet.Balance,
	result *processing.TransferResult,
	err error,
)

func (*ProcessingProxyMock) SetupBatchCreateWithdrawals

func (m *ProcessingProxyMock) SetupBatchCreateWithdrawals(
	paymentIDs []int64,
	result *processing.TransferResult,
	err error,
)

func (*ProcessingProxyMock) SetupBatchExpirePayments

func (m *ProcessingProxyMock) SetupBatchExpirePayments(paymentsIDs []int64, err error)

Jump to

Keyboard shortcuts

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