mock

package
v0.0.0-...-83f4222 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRedisStorage

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

MockRedisStorage is a mock of RedisStorage interface.

func NewMockRedisStorage

func NewMockRedisStorage(ctrl *gomock.Controller) *MockRedisStorage

NewMockRedisStorage creates a new mock instance.

func (*MockRedisStorage) CreateSession

func (m *MockRedisStorage) CreateSession(ctx context.Context, session *types.Session, expire int) (string, error)

CreateSession mocks base method.

func (*MockRedisStorage) DeleteSession

func (m *MockRedisStorage) DeleteSession(ctx context.Context, refreshToken string) error

DeleteSession mocks base method.

func (*MockRedisStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRedisStorage) GetUserID

func (m *MockRedisStorage) GetUserID(ctx context.Context, refreshToken string) (uuid.UUID, error)

GetUserID mocks base method.

type MockRedisStorageMockRecorder

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

MockRedisStorageMockRecorder is the mock recorder for MockRedisStorage.

func (*MockRedisStorageMockRecorder) CreateSession

func (mr *MockRedisStorageMockRecorder) CreateSession(ctx, session, expire interface{}) *gomock.Call

CreateSession indicates an expected call of CreateSession.

func (*MockRedisStorageMockRecorder) DeleteSession

func (mr *MockRedisStorageMockRecorder) DeleteSession(ctx, refreshToken interface{}) *gomock.Call

DeleteSession indicates an expected call of DeleteSession.

func (*MockRedisStorageMockRecorder) GetUserID

func (mr *MockRedisStorageMockRecorder) GetUserID(ctx, refreshToken interface{}) *gomock.Call

GetUserID indicates an expected call of GetUserID.

type MockStorage

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

MockStorage is a mock of Storage interface.

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) CreateAccount

func (m *MockStorage) CreateAccount(ctx context.Context, reqAcc *types.RequestCreate) (*types.Account, error)

CreateAccount mocks base method.

func (*MockStorage) DeleteAccount

func (m *MockStorage) DeleteAccount(ctx context.Context, id uuid.UUID) error

DeleteAccount mocks base method.

func (*MockStorage) DepositAccount

func (m *MockStorage) DepositAccount(ctx context.Context, reqDep *types.RequestDeposit) (*types.Account, error)

DepositAccount mocks base method.

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStorage) GetAccount

func (m *MockStorage) GetAccount(ctx context.Context) ([]*types.Account, error)

GetAccount mocks base method.

func (*MockStorage) GetAccountByCard

func (m *MockStorage) GetAccountByCard(ctx context.Context, card string) (*types.Account, error)

GetAccountByCard mocks base method.

func (*MockStorage) GetAccountByID

func (m *MockStorage) GetAccountByID(ctx context.Context, id uuid.UUID) (*types.Account, error)

GetAccountByID mocks base method.

func (*MockStorage) GetAccountStatement

func (m *MockStorage) GetAccountStatement(ctx context.Context, id uuid.UUID) ([]string, error)

GetAccountStatement mocks base method.

func (*MockStorage) GetPaymentByID

func (m *MockStorage) GetPaymentByID(ctx context.Context, id uuid.UUID) (*types.Payment, error)

GetPaymentByID mocks base method.

func (*MockStorage) SaveBalance

func (m *MockStorage) SaveBalance(ctx context.Context, tx *sql.Tx, account *types.Account, balance, bmoney uint64) (*types.Account, error)

SaveBalance mocks base method.

func (*MockStorage) SavePayment

func (m *MockStorage) SavePayment(ctx context.Context, tx *sql.Tx, payment *types.Payment) (*types.Payment, error)

SavePayment mocks base method.

func (*MockStorage) UpdateAccount

func (m *MockStorage) UpdateAccount(ctx context.Context, reqUp *types.RequestUpdate, id uuid.UUID) (*types.Account, error)

UpdateAccount mocks base method.

func (*MockStorage) UpdateStatement

func (m *MockStorage) UpdateStatement(ctx context.Context, tx *sql.Tx, id, paymentId uuid.UUID) (*types.Account, error)

UpdateStatement mocks base method.

type MockStorageMockRecorder

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) CreateAccount

func (mr *MockStorageMockRecorder) CreateAccount(ctx, reqAcc interface{}) *gomock.Call

CreateAccount indicates an expected call of CreateAccount.

func (*MockStorageMockRecorder) DeleteAccount

func (mr *MockStorageMockRecorder) DeleteAccount(ctx, id interface{}) *gomock.Call

DeleteAccount indicates an expected call of DeleteAccount.

func (*MockStorageMockRecorder) DepositAccount

func (mr *MockStorageMockRecorder) DepositAccount(ctx, reqDep interface{}) *gomock.Call

DepositAccount indicates an expected call of DepositAccount.

func (*MockStorageMockRecorder) GetAccount

func (mr *MockStorageMockRecorder) GetAccount(ctx interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockStorageMockRecorder) GetAccountByCard

func (mr *MockStorageMockRecorder) GetAccountByCard(ctx, card interface{}) *gomock.Call

GetAccountByCard indicates an expected call of GetAccountByCard.

func (*MockStorageMockRecorder) GetAccountByID

func (mr *MockStorageMockRecorder) GetAccountByID(ctx, id interface{}) *gomock.Call

GetAccountByID indicates an expected call of GetAccountByID.

func (*MockStorageMockRecorder) GetAccountStatement

func (mr *MockStorageMockRecorder) GetAccountStatement(ctx, id interface{}) *gomock.Call

GetAccountStatement indicates an expected call of GetAccountStatement.

func (*MockStorageMockRecorder) GetPaymentByID

func (mr *MockStorageMockRecorder) GetPaymentByID(ctx, id interface{}) *gomock.Call

GetPaymentByID indicates an expected call of GetPaymentByID.

func (*MockStorageMockRecorder) SaveBalance

func (mr *MockStorageMockRecorder) SaveBalance(ctx, tx, account, balance, bmoney interface{}) *gomock.Call

SaveBalance indicates an expected call of SaveBalance.

func (*MockStorageMockRecorder) SavePayment

func (mr *MockStorageMockRecorder) SavePayment(ctx, tx, payment interface{}) *gomock.Call

SavePayment indicates an expected call of SavePayment.

func (*MockStorageMockRecorder) UpdateAccount

func (mr *MockStorageMockRecorder) UpdateAccount(ctx, reqUp, id interface{}) *gomock.Call

UpdateAccount indicates an expected call of UpdateAccount.

func (*MockStorageMockRecorder) UpdateStatement

func (mr *MockStorageMockRecorder) UpdateStatement(ctx, tx, id, paymentId interface{}) *gomock.Call

UpdateStatement indicates an expected call of UpdateStatement.

Jump to

Keyboard shortcuts

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