mock_repository

package
v0.0.0-...-b1d2da9 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIRepository

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

MockIRepository is a mock of IRepository interface.

func NewMockIRepository

func NewMockIRepository(ctrl *gomock.Controller) *MockIRepository

NewMockIRepository creates a new mock instance.

func (*MockIRepository) AddTransaction

func (m *MockIRepository) AddTransaction(tx *gorm.DB, sender, receiver model.User, amount, fee float64) error

AddTransaction mocks base method.

func (*MockIRepository) EXPECT

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

func (*MockIRepository) GetByAccountNumber

func (m *MockIRepository) GetByAccountNumber(accountNumber string) (model.User, error)

GetByAccountNumber mocks base method.

func (*MockIRepository) GetDatabase

func (m *MockIRepository) GetDatabase() config.IMysqlInstance

GetDatabase mocks base method.

func (*MockIRepository) Login

func (m *MockIRepository) Login(request request.LoginRequest) (model.User, error)

Login mocks base method.

func (*MockIRepository) Register

func (m *MockIRepository) Register(request request.RegisterRequest, accountNumber string) (model.User, error)

Register mocks base method.

func (*MockIRepository) UpdateBalance

func (m *MockIRepository) UpdateBalance(tx *gorm.DB, accountNumber string, amount float64) error

UpdateBalance mocks base method.

type MockIRepositoryMockRecorder

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

MockIRepositoryMockRecorder is the mock recorder for MockIRepository.

func (*MockIRepositoryMockRecorder) AddTransaction

func (mr *MockIRepositoryMockRecorder) AddTransaction(tx, sender, receiver, amount, fee any) *gomock.Call

AddTransaction indicates an expected call of AddTransaction.

func (*MockIRepositoryMockRecorder) GetByAccountNumber

func (mr *MockIRepositoryMockRecorder) GetByAccountNumber(accountNumber any) *gomock.Call

GetByAccountNumber indicates an expected call of GetByAccountNumber.

func (*MockIRepositoryMockRecorder) GetDatabase

func (mr *MockIRepositoryMockRecorder) GetDatabase() *gomock.Call

GetDatabase indicates an expected call of GetDatabase.

func (*MockIRepositoryMockRecorder) Login

func (mr *MockIRepositoryMockRecorder) Login(request any) *gomock.Call

Login indicates an expected call of Login.

func (*MockIRepositoryMockRecorder) Register

func (mr *MockIRepositoryMockRecorder) Register(request, accountNumber any) *gomock.Call

Register indicates an expected call of Register.

func (*MockIRepositoryMockRecorder) UpdateBalance

func (mr *MockIRepositoryMockRecorder) UpdateBalance(tx, accountNumber, amount any) *gomock.Call

UpdateBalance indicates an expected call of UpdateBalance.

Jump to

Keyboard shortcuts

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