Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockMenuRepository
- type MockMenuRepositoryMockRecorder
- type MockOrderRepository
- type MockOrderRepositoryMockRecorder
- type MockRestoUsecase
- func (m *MockRestoUsecase) CheckSession(ctx context.Context, sessionData model.UserSession) (string, error)
- func (m *MockRestoUsecase) EXPECT() *MockRestoUsecaseMockRecorder
- func (m *MockRestoUsecase) GetMenuList(ctx context.Context, menuType string) ([]model.MenuItem, error)
- func (m *MockRestoUsecase) GetOrderInfo(ctx context.Context, request model.GetOrderInfoRequest) (model.Order, error)
- func (m *MockRestoUsecase) Login(ctx context.Context, request model.LoginRequest) (model.UserSession, error)
- func (m *MockRestoUsecase) Order(ctx context.Context, request model.OrderMenuRequest) (model.Order, error)
- func (m *MockRestoUsecase) RegisterUser(ctx context.Context, request model.RegisterRequest) (model.User, error)
- type MockRestoUsecaseMockRecorder
- func (mr *MockRestoUsecaseMockRecorder) CheckSession(ctx, sessionData interface{}) *gomock.Call
- func (mr *MockRestoUsecaseMockRecorder) GetMenuList(ctx, menuType interface{}) *gomock.Call
- func (mr *MockRestoUsecaseMockRecorder) GetOrderInfo(ctx, request interface{}) *gomock.Call
- func (mr *MockRestoUsecaseMockRecorder) Login(ctx, request interface{}) *gomock.Call
- func (mr *MockRestoUsecaseMockRecorder) Order(ctx, request interface{}) *gomock.Call
- func (mr *MockRestoUsecaseMockRecorder) RegisterUser(ctx, request interface{}) *gomock.Call
- type MockUserRepository
- func (m *MockUserRepository) CheckRegistered(ctx context.Context, username string) (bool, error)
- func (m *MockUserRepository) CheckSession(ctx context.Context, data model.UserSession) (string, error)
- func (m *MockUserRepository) CreateUserSession(ctx context.Context, userID string) (model.UserSession, error)
- func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
- func (m *MockUserRepository) GenerateUserHash(ctx context.Context, password string) (string, error)
- func (m *MockUserRepository) GetUserData(ctx context.Context, username string) (model.User, error)
- func (m *MockUserRepository) RegisterUser(ctx context.Context, userData model.User) (model.User, error)
- func (m *MockUserRepository) VerifyLogin(ctx context.Context, username, password string, userData model.User) (bool, error)
- type MockUserRepositoryMockRecorder
- func (mr *MockUserRepositoryMockRecorder) CheckRegistered(ctx, username interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) CheckSession(ctx, data interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) CreateUserSession(ctx, userID interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GenerateUserHash(ctx, password interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) GetUserData(ctx, username interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) RegisterUser(ctx, userData interface{}) *gomock.Call
- func (mr *MockUserRepositoryMockRecorder) VerifyLogin(ctx, username, password, userData interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMenuRepository ¶
type MockMenuRepository struct {
// contains filtered or unexported fields
}
MockMenuRepository is a mock of Repository interface.
func NewMockMenuRepository ¶
func NewMockMenuRepository(ctrl *gomock.Controller) *MockMenuRepository
NewMockMenuRepository creates a new mock instance.
func (*MockMenuRepository) EXPECT ¶
func (m *MockMenuRepository) EXPECT() *MockMenuRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMenuRepository) GetMenuList ¶
func (m *MockMenuRepository) GetMenuList(ctx context.Context, menuType string) ([]model.MenuItem, error)
GetMenuList mocks base method.
type MockMenuRepositoryMockRecorder ¶
type MockMenuRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockMenuRepositoryMockRecorder is the mock recorder for MockMenuRepository.
func (*MockMenuRepositoryMockRecorder) GetMenu ¶
func (mr *MockMenuRepositoryMockRecorder) GetMenu(ctx, orderCode interface{}) *gomock.Call
GetMenu indicates an expected call of GetMenu.
func (*MockMenuRepositoryMockRecorder) GetMenuList ¶
func (mr *MockMenuRepositoryMockRecorder) GetMenuList(ctx, menuType interface{}) *gomock.Call
GetMenuList indicates an expected call of GetMenuList.
type MockOrderRepository ¶
type MockOrderRepository struct {
// contains filtered or unexported fields
}
MockOrderRepository is a mock of Repository interface.
func NewMockOrderRepository ¶
func NewMockOrderRepository(ctrl *gomock.Controller) *MockOrderRepository
NewMockOrderRepository creates a new mock instance.
func (*MockOrderRepository) CreateOrder ¶
func (m *MockOrderRepository) CreateOrder(ctx context.Context, order model.Order) (model.Order, error)
CreateOrder mocks base method.
func (*MockOrderRepository) EXPECT ¶
func (m *MockOrderRepository) EXPECT() *MockOrderRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrderRepository) GetOrderInfo ¶
func (m *MockOrderRepository) GetOrderInfo(ctx context.Context, orderID string) (model.Order, error)
GetOrderInfo mocks base method.
type MockOrderRepositoryMockRecorder ¶
type MockOrderRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderRepositoryMockRecorder is the mock recorder for MockOrderRepository.
func (*MockOrderRepositoryMockRecorder) CreateOrder ¶
func (mr *MockOrderRepositoryMockRecorder) CreateOrder(ctx, order interface{}) *gomock.Call
CreateOrder indicates an expected call of CreateOrder.
func (*MockOrderRepositoryMockRecorder) GetOrderInfo ¶
func (mr *MockOrderRepositoryMockRecorder) GetOrderInfo(ctx, orderID interface{}) *gomock.Call
GetOrderInfo indicates an expected call of GetOrderInfo.
type MockRestoUsecase ¶
type MockRestoUsecase struct {
// contains filtered or unexported fields
}
MockRestoUsecase is a mock of Usecase interface.
func NewMockRestoUsecase ¶
func NewMockRestoUsecase(ctrl *gomock.Controller) *MockRestoUsecase
NewMockRestoUsecase creates a new mock instance.
func (*MockRestoUsecase) CheckSession ¶
func (m *MockRestoUsecase) CheckSession(ctx context.Context, sessionData model.UserSession) (string, error)
CheckSession mocks base method.
func (*MockRestoUsecase) EXPECT ¶
func (m *MockRestoUsecase) EXPECT() *MockRestoUsecaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRestoUsecase) GetMenuList ¶
func (m *MockRestoUsecase) GetMenuList(ctx context.Context, menuType string) ([]model.MenuItem, error)
GetMenuList mocks base method.
func (*MockRestoUsecase) GetOrderInfo ¶
func (m *MockRestoUsecase) GetOrderInfo(ctx context.Context, request model.GetOrderInfoRequest) (model.Order, error)
GetOrderInfo mocks base method.
func (*MockRestoUsecase) Login ¶
func (m *MockRestoUsecase) Login(ctx context.Context, request model.LoginRequest) (model.UserSession, error)
Login mocks base method.
func (*MockRestoUsecase) Order ¶
func (m *MockRestoUsecase) Order(ctx context.Context, request model.OrderMenuRequest) (model.Order, error)
Order mocks base method.
func (*MockRestoUsecase) RegisterUser ¶
func (m *MockRestoUsecase) RegisterUser(ctx context.Context, request model.RegisterRequest) (model.User, error)
RegisterUser mocks base method.
type MockRestoUsecaseMockRecorder ¶
type MockRestoUsecaseMockRecorder struct {
// contains filtered or unexported fields
}
MockRestoUsecaseMockRecorder is the mock recorder for MockRestoUsecase.
func (*MockRestoUsecaseMockRecorder) CheckSession ¶
func (mr *MockRestoUsecaseMockRecorder) CheckSession(ctx, sessionData interface{}) *gomock.Call
CheckSession indicates an expected call of CheckSession.
func (*MockRestoUsecaseMockRecorder) GetMenuList ¶
func (mr *MockRestoUsecaseMockRecorder) GetMenuList(ctx, menuType interface{}) *gomock.Call
GetMenuList indicates an expected call of GetMenuList.
func (*MockRestoUsecaseMockRecorder) GetOrderInfo ¶
func (mr *MockRestoUsecaseMockRecorder) GetOrderInfo(ctx, request interface{}) *gomock.Call
GetOrderInfo indicates an expected call of GetOrderInfo.
func (*MockRestoUsecaseMockRecorder) Login ¶
func (mr *MockRestoUsecaseMockRecorder) Login(ctx, request interface{}) *gomock.Call
Login indicates an expected call of Login.
func (*MockRestoUsecaseMockRecorder) Order ¶
func (mr *MockRestoUsecaseMockRecorder) Order(ctx, request interface{}) *gomock.Call
Order indicates an expected call of Order.
func (*MockRestoUsecaseMockRecorder) RegisterUser ¶
func (mr *MockRestoUsecaseMockRecorder) RegisterUser(ctx, request interface{}) *gomock.Call
RegisterUser indicates an expected call of RegisterUser.
type MockUserRepository ¶
type MockUserRepository struct {
// contains filtered or unexported fields
}
MockUserRepository is a mock of Repository interface.
func NewMockUserRepository ¶
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository
NewMockUserRepository creates a new mock instance.
func (*MockUserRepository) CheckRegistered ¶
CheckRegistered mocks base method.
func (*MockUserRepository) CheckSession ¶
func (m *MockUserRepository) CheckSession(ctx context.Context, data model.UserSession) (string, error)
CheckSession mocks base method.
func (*MockUserRepository) CreateUserSession ¶
func (m *MockUserRepository) CreateUserSession(ctx context.Context, userID string) (model.UserSession, error)
CreateUserSession mocks base method.
func (*MockUserRepository) EXPECT ¶
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserRepository) GenerateUserHash ¶
GenerateUserHash mocks base method.
func (*MockUserRepository) GetUserData ¶
GetUserData mocks base method.
func (*MockUserRepository) RegisterUser ¶
func (m *MockUserRepository) RegisterUser(ctx context.Context, userData model.User) (model.User, error)
RegisterUser mocks base method.
func (*MockUserRepository) VerifyLogin ¶
func (m *MockUserRepository) VerifyLogin(ctx context.Context, username, password string, userData model.User) (bool, error)
VerifyLogin mocks base method.
type MockUserRepositoryMockRecorder ¶
type MockUserRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.
func (*MockUserRepositoryMockRecorder) CheckRegistered ¶
func (mr *MockUserRepositoryMockRecorder) CheckRegistered(ctx, username interface{}) *gomock.Call
CheckRegistered indicates an expected call of CheckRegistered.
func (*MockUserRepositoryMockRecorder) CheckSession ¶
func (mr *MockUserRepositoryMockRecorder) CheckSession(ctx, data interface{}) *gomock.Call
CheckSession indicates an expected call of CheckSession.
func (*MockUserRepositoryMockRecorder) CreateUserSession ¶
func (mr *MockUserRepositoryMockRecorder) CreateUserSession(ctx, userID interface{}) *gomock.Call
CreateUserSession indicates an expected call of CreateUserSession.
func (*MockUserRepositoryMockRecorder) GenerateUserHash ¶
func (mr *MockUserRepositoryMockRecorder) GenerateUserHash(ctx, password interface{}) *gomock.Call
GenerateUserHash indicates an expected call of GenerateUserHash.
func (*MockUserRepositoryMockRecorder) GetUserData ¶
func (mr *MockUserRepositoryMockRecorder) GetUserData(ctx, username interface{}) *gomock.Call
GetUserData indicates an expected call of GetUserData.
func (*MockUserRepositoryMockRecorder) RegisterUser ¶
func (mr *MockUserRepositoryMockRecorder) RegisterUser(ctx, userData interface{}) *gomock.Call
RegisterUser indicates an expected call of RegisterUser.
func (*MockUserRepositoryMockRecorder) VerifyLogin ¶
func (mr *MockUserRepositoryMockRecorder) VerifyLogin(ctx, username, password, userData interface{}) *gomock.Call
VerifyLogin indicates an expected call of VerifyLogin.