Documentation ¶
Overview ¶
Package repo is a generated GoMock package.
Index ¶
- type IRestaurantRepo
- type MockIRestaurantRepo
- func (m *MockIRestaurantRepo) Create(c context.Context, item *model.Restaurant) error
- func (m *MockIRestaurantRepo) CreateReservation(c context.Context, restaurant *model.Restaurant, reservation *model.Order) error
- func (m *MockIRestaurantRepo) Delete(c context.Context, id string) error
- func (m *MockIRestaurantRepo) EXPECT() *MockIRestaurantRepoMockRecorder
- func (m *MockIRestaurantRepo) GetByID(c context.Context, id string) (*model.Restaurant, error)
- func (m *MockIRestaurantRepo) List(c context.Context, cond persistence.Pagination) ([]*model.Restaurant, int, error)
- func (m *MockIRestaurantRepo) Update(c context.Context, item *model.Restaurant) error
- type MockIRestaurantRepoMockRecorder
- func (mr *MockIRestaurantRepoMockRecorder) Create(c, item any) *gomock.Call
- func (mr *MockIRestaurantRepoMockRecorder) CreateReservation(c, restaurant, reservation any) *gomock.Call
- func (mr *MockIRestaurantRepoMockRecorder) Delete(c, id any) *gomock.Call
- func (mr *MockIRestaurantRepoMockRecorder) GetByID(c, id any) *gomock.Call
- func (mr *MockIRestaurantRepoMockRecorder) List(c, cond any) *gomock.Call
- func (mr *MockIRestaurantRepoMockRecorder) Update(c, item any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRestaurantRepo ¶
type IRestaurantRepo interface { persistence.IRepository[*model.Restaurant] CreateReservation(c context.Context, restaurant *model.Restaurant, reservation *model.Order) error }
IRestaurantRepo is an interface that defines the methods that the restaurant repository should implement
type MockIRestaurantRepo ¶
type MockIRestaurantRepo struct {
// contains filtered or unexported fields
}
MockIRestaurantRepo is a mock of IRestaurantRepo interface.
func NewMockIRestaurantRepo ¶
func NewMockIRestaurantRepo(ctrl *gomock.Controller) *MockIRestaurantRepo
NewMockIRestaurantRepo creates a new mock instance.
func (*MockIRestaurantRepo) Create ¶
func (m *MockIRestaurantRepo) Create(c context.Context, item *model.Restaurant) error
Create mocks base method.
func (*MockIRestaurantRepo) CreateReservation ¶
func (m *MockIRestaurantRepo) CreateReservation(c context.Context, restaurant *model.Restaurant, reservation *model.Order) error
CreateReservation mocks base method.
func (*MockIRestaurantRepo) Delete ¶
func (m *MockIRestaurantRepo) Delete(c context.Context, id string) error
Delete mocks base method.
func (*MockIRestaurantRepo) EXPECT ¶
func (m *MockIRestaurantRepo) EXPECT() *MockIRestaurantRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIRestaurantRepo) GetByID ¶
func (m *MockIRestaurantRepo) GetByID(c context.Context, id string) (*model.Restaurant, error)
GetByID mocks base method.
func (*MockIRestaurantRepo) List ¶
func (m *MockIRestaurantRepo) List(c context.Context, cond persistence.Pagination) ([]*model.Restaurant, int, error)
List mocks base method.
func (*MockIRestaurantRepo) Update ¶
func (m *MockIRestaurantRepo) Update(c context.Context, item *model.Restaurant) error
Update mocks base method.
type MockIRestaurantRepoMockRecorder ¶
type MockIRestaurantRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockIRestaurantRepoMockRecorder is the mock recorder for MockIRestaurantRepo.
func (*MockIRestaurantRepoMockRecorder) Create ¶
func (mr *MockIRestaurantRepoMockRecorder) Create(c, item any) *gomock.Call
Create indicates an expected call of Create.
func (*MockIRestaurantRepoMockRecorder) CreateReservation ¶
func (mr *MockIRestaurantRepoMockRecorder) CreateReservation(c, restaurant, reservation any) *gomock.Call
CreateReservation indicates an expected call of CreateReservation.
func (*MockIRestaurantRepoMockRecorder) Delete ¶
func (mr *MockIRestaurantRepoMockRecorder) Delete(c, id any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockIRestaurantRepoMockRecorder) GetByID ¶
func (mr *MockIRestaurantRepoMockRecorder) GetByID(c, id any) *gomock.Call
GetByID indicates an expected call of GetByID.