mock_repositories

package
v0.0.0-...-9d97ec1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_repositories is a generated GoMock package.

Index

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

func (m *MockAuth) GetPasswordAndID(ctx context.Context, email string) (string, string, error)

GetPasswordAndID mocks base method.

func (*MockAuth) Login

Login mocks base method.

func (*MockAuth) Refresh

func (m *MockAuth) Refresh(ctx context.Context, uuid, token string) (models.AuthResponse, error)

Refresh mocks base method.

func (*MockAuth) Register

func (m *MockAuth) Register(ctx context.Context, data entity.User) (models.AuthResponse, error)

Register 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) AddCar

func (m *MockCarManagement) AddCar(ctx context.Context, car entity.Car) error

AddCar mocks base method.

func (*MockCarManagement) EXPECT

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

func (*MockCarManagement) EditCar

func (m *MockCarManagement) EditCar(ctx context.Context, data models.CarReq, carID string) error

EditCar mocks base method.

func (*MockCarManagement) RemoveCar

func (m *MockCarManagement) RemoveCar(ctx context.Context, carID string) error

RemoveCar mocks base method.

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

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

func (*MockNotifierRepo) GetFBToken

func (m *MockNotifierRepo) GetFBToken(ctx context.Context, userID string) (string, error)

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

func (m *MockRent) FinishRent(ctx context.Context, userID, rentID string) (entity.Bill, error)

FinishRent mocks base method.

func (*MockRent) GetAvailableCars

func (m *MockRent) GetAvailableCars(ctx context.Context) ([]entity.Car, error)

GetAvailableCars mocks base method.

func (*MockRent) GetRentHistory

func (m *MockRent) GetRentHistory(ctx context.Context, userID string) ([]entity.RentHistory, error)

GetRentHistory mocks base method.

func (*MockRent) StartRent

func (m *MockRent) StartRent(ctx context.Context, userID, carID string) error

StartRent 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) AboutMe

func (m *MockRepository) AboutMe(ctx context.Context, userID string) (entity.UserInfo, error)

AboutMe mocks base method.

func (*MockRepository) AddCar

func (m *MockRepository) AddCar(ctx context.Context, car entity.Car) error

AddCar mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) EditCar

func (m *MockRepository) EditCar(ctx context.Context, data models.CarReq, carID string) error

EditCar mocks base method.

func (*MockRepository) FinishRent

func (m *MockRepository) FinishRent(ctx context.Context, userID, rentID string) (entity.Bill, error)

FinishRent mocks base method.

func (*MockRepository) GetAvailableCars

func (m *MockRepository) GetAvailableCars(ctx context.Context) ([]entity.Car, error)

GetAvailableCars mocks base method.

func (*MockRepository) GetFBToken

func (m *MockRepository) GetFBToken(ctx context.Context, userID string) (string, error)

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

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.

func (*MockRepository) StartRent

func (m *MockRepository) StartRent(ctx context.Context, userID, carID string) error

StartRent 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) AboutMe

func (m *MockUser) AboutMe(ctx context.Context, userID string) (entity.UserInfo, error)

AboutMe mocks base method.

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

func (m *MockUser) GetProfile(ctx context.Context, userID string) (entity.UserProfile, error)

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.

Directories

Path Synopsis
Package mock_log is a generated GoMock package.
Package mock_log is a generated GoMock package.

Jump to

Keyboard shortcuts

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