mocks

package
v0.0.0-...-767f277 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExchangeRepository

type ExchangeRepository struct {
	mock.Mock
}

ExchangeRepository is an autogenerated mock type for the ExchangeRepository type

func NewExchangeRepository

func NewExchangeRepository(t mockConstructorTestingTNewExchangeRepository) *ExchangeRepository

NewExchangeRepository creates a new instance of ExchangeRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExchangeRepository) GetByCurrency

func (_m *ExchangeRepository) GetByCurrency(ctx context.Context, currency string) (entity.Exchange, error)

GetByCurrency provides a mock function with given fields: ctx, currency

type TransactionRepository

type TransactionRepository struct {
	mock.Mock
}

TransactionRepository is an autogenerated mock type for the TransactionRepository type

func NewTransactionRepository

func NewTransactionRepository(t mockConstructorTestingTNewTransactionRepository) *TransactionRepository

NewTransactionRepository creates a new instance of TransactionRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TransactionRepository) GetHistory

func (_m *TransactionRepository) GetHistory(ctx context.Context) ([]entity.Transaction, error)

GetHistory provides a mock function with given fields: ctx

func (*TransactionRepository) Store

Store provides a mock function with given fields: ctx, t

type TransactionUseCase

type TransactionUseCase struct {
	mock.Mock
}

TransactionUseCase is an autogenerated mock type for the TransactionUseCase type

func NewTransactionUseCase

func NewTransactionUseCase(t mockConstructorTestingTNewTransactionUseCase) *TransactionUseCase

NewTransactionUseCase creates a new instance of TransactionUseCase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TransactionUseCase) History

func (_m *TransactionUseCase) History(ctx context.Context) ([]entity.Transaction, error)

History provides a mock function with given fields: ctx

func (*TransactionUseCase) Post

Post provides a mock function with given fields: ctx, t

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the UserRepository type

func NewUserRepository

func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository

NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UserRepository) Store

func (_m *UserRepository) Store(ctx context.Context, u entity.User) error

Store provides a mock function with given fields: ctx, u

func (*UserRepository) Update

func (_m *UserRepository) Update(ctx context.Context, u entity.User) error

Update provides a mock function with given fields: ctx, u

type UserUseCase

type UserUseCase struct {
	mock.Mock
}

UserUseCase is an autogenerated mock type for the UserUseCase type

func NewUserUseCase

func NewUserUseCase(t mockConstructorTestingTNewUserUseCase) *UserUseCase

NewUserUseCase creates a new instance of UserUseCase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UserUseCase) Store

func (_m *UserUseCase) Store(ctx context.Context, u entity.User) error

Store provides a mock function with given fields: ctx, u

type WalletRepository

type WalletRepository struct {
	mock.Mock
}

WalletRepository is an autogenerated mock type for the WalletRepository type

func NewWalletRepository

func NewWalletRepository(t mockConstructorTestingTNewWalletRepository) *WalletRepository

NewWalletRepository creates a new instance of WalletRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WalletRepository) Get

func (_m *WalletRepository) Get(ctx context.Context, id int64) (entity.Wallet, error)

Get provides a mock function with given fields: ctx, id

func (*WalletRepository) GetWalletsByUser

func (_m *WalletRepository) GetWalletsByUser(ctx context.Context, id int64) ([]entity.Wallet, error)

GetWalletsByUser provides a mock function with given fields: ctx, id

func (*WalletRepository) Store

func (_m *WalletRepository) Store(ctx context.Context, w entity.Wallet) error

Store provides a mock function with given fields: ctx, w

func (*WalletRepository) Update

func (_m *WalletRepository) Update(ctx context.Context, w entity.Wallet) error

Update provides a mock function with given fields: ctx, w

type WalletUseCase

type WalletUseCase struct {
	mock.Mock
}

WalletUseCase is an autogenerated mock type for the WalletUseCase type

func NewWalletUseCase

func NewWalletUseCase(t mockConstructorTestingTNewWalletUseCase) *WalletUseCase

NewWalletUseCase creates a new instance of WalletUseCase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WalletUseCase) GetWalletsByUser

func (_m *WalletUseCase) GetWalletsByUser(ctx context.Context, id int64) ([]entity.Wallet, error)

GetWalletsByUser provides a mock function with given fields: ctx, id

func (*WalletUseCase) Store

func (_m *WalletUseCase) Store(ctx context.Context, w entity.Wallet) error

Store provides a mock function with given fields: ctx, w

Jump to

Keyboard shortcuts

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