Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Create(ctx context.Context, product *models.Product) (*models.Product, error)
- func (m *MockRepository) Delete(ctx context.Context, productID uuid.UUID) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) GetProductByID(ctx context.Context, productID uuid.UUID) (*models.Product, error)
- func (m *MockRepository) GetProducts(ctx context.Context, pq *utils.PaginationQuery) (*models.ProductList, error)
- func (m *MockRepository) SearchByName(ctx context.Context, name string, query *utils.PaginationQuery) (*models.ProductList, error)
- func (m *MockRepository) Update(ctx context.Context, product *models.Product) (*models.Product, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Create(ctx, product interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(ctx, productID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetProductByID(ctx, productID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetProducts(ctx, pq interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) SearchByName(ctx, name, query interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(ctx, product interface{}) *gomock.Call
- type MockUseCase
- func (m *MockUseCase) Create(ctx context.Context, order *models.Order) (*models.Order, error)
- func (m *MockUseCase) Delete(ctx context.Context, orderID uuid.UUID) error
- func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder
- func (m *MockUseCase) GetOrderByID(ctx context.Context, orderID uuid.UUID) (*models.Order, error)
- func (m *MockUseCase) Update(ctx context.Context, order *models.Order) (*models.Order, error)
- type MockUseCaseMockRecorder
- func (mr *MockUseCaseMockRecorder) Create(ctx, order interface{}) *gomock.Call
- func (mr *MockUseCaseMockRecorder) Delete(ctx, orderID interface{}) *gomock.Call
- func (mr *MockUseCaseMockRecorder) GetOrderByID(ctx, orderID interface{}) *gomock.Call
- func (mr *MockUseCaseMockRecorder) Update(ctx, order interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) Create ¶
func (m *MockRepository) Create(ctx context.Context, product *models.Product) (*models.Product, error)
Create mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetProductByID ¶
func (m *MockRepository) GetProductByID(ctx context.Context, productID uuid.UUID) (*models.Product, error)
GetProductByID mocks base method.
func (*MockRepository) GetProducts ¶
func (m *MockRepository) GetProducts(ctx context.Context, pq *utils.PaginationQuery) (*models.ProductList, error)
GetProducts mocks base method.
func (*MockRepository) SearchByName ¶
func (m *MockRepository) SearchByName(ctx context.Context, name string, query *utils.PaginationQuery) (*models.ProductList, error)
SearchByName mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(ctx, product interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, productID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) GetProductByID ¶
func (mr *MockRepositoryMockRecorder) GetProductByID(ctx, productID interface{}) *gomock.Call
GetProductByID indicates an expected call of GetProductByID.
func (*MockRepositoryMockRecorder) GetProducts ¶
func (mr *MockRepositoryMockRecorder) GetProducts(ctx, pq interface{}) *gomock.Call
GetProducts indicates an expected call of GetProducts.
func (*MockRepositoryMockRecorder) SearchByName ¶
func (mr *MockRepositoryMockRecorder) SearchByName(ctx, name, query interface{}) *gomock.Call
SearchByName indicates an expected call of SearchByName.
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, product interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockUseCase ¶
type MockUseCase struct {
// contains filtered or unexported fields
}
MockUseCase is a mock of UseCase interface.
func NewMockUseCase ¶
func NewMockUseCase(ctrl *gomock.Controller) *MockUseCase
NewMockUseCase creates a new mock instance.
func (*MockUseCase) EXPECT ¶
func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUseCase) GetOrderByID ¶
GetOrderByID mocks base method.
type MockUseCaseMockRecorder ¶
type MockUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUseCaseMockRecorder is the mock recorder for MockUseCase.
func (*MockUseCaseMockRecorder) Create ¶
func (mr *MockUseCaseMockRecorder) Create(ctx, order interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockUseCaseMockRecorder) Delete ¶
func (mr *MockUseCaseMockRecorder) Delete(ctx, orderID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockUseCaseMockRecorder) GetOrderByID ¶
func (mr *MockUseCaseMockRecorder) GetOrderByID(ctx, orderID interface{}) *gomock.Call
GetOrderByID indicates an expected call of GetOrderByID.
func (*MockUseCaseMockRecorder) Update ¶
func (mr *MockUseCaseMockRecorder) Update(ctx, order interface{}) *gomock.Call
Update indicates an expected call of Update.