Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockWalletRepository
- func (m *MockWalletRepository) CreateWallet(wallet *entity.Wallet) (*entity.Wallet, error)
- func (m *MockWalletRepository) DeleteWallet(id uint64) error
- func (m *MockWalletRepository) EXPECT() *MockWalletRepositoryMockRecorder
- func (m *MockWalletRepository) ExistsWithName(userId uint64, name string) bool
- func (m *MockWalletRepository) GetWalletById(id uint64) (*entity.Wallet, error)
- func (m *MockWalletRepository) GetWalletsByUserId(userId uint64) ([]entity.Wallet, error)
- func (m *MockWalletRepository) UpdateWallet(wallet *entity.Wallet) (*entity.Wallet, error)
- func (m *MockWalletRepository) WalletBelongsToUser(id, userId uint64) bool
- type MockWalletRepositoryMockRecorder
- func (mr *MockWalletRepositoryMockRecorder) CreateWallet(wallet any) *gomock.Call
- func (mr *MockWalletRepositoryMockRecorder) DeleteWallet(id any) *gomock.Call
- func (mr *MockWalletRepositoryMockRecorder) ExistsWithName(userId, name any) *gomock.Call
- func (mr *MockWalletRepositoryMockRecorder) GetWalletById(id any) *gomock.Call
- func (mr *MockWalletRepositoryMockRecorder) GetWalletsByUserId(userId any) *gomock.Call
- func (mr *MockWalletRepositoryMockRecorder) UpdateWallet(wallet any) *gomock.Call
- func (mr *MockWalletRepositoryMockRecorder) WalletBelongsToUser(id, userId any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWalletRepository ¶
type MockWalletRepository struct {
// contains filtered or unexported fields
}
MockWalletRepository is a mock of WalletRepository interface.
func NewMockWalletRepository ¶
func NewMockWalletRepository(ctrl *gomock.Controller) *MockWalletRepository
NewMockWalletRepository creates a new mock instance.
func (*MockWalletRepository) CreateWallet ¶
CreateWallet mocks base method.
func (*MockWalletRepository) DeleteWallet ¶
func (m *MockWalletRepository) DeleteWallet(id uint64) error
DeleteWallet mocks base method.
func (*MockWalletRepository) EXPECT ¶
func (m *MockWalletRepository) EXPECT() *MockWalletRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWalletRepository) ExistsWithName ¶
func (m *MockWalletRepository) ExistsWithName(userId uint64, name string) bool
ExistsWithName mocks base method.
func (*MockWalletRepository) GetWalletById ¶
func (m *MockWalletRepository) GetWalletById(id uint64) (*entity.Wallet, error)
GetWalletById mocks base method.
func (*MockWalletRepository) GetWalletsByUserId ¶
func (m *MockWalletRepository) GetWalletsByUserId(userId uint64) ([]entity.Wallet, error)
GetWalletsByUserId mocks base method.
func (*MockWalletRepository) UpdateWallet ¶
UpdateWallet mocks base method.
func (*MockWalletRepository) WalletBelongsToUser ¶
func (m *MockWalletRepository) WalletBelongsToUser(id, userId uint64) bool
WalletBelongsToUser mocks base method.
type MockWalletRepositoryMockRecorder ¶
type MockWalletRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockWalletRepositoryMockRecorder is the mock recorder for MockWalletRepository.
func (*MockWalletRepositoryMockRecorder) CreateWallet ¶
func (mr *MockWalletRepositoryMockRecorder) CreateWallet(wallet any) *gomock.Call
CreateWallet indicates an expected call of CreateWallet.
func (*MockWalletRepositoryMockRecorder) DeleteWallet ¶
func (mr *MockWalletRepositoryMockRecorder) DeleteWallet(id any) *gomock.Call
DeleteWallet indicates an expected call of DeleteWallet.
func (*MockWalletRepositoryMockRecorder) ExistsWithName ¶
func (mr *MockWalletRepositoryMockRecorder) ExistsWithName(userId, name any) *gomock.Call
ExistsWithName indicates an expected call of ExistsWithName.
func (*MockWalletRepositoryMockRecorder) GetWalletById ¶
func (mr *MockWalletRepositoryMockRecorder) GetWalletById(id any) *gomock.Call
GetWalletById indicates an expected call of GetWalletById.
func (*MockWalletRepositoryMockRecorder) GetWalletsByUserId ¶
func (mr *MockWalletRepositoryMockRecorder) GetWalletsByUserId(userId any) *gomock.Call
GetWalletsByUserId indicates an expected call of GetWalletsByUserId.
func (*MockWalletRepositoryMockRecorder) UpdateWallet ¶
func (mr *MockWalletRepositoryMockRecorder) UpdateWallet(wallet any) *gomock.Call
UpdateWallet indicates an expected call of UpdateWallet.
func (*MockWalletRepositoryMockRecorder) WalletBelongsToUser ¶
func (mr *MockWalletRepositoryMockRecorder) WalletBelongsToUser(id, userId any) *gomock.Call
WalletBelongsToUser indicates an expected call of WalletBelongsToUser.