Documentation ¶
Overview ¶
Package mock_repository is a generated GoMock package.
Index ¶
- type MockIRepository
- func (m *MockIRepository) AddTransaction(tx *gorm.DB, sender, receiver model.User, amount, fee float64) error
- func (m *MockIRepository) EXPECT() *MockIRepositoryMockRecorder
- func (m *MockIRepository) GetByAccountNumber(accountNumber string) (model.User, error)
- func (m *MockIRepository) GetDatabase() config.IMysqlInstance
- func (m *MockIRepository) Login(request request.LoginRequest) (model.User, error)
- func (m *MockIRepository) Register(request request.RegisterRequest, accountNumber string) (model.User, error)
- func (m *MockIRepository) UpdateBalance(tx *gorm.DB, accountNumber string, amount float64) error
- type MockIRepositoryMockRecorder
- func (mr *MockIRepositoryMockRecorder) AddTransaction(tx, sender, receiver, amount, fee any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) GetByAccountNumber(accountNumber any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) GetDatabase() *gomock.Call
- func (mr *MockIRepositoryMockRecorder) Login(request any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) Register(request, accountNumber any) *gomock.Call
- func (mr *MockIRepositoryMockRecorder) UpdateBalance(tx, accountNumber, amount any) *gomock.Call
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 ¶
func (m *MockIRepository) EXPECT() *MockIRepositoryMockRecorder
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 ¶
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.