mocks

package
v0.0.0-...-db2bfc3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	mock.Mock
}

Config is an autogenerated mock type for the config type

func NewConfig

func NewConfig(t interface {
	mock.TestingT
	Cleanup(func())
}) *Config

NewConfig creates a new instance of Config. 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 (*Config) GetStorageSalt

func (_m *Config) GetStorageSalt() string

GetStorageSalt provides a mock function with given fields:

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

NewStorage creates a new instance of Storage. 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 (*Storage) AddOrder

func (_m *Storage) AddOrder(ctx context.Context, order entity.Order, user entity.User) error

AddOrder provides a mock function with given fields: ctx, order, user

func (*Storage) GetAllOrders

func (_m *Storage) GetAllOrders(ctx context.Context, user entity.User) ([]entity.Order, error)

GetAllOrders provides a mock function with given fields: ctx, user

func (*Storage) GetBalance

func (_m *Storage) GetBalance(ctx context.Context, user entity.User) (entity.Balance, error)

GetBalance provides a mock function with given fields: ctx, user

func (*Storage) GetUser

func (_m *Storage) GetUser(ctx context.Context, userFromReq entity.User) (entity.User, error)

GetUser provides a mock function with given fields: ctx, userFromReq

func (*Storage) UserLogin

func (_m *Storage) UserLogin(ctx context.Context, user entity.User) error

UserLogin provides a mock function with given fields: ctx, user

func (*Storage) UserRegister

func (_m *Storage) UserRegister(ctx context.Context, user entity.User) (int64, error)

UserRegister provides a mock function with given fields: ctx, user

func (*Storage) WithdrawBalance

func (_m *Storage) WithdrawBalance(ctx context.Context, balance entity.BalanceUpdate, user entity.User) error

WithdrawBalance provides a mock function with given fields: ctx, balance, user

func (*Storage) Withdrawals

func (_m *Storage) Withdrawals(ctx context.Context, user entity.User) ([]entity.BalanceUpdate, error)

Withdrawals provides a mock function with given fields: ctx, user

Jump to

Keyboard shortcuts

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