Documentation
¶
Overview ¶
Package mock_repositories is a generated GoMock package.
Index ¶
- type MockAuth
- func (m *MockAuth) EXPECT() *MockAuthMockRecorder
- func (m *MockAuth) GetPasswordAndID(ctx context.Context, email string) (string, string, error)
- func (m *MockAuth) Login(ctx context.Context, data models.LoginReq) (models.AuthResponse, error)
- func (m *MockAuth) Refresh(ctx context.Context, uuid, token string) (models.AuthResponse, error)
- func (m *MockAuth) Register(ctx context.Context, data entity.User) (models.AuthResponse, error)
- type MockAuthMockRecorder
- func (mr *MockAuthMockRecorder) GetPasswordAndID(ctx, email interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) Login(ctx, data interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) Refresh(ctx, uuid, token interface{}) *gomock.Call
- func (mr *MockAuthMockRecorder) Register(ctx, data interface{}) *gomock.Call
- type MockCarManagement
- func (m *MockCarManagement) AddCar(ctx context.Context, car entity.Car) error
- func (m *MockCarManagement) EXPECT() *MockCarManagementMockRecorder
- func (m *MockCarManagement) EditCar(ctx context.Context, data models.CarReq, carID string) error
- func (m *MockCarManagement) RemoveCar(ctx context.Context, carID string) error
- type MockCarManagementMockRecorder
- type MockNotifierRepo
- type MockNotifierRepoMockRecorder
- type MockRent
- func (m *MockRent) EXPECT() *MockRentMockRecorder
- func (m *MockRent) FinishRent(ctx context.Context, userID, rentID string) (entity.Bill, error)
- func (m *MockRent) GetAvailableCars(ctx context.Context) ([]entity.Car, error)
- func (m *MockRent) GetRentHistory(ctx context.Context, userID string) ([]entity.RentHistory, error)
- func (m *MockRent) StartRent(ctx context.Context, userID, carID string) error
- type MockRentMockRecorder
- func (mr *MockRentMockRecorder) FinishRent(ctx, userID, rentID interface{}) *gomock.Call
- func (mr *MockRentMockRecorder) GetAvailableCars(ctx interface{}) *gomock.Call
- func (mr *MockRentMockRecorder) GetRentHistory(ctx, userID interface{}) *gomock.Call
- func (mr *MockRentMockRecorder) StartRent(ctx, userID, carID interface{}) *gomock.Call
- type MockRepository
- func (m *MockRepository) AboutMe(ctx context.Context, userID string) (entity.UserInfo, error)
- func (m *MockRepository) AddCar(ctx context.Context, car entity.Car) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) EditCar(ctx context.Context, data models.CarReq, carID string) error
- func (m *MockRepository) FinishRent(ctx context.Context, userID, rentID string) (entity.Bill, error)
- func (m *MockRepository) GetAvailableCars(ctx context.Context) ([]entity.Car, error)
- func (m *MockRepository) GetFBToken(ctx context.Context, userID string) (string, error)
- func (m *MockRepository) GetNotifications(ctx context.Context, userID string) ([]entity.Notification, error)
- func (m *MockRepository) GetPasswordAndID(ctx context.Context, email string) (string, string, error)
- func (m *MockRepository) GetProfile(ctx context.Context, userID string) (entity.UserProfile, error)
- func (m *MockRepository) GetRentHistory(ctx context.Context, userID string) ([]entity.RentHistory, error)
- func (m *MockRepository) Login(ctx context.Context, data models.LoginReq) (models.AuthResponse, error)
- func (m *MockRepository) Refresh(ctx context.Context, uuid, token string) (models.AuthResponse, error)
- func (m *MockRepository) Register(ctx context.Context, data entity.User) (models.AuthResponse, error)
- func (m *MockRepository) RemoveCar(ctx context.Context, carID string) error
- func (m *MockRepository) SaveNotification(ctx context.Context, notification entity.Notification) error
- func (m *MockRepository) StartRent(ctx context.Context, userID, carID string) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) AboutMe(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) AddCar(ctx, car interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) EditCar(ctx, data, carID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) FinishRent(ctx, userID, rentID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetAvailableCars(ctx interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetFBToken(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetNotifications(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetPasswordAndID(ctx, email interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetProfile(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetRentHistory(ctx, userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Login(ctx, data interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Refresh(ctx, uuid, token interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Register(ctx, data interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) RemoveCar(ctx, carID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) SaveNotification(ctx, notification interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) StartRent(ctx, userID, carID interface{}) *gomock.Call
- type MockUser
- func (m *MockUser) AboutMe(ctx context.Context, userID string) (entity.UserInfo, error)
- func (m *MockUser) EXPECT() *MockUserMockRecorder
- func (m *MockUser) GetNotifications(ctx context.Context, userID string) ([]entity.Notification, error)
- func (m *MockUser) GetProfile(ctx context.Context, userID string) (entity.UserProfile, error)
- type MockUserMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuth ¶
type MockAuth struct {
// contains filtered or unexported fields
}
MockAuth is a mock of Auth interface.
func NewMockAuth ¶
func NewMockAuth(ctrl *gomock.Controller) *MockAuth
NewMockAuth creates a new mock instance.
func (*MockAuth) EXPECT ¶
func (m *MockAuth) EXPECT() *MockAuthMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuth) GetPasswordAndID ¶
GetPasswordAndID mocks base method.
type MockAuthMockRecorder ¶
type MockAuthMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthMockRecorder is the mock recorder for MockAuth.
func (*MockAuthMockRecorder) GetPasswordAndID ¶
func (mr *MockAuthMockRecorder) GetPasswordAndID(ctx, email interface{}) *gomock.Call
GetPasswordAndID indicates an expected call of GetPasswordAndID.
func (*MockAuthMockRecorder) Login ¶
func (mr *MockAuthMockRecorder) Login(ctx, data interface{}) *gomock.Call
Login indicates an expected call of Login.
func (*MockAuthMockRecorder) Refresh ¶
func (mr *MockAuthMockRecorder) Refresh(ctx, uuid, token interface{}) *gomock.Call
Refresh indicates an expected call of Refresh.
func (*MockAuthMockRecorder) Register ¶
func (mr *MockAuthMockRecorder) Register(ctx, data interface{}) *gomock.Call
Register indicates an expected call of Register.
type MockCarManagement ¶
type MockCarManagement struct {
// contains filtered or unexported fields
}
MockCarManagement is a mock of CarManagement interface.
func NewMockCarManagement ¶
func NewMockCarManagement(ctrl *gomock.Controller) *MockCarManagement
NewMockCarManagement creates a new mock instance.
func (*MockCarManagement) EXPECT ¶
func (m *MockCarManagement) EXPECT() *MockCarManagementMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCarManagementMockRecorder ¶
type MockCarManagementMockRecorder struct {
// contains filtered or unexported fields
}
MockCarManagementMockRecorder is the mock recorder for MockCarManagement.
func (*MockCarManagementMockRecorder) AddCar ¶
func (mr *MockCarManagementMockRecorder) AddCar(ctx, car interface{}) *gomock.Call
AddCar indicates an expected call of AddCar.
func (*MockCarManagementMockRecorder) EditCar ¶
func (mr *MockCarManagementMockRecorder) EditCar(ctx, data, carID interface{}) *gomock.Call
EditCar indicates an expected call of EditCar.
func (*MockCarManagementMockRecorder) RemoveCar ¶
func (mr *MockCarManagementMockRecorder) RemoveCar(ctx, carID interface{}) *gomock.Call
RemoveCar indicates an expected call of RemoveCar.
type MockNotifierRepo ¶
type MockNotifierRepo struct {
// contains filtered or unexported fields
}
MockNotifierRepo is a mock of NotifierRepo interface.
func NewMockNotifierRepo ¶
func NewMockNotifierRepo(ctrl *gomock.Controller) *MockNotifierRepo
NewMockNotifierRepo creates a new mock instance.
func (*MockNotifierRepo) EXPECT ¶
func (m *MockNotifierRepo) EXPECT() *MockNotifierRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNotifierRepo) GetFBToken ¶
GetFBToken mocks base method.
func (*MockNotifierRepo) SaveNotification ¶
func (m *MockNotifierRepo) SaveNotification(ctx context.Context, notification entity.Notification) error
SaveNotification mocks base method.
type MockNotifierRepoMockRecorder ¶
type MockNotifierRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockNotifierRepoMockRecorder is the mock recorder for MockNotifierRepo.
func (*MockNotifierRepoMockRecorder) GetFBToken ¶
func (mr *MockNotifierRepoMockRecorder) GetFBToken(ctx, userID interface{}) *gomock.Call
GetFBToken indicates an expected call of GetFBToken.
func (*MockNotifierRepoMockRecorder) SaveNotification ¶
func (mr *MockNotifierRepoMockRecorder) SaveNotification(ctx, notification interface{}) *gomock.Call
SaveNotification indicates an expected call of SaveNotification.
type MockRent ¶
type MockRent struct {
// contains filtered or unexported fields
}
MockRent is a mock of Rent interface.
func NewMockRent ¶
func NewMockRent(ctrl *gomock.Controller) *MockRent
NewMockRent creates a new mock instance.
func (*MockRent) EXPECT ¶
func (m *MockRent) EXPECT() *MockRentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRent) FinishRent ¶
FinishRent mocks base method.
func (*MockRent) GetAvailableCars ¶
GetAvailableCars mocks base method.
func (*MockRent) GetRentHistory ¶
GetRentHistory mocks base method.
type MockRentMockRecorder ¶
type MockRentMockRecorder struct {
// contains filtered or unexported fields
}
MockRentMockRecorder is the mock recorder for MockRent.
func (*MockRentMockRecorder) FinishRent ¶
func (mr *MockRentMockRecorder) FinishRent(ctx, userID, rentID interface{}) *gomock.Call
FinishRent indicates an expected call of FinishRent.
func (*MockRentMockRecorder) GetAvailableCars ¶
func (mr *MockRentMockRecorder) GetAvailableCars(ctx interface{}) *gomock.Call
GetAvailableCars indicates an expected call of GetAvailableCars.
func (*MockRentMockRecorder) GetRentHistory ¶
func (mr *MockRentMockRecorder) GetRentHistory(ctx, userID interface{}) *gomock.Call
GetRentHistory indicates an expected call of GetRentHistory.
func (*MockRentMockRecorder) StartRent ¶
func (mr *MockRentMockRecorder) StartRent(ctx, userID, carID interface{}) *gomock.Call
StartRent indicates an expected call of StartRent.
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) FinishRent ¶
func (m *MockRepository) FinishRent(ctx context.Context, userID, rentID string) (entity.Bill, error)
FinishRent mocks base method.
func (*MockRepository) GetAvailableCars ¶
GetAvailableCars mocks base method.
func (*MockRepository) GetFBToken ¶
GetFBToken mocks base method.
func (*MockRepository) GetNotifications ¶
func (m *MockRepository) GetNotifications(ctx context.Context, userID string) ([]entity.Notification, error)
GetNotifications mocks base method.
func (*MockRepository) GetPasswordAndID ¶
func (m *MockRepository) GetPasswordAndID(ctx context.Context, email string) (string, string, error)
GetPasswordAndID mocks base method.
func (*MockRepository) GetProfile ¶
func (m *MockRepository) GetProfile(ctx context.Context, userID string) (entity.UserProfile, error)
GetProfile mocks base method.
func (*MockRepository) GetRentHistory ¶
func (m *MockRepository) GetRentHistory(ctx context.Context, userID string) ([]entity.RentHistory, error)
GetRentHistory mocks base method.
func (*MockRepository) Login ¶
func (m *MockRepository) Login(ctx context.Context, data models.LoginReq) (models.AuthResponse, error)
Login mocks base method.
func (*MockRepository) Refresh ¶
func (m *MockRepository) Refresh(ctx context.Context, uuid, token string) (models.AuthResponse, error)
Refresh mocks base method.
func (*MockRepository) Register ¶
func (m *MockRepository) Register(ctx context.Context, data entity.User) (models.AuthResponse, error)
Register mocks base method.
func (*MockRepository) RemoveCar ¶
func (m *MockRepository) RemoveCar(ctx context.Context, carID string) error
RemoveCar mocks base method.
func (*MockRepository) SaveNotification ¶
func (m *MockRepository) SaveNotification(ctx context.Context, notification entity.Notification) error
SaveNotification mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) AboutMe ¶
func (mr *MockRepositoryMockRecorder) AboutMe(ctx, userID interface{}) *gomock.Call
AboutMe indicates an expected call of AboutMe.
func (*MockRepositoryMockRecorder) AddCar ¶
func (mr *MockRepositoryMockRecorder) AddCar(ctx, car interface{}) *gomock.Call
AddCar indicates an expected call of AddCar.
func (*MockRepositoryMockRecorder) EditCar ¶
func (mr *MockRepositoryMockRecorder) EditCar(ctx, data, carID interface{}) *gomock.Call
EditCar indicates an expected call of EditCar.
func (*MockRepositoryMockRecorder) FinishRent ¶
func (mr *MockRepositoryMockRecorder) FinishRent(ctx, userID, rentID interface{}) *gomock.Call
FinishRent indicates an expected call of FinishRent.
func (*MockRepositoryMockRecorder) GetAvailableCars ¶
func (mr *MockRepositoryMockRecorder) GetAvailableCars(ctx interface{}) *gomock.Call
GetAvailableCars indicates an expected call of GetAvailableCars.
func (*MockRepositoryMockRecorder) GetFBToken ¶
func (mr *MockRepositoryMockRecorder) GetFBToken(ctx, userID interface{}) *gomock.Call
GetFBToken indicates an expected call of GetFBToken.
func (*MockRepositoryMockRecorder) GetNotifications ¶
func (mr *MockRepositoryMockRecorder) GetNotifications(ctx, userID interface{}) *gomock.Call
GetNotifications indicates an expected call of GetNotifications.
func (*MockRepositoryMockRecorder) GetPasswordAndID ¶
func (mr *MockRepositoryMockRecorder) GetPasswordAndID(ctx, email interface{}) *gomock.Call
GetPasswordAndID indicates an expected call of GetPasswordAndID.
func (*MockRepositoryMockRecorder) GetProfile ¶
func (mr *MockRepositoryMockRecorder) GetProfile(ctx, userID interface{}) *gomock.Call
GetProfile indicates an expected call of GetProfile.
func (*MockRepositoryMockRecorder) GetRentHistory ¶
func (mr *MockRepositoryMockRecorder) GetRentHistory(ctx, userID interface{}) *gomock.Call
GetRentHistory indicates an expected call of GetRentHistory.
func (*MockRepositoryMockRecorder) Login ¶
func (mr *MockRepositoryMockRecorder) Login(ctx, data interface{}) *gomock.Call
Login indicates an expected call of Login.
func (*MockRepositoryMockRecorder) Refresh ¶
func (mr *MockRepositoryMockRecorder) Refresh(ctx, uuid, token interface{}) *gomock.Call
Refresh indicates an expected call of Refresh.
func (*MockRepositoryMockRecorder) Register ¶
func (mr *MockRepositoryMockRecorder) Register(ctx, data interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockRepositoryMockRecorder) RemoveCar ¶
func (mr *MockRepositoryMockRecorder) RemoveCar(ctx, carID interface{}) *gomock.Call
RemoveCar indicates an expected call of RemoveCar.
func (*MockRepositoryMockRecorder) SaveNotification ¶
func (mr *MockRepositoryMockRecorder) SaveNotification(ctx, notification interface{}) *gomock.Call
SaveNotification indicates an expected call of SaveNotification.
func (*MockRepositoryMockRecorder) StartRent ¶
func (mr *MockRepositoryMockRecorder) StartRent(ctx, userID, carID interface{}) *gomock.Call
StartRent indicates an expected call of StartRent.
type MockUser ¶
type MockUser struct {
// contains filtered or unexported fields
}
MockUser is a mock of User interface.
func NewMockUser ¶
func NewMockUser(ctrl *gomock.Controller) *MockUser
NewMockUser creates a new mock instance.
func (*MockUser) EXPECT ¶
func (m *MockUser) EXPECT() *MockUserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUser) GetNotifications ¶
func (m *MockUser) GetNotifications(ctx context.Context, userID string) ([]entity.Notification, error)
GetNotifications mocks base method.
func (*MockUser) GetProfile ¶
GetProfile mocks base method.
type MockUserMockRecorder ¶
type MockUserMockRecorder struct {
// contains filtered or unexported fields
}
MockUserMockRecorder is the mock recorder for MockUser.
func (*MockUserMockRecorder) AboutMe ¶
func (mr *MockUserMockRecorder) AboutMe(ctx, userID interface{}) *gomock.Call
AboutMe indicates an expected call of AboutMe.
func (*MockUserMockRecorder) GetNotifications ¶
func (mr *MockUserMockRecorder) GetNotifications(ctx, userID interface{}) *gomock.Call
GetNotifications indicates an expected call of GetNotifications.
func (*MockUserMockRecorder) GetProfile ¶
func (mr *MockUserMockRecorder) GetProfile(ctx, userID interface{}) *gomock.Call
GetProfile indicates an expected call of GetProfile.