mocks

package
v0.0.0-...-c846bbc Latest Latest
Warning

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

Go to latest
Published: Nov 28, 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 MockDistributionAccountResolver

type MockDistributionAccountResolver struct {
	mock.Mock
}

MockDistributionAccountResolver is an autogenerated mock type for the DistributionAccountResolver type

func NewMockDistributionAccountResolver

func NewMockDistributionAccountResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDistributionAccountResolver

NewMockDistributionAccountResolver creates a new instance of MockDistributionAccountResolver. 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 (*MockDistributionAccountResolver) DistributionAccount

func (_m *MockDistributionAccountResolver) DistributionAccount(ctx context.Context, tenantID string) (schema.TransactionAccount, error)

DistributionAccount provides a mock function with given fields: ctx, tenantID

func (*MockDistributionAccountResolver) DistributionAccountFromContext

func (_m *MockDistributionAccountResolver) DistributionAccountFromContext(ctx context.Context) (schema.TransactionAccount, error)

DistributionAccountFromContext provides a mock function with given fields: ctx

func (*MockDistributionAccountResolver) HostDistributionAccount

func (_m *MockDistributionAccountResolver) HostDistributionAccount() schema.TransactionAccount

HostDistributionAccount provides a mock function with given fields:

type MockSignatureClient

type MockSignatureClient struct {
	mock.Mock
}

MockSignatureClient is an autogenerated mock type for the SignatureClient type

func NewMockSignatureClient

func NewMockSignatureClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSignatureClient

NewMockSignatureClient creates a new instance of MockSignatureClient. 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 (*MockSignatureClient) BatchInsert

func (_m *MockSignatureClient) BatchInsert(ctx context.Context, number int) ([]string, error)

BatchInsert provides a mock function with given fields: ctx, number

func (*MockSignatureClient) Delete

func (_m *MockSignatureClient) Delete(ctx context.Context, publicKey string) error

Delete provides a mock function with given fields: ctx, publicKey

func (*MockSignatureClient) NetworkPassphrase

func (_m *MockSignatureClient) NetworkPassphrase() string

NetworkPassphrase provides a mock function with given fields:

func (*MockSignatureClient) SignFeeBumpStellarTransaction

func (_m *MockSignatureClient) SignFeeBumpStellarTransaction(ctx context.Context, feeBumpStellarTx *txnbuild.FeeBumpTransaction, stellarAccounts ...string) (*txnbuild.FeeBumpTransaction, error)

SignFeeBumpStellarTransaction provides a mock function with given fields: ctx, feeBumpStellarTx, stellarAccounts

func (*MockSignatureClient) SignStellarTransaction

func (_m *MockSignatureClient) SignStellarTransaction(ctx context.Context, stellarTx *txnbuild.Transaction, stellarAccounts ...string) (*txnbuild.Transaction, error)

SignStellarTransaction provides a mock function with given fields: ctx, stellarTx, stellarAccounts

type MockSignerRouter

type MockSignerRouter struct {
	mock.Mock
}

MockSignerRouter is an autogenerated mock type for the SignerRouter type

func NewMockSignerRouter

func NewMockSignerRouter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSignerRouter

NewMockSignerRouter creates a new instance of MockSignerRouter. 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 (*MockSignerRouter) BatchInsert

func (_m *MockSignerRouter) BatchInsert(ctx context.Context, accountType schema.AccountType, number int) ([]schema.TransactionAccount, error)

BatchInsert provides a mock function with given fields: ctx, accountType, number

func (*MockSignerRouter) Delete

func (_m *MockSignerRouter) Delete(ctx context.Context, stellarAccount schema.TransactionAccount) error

Delete provides a mock function with given fields: ctx, stellarAccount

func (*MockSignerRouter) NetworkPassphrase

func (_m *MockSignerRouter) NetworkPassphrase() string

NetworkPassphrase provides a mock function with given fields:

func (*MockSignerRouter) SignFeeBumpStellarTransaction

func (_m *MockSignerRouter) SignFeeBumpStellarTransaction(ctx context.Context, feeBumpStellarTx *txnbuild.FeeBumpTransaction, stellarAccounts ...schema.TransactionAccount) (*txnbuild.FeeBumpTransaction, error)

SignFeeBumpStellarTransaction provides a mock function with given fields: ctx, feeBumpStellarTx, stellarAccounts

func (*MockSignerRouter) SignStellarTransaction

func (_m *MockSignerRouter) SignStellarTransaction(ctx context.Context, stellarTx *txnbuild.Transaction, stellarAccounts ...schema.TransactionAccount) (*txnbuild.Transaction, error)

SignStellarTransaction provides a mock function with given fields: ctx, stellarTx, stellarAccounts

func (*MockSignerRouter) SupportedAccountTypes

func (_m *MockSignerRouter) SupportedAccountTypes() []schema.AccountType

SupportedAccountTypes provides a mock function with given fields:

Jump to

Keyboard shortcuts

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