Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockCategoriesService
- func (m *MockCategoriesService) DeleteCategory(ctx context.Context, id uuid.UUID) error
- func (m *MockCategoriesService) EXPECT() *MockCategoriesServiceMockRecorder
- func (m *MockCategoriesService) GetCategory(ctx context.Context, id uuid.UUID) (*models.Category, error)
- func (m *MockCategoriesService) InsertCategory(ctx context.Context, in *models.Category) (*models.Category, error)
- func (m *MockCategoriesService) ListCategories(ctx context.Context, limit, offset int) (*models.CategoryList, error)
- type MockCategoriesServiceMockRecorder
- func (mr *MockCategoriesServiceMockRecorder) DeleteCategory(ctx, id any) *gomock.Call
- func (mr *MockCategoriesServiceMockRecorder) GetCategory(ctx, id any) *gomock.Call
- func (mr *MockCategoriesServiceMockRecorder) InsertCategory(ctx, in any) *gomock.Call
- func (mr *MockCategoriesServiceMockRecorder) ListCategories(ctx, limit, offset any) *gomock.Call
- type MockOrdersService
- func (m *MockOrdersService) Checkout(ctx context.Context, paymentID uuid.UUID) (*models.Order, error)
- func (m *MockOrdersService) CreateOrder(ctx context.Context, products []models.Product, userID uuid.UUID) (*models.Order, error)
- func (m *MockOrdersService) DeleteOrder(ctx context.Context, orderID uuid.UUID) error
- func (m *MockOrdersService) EXPECT() *MockOrdersServiceMockRecorder
- func (m *MockOrdersService) GetOrder(ctx context.Context, orderID uuid.UUID) (*models.Order, error)
- func (m *MockOrdersService) GetOrderByPaymentID(ctx context.Context, paymentID uuid.UUID) (*models.Order, error)
- func (m *MockOrdersService) ListOrders(ctx context.Context, limit, offset int) (*models.OrderList, error)
- func (m *MockOrdersService) ProcessPayment()
- func (m *MockOrdersService) UpdateOrderItems(ctx context.Context, orderID uuid.UUID, products []models.Product) (*models.Order, error)
- func (m *MockOrdersService) UpdateOrderStatus(ctx context.Context, orderID uuid.UUID, status models.OrderStatus) (*models.Order, error)
- type MockOrdersServiceMockRecorder
- func (mr *MockOrdersServiceMockRecorder) Checkout(ctx, paymentID any) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) CreateOrder(ctx, products, userID any) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) DeleteOrder(ctx, orderID any) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) GetOrder(ctx, orderID any) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) GetOrderByPaymentID(ctx, paymentID any) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) ListOrders(ctx, limit, offset any) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) ProcessPayment() *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) UpdateOrderItems(ctx, orderID, products any) *gomock.Call
- func (mr *MockOrdersServiceMockRecorder) UpdateOrderStatus(ctx, orderID, status any) *gomock.Call
- type MockPaymentsService
- func (m *MockPaymentsService) CreatePayment(ctx context.Context, orderID *models.Order) (*models.Payment, error)
- func (m *MockPaymentsService) EXPECT() *MockPaymentsServiceMockRecorder
- func (m *MockPaymentsService) GetPayment(ctx context.Context, paymentID uuid.UUID) (*models.Payment, error)
- func (m *MockPaymentsService) UpdatePayment(ctx context.Context, paymentID uuid.UUID, status models.PaymentStatus) (*models.Payment, error)
- type MockPaymentsServiceMockRecorder
- type MockProductsService
- func (m *MockProductsService) DeleteProduct(ctx context.Context, uuid uuid.UUID) error
- func (m *MockProductsService) EXPECT() *MockProductsServiceMockRecorder
- func (m *MockProductsService) GetProduct(ctx context.Context, id uuid.UUID) (*models.Product, error)
- func (m *MockProductsService) GetProductsPriceSumByID(ctx context.Context, products []uuid.UUID) (*models.ProductsSum, error)
- func (m *MockProductsService) InsertProduct(ctx context.Context, product *models.Product) (*models.Product, error)
- func (m *MockProductsService) ListProductsByCategory(ctx context.Context, categoryID uuid.UUID, limit, offset int) (*models.ProductList, error)
- func (m *MockProductsService) UpdateProduct(ctx context.Context, product *models.Product) (*models.Product, error)
- type MockProductsServiceMockRecorder
- func (mr *MockProductsServiceMockRecorder) DeleteProduct(ctx, uuid any) *gomock.Call
- func (mr *MockProductsServiceMockRecorder) GetProduct(ctx, id any) *gomock.Call
- func (mr *MockProductsServiceMockRecorder) GetProductsPriceSumByID(ctx, products any) *gomock.Call
- func (mr *MockProductsServiceMockRecorder) InsertProduct(ctx, product any) *gomock.Call
- func (mr *MockProductsServiceMockRecorder) ListProductsByCategory(ctx, categoryID, limit, offset any) *gomock.Call
- func (mr *MockProductsServiceMockRecorder) UpdateProduct(ctx, product any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCategoriesService ¶
type MockCategoriesService struct {
// contains filtered or unexported fields
}
MockCategoriesService is a mock of CategoriesService interface.
func NewMockCategoriesService ¶
func NewMockCategoriesService(ctrl *gomock.Controller) *MockCategoriesService
NewMockCategoriesService creates a new mock instance.
func (*MockCategoriesService) DeleteCategory ¶
DeleteCategory mocks base method.
func (*MockCategoriesService) EXPECT ¶
func (m *MockCategoriesService) EXPECT() *MockCategoriesServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCategoriesService) GetCategory ¶
func (m *MockCategoriesService) GetCategory(ctx context.Context, id uuid.UUID) (*models.Category, error)
GetCategory mocks base method.
func (*MockCategoriesService) InsertCategory ¶
func (m *MockCategoriesService) InsertCategory(ctx context.Context, in *models.Category) (*models.Category, error)
InsertCategory mocks base method.
func (*MockCategoriesService) ListCategories ¶
func (m *MockCategoriesService) ListCategories(ctx context.Context, limit, offset int) (*models.CategoryList, error)
ListCategories mocks base method.
type MockCategoriesServiceMockRecorder ¶
type MockCategoriesServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCategoriesServiceMockRecorder is the mock recorder for MockCategoriesService.
func (*MockCategoriesServiceMockRecorder) DeleteCategory ¶
func (mr *MockCategoriesServiceMockRecorder) DeleteCategory(ctx, id any) *gomock.Call
DeleteCategory indicates an expected call of DeleteCategory.
func (*MockCategoriesServiceMockRecorder) GetCategory ¶
func (mr *MockCategoriesServiceMockRecorder) GetCategory(ctx, id any) *gomock.Call
GetCategory indicates an expected call of GetCategory.
func (*MockCategoriesServiceMockRecorder) InsertCategory ¶
func (mr *MockCategoriesServiceMockRecorder) InsertCategory(ctx, in any) *gomock.Call
InsertCategory indicates an expected call of InsertCategory.
func (*MockCategoriesServiceMockRecorder) ListCategories ¶
func (mr *MockCategoriesServiceMockRecorder) ListCategories(ctx, limit, offset any) *gomock.Call
ListCategories indicates an expected call of ListCategories.
type MockOrdersService ¶
type MockOrdersService struct {
// contains filtered or unexported fields
}
MockOrdersService is a mock of OrdersService interface.
func NewMockOrdersService ¶
func NewMockOrdersService(ctrl *gomock.Controller) *MockOrdersService
NewMockOrdersService creates a new mock instance.
func (*MockOrdersService) Checkout ¶
func (m *MockOrdersService) Checkout(ctx context.Context, paymentID uuid.UUID) (*models.Order, error)
Checkout mocks base method.
func (*MockOrdersService) CreateOrder ¶
func (m *MockOrdersService) CreateOrder(ctx context.Context, products []models.Product, userID uuid.UUID) (*models.Order, error)
CreateOrder mocks base method.
func (*MockOrdersService) DeleteOrder ¶
DeleteOrder mocks base method.
func (*MockOrdersService) EXPECT ¶
func (m *MockOrdersService) EXPECT() *MockOrdersServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrdersService) GetOrderByPaymentID ¶
func (m *MockOrdersService) GetOrderByPaymentID(ctx context.Context, paymentID uuid.UUID) (*models.Order, error)
GetOrderByPaymentID mocks base method.
func (*MockOrdersService) ListOrders ¶
func (m *MockOrdersService) ListOrders(ctx context.Context, limit, offset int) (*models.OrderList, error)
ListOrders mocks base method.
func (*MockOrdersService) ProcessPayment ¶
func (m *MockOrdersService) ProcessPayment()
ProcessPayment mocks base method.
func (*MockOrdersService) UpdateOrderItems ¶
func (m *MockOrdersService) UpdateOrderItems(ctx context.Context, orderID uuid.UUID, products []models.Product) (*models.Order, error)
UpdateOrderItems mocks base method.
func (*MockOrdersService) UpdateOrderStatus ¶
func (m *MockOrdersService) UpdateOrderStatus(ctx context.Context, orderID uuid.UUID, status models.OrderStatus) (*models.Order, error)
UpdateOrderStatus mocks base method.
type MockOrdersServiceMockRecorder ¶
type MockOrdersServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockOrdersServiceMockRecorder is the mock recorder for MockOrdersService.
func (*MockOrdersServiceMockRecorder) Checkout ¶
func (mr *MockOrdersServiceMockRecorder) Checkout(ctx, paymentID any) *gomock.Call
Checkout indicates an expected call of Checkout.
func (*MockOrdersServiceMockRecorder) CreateOrder ¶
func (mr *MockOrdersServiceMockRecorder) CreateOrder(ctx, products, userID any) *gomock.Call
CreateOrder indicates an expected call of CreateOrder.
func (*MockOrdersServiceMockRecorder) DeleteOrder ¶
func (mr *MockOrdersServiceMockRecorder) DeleteOrder(ctx, orderID any) *gomock.Call
DeleteOrder indicates an expected call of DeleteOrder.
func (*MockOrdersServiceMockRecorder) GetOrder ¶
func (mr *MockOrdersServiceMockRecorder) GetOrder(ctx, orderID any) *gomock.Call
GetOrder indicates an expected call of GetOrder.
func (*MockOrdersServiceMockRecorder) GetOrderByPaymentID ¶
func (mr *MockOrdersServiceMockRecorder) GetOrderByPaymentID(ctx, paymentID any) *gomock.Call
GetOrderByPaymentID indicates an expected call of GetOrderByPaymentID.
func (*MockOrdersServiceMockRecorder) ListOrders ¶
func (mr *MockOrdersServiceMockRecorder) ListOrders(ctx, limit, offset any) *gomock.Call
ListOrders indicates an expected call of ListOrders.
func (*MockOrdersServiceMockRecorder) ProcessPayment ¶
func (mr *MockOrdersServiceMockRecorder) ProcessPayment() *gomock.Call
ProcessPayment indicates an expected call of ProcessPayment.
func (*MockOrdersServiceMockRecorder) UpdateOrderItems ¶
func (mr *MockOrdersServiceMockRecorder) UpdateOrderItems(ctx, orderID, products any) *gomock.Call
UpdateOrderItems indicates an expected call of UpdateOrderItems.
func (*MockOrdersServiceMockRecorder) UpdateOrderStatus ¶
func (mr *MockOrdersServiceMockRecorder) UpdateOrderStatus(ctx, orderID, status any) *gomock.Call
UpdateOrderStatus indicates an expected call of UpdateOrderStatus.
type MockPaymentsService ¶
type MockPaymentsService struct {
// contains filtered or unexported fields
}
MockPaymentsService is a mock of PaymentsService interface.
func NewMockPaymentsService ¶
func NewMockPaymentsService(ctrl *gomock.Controller) *MockPaymentsService
NewMockPaymentsService creates a new mock instance.
func (*MockPaymentsService) CreatePayment ¶
func (m *MockPaymentsService) CreatePayment(ctx context.Context, orderID *models.Order) (*models.Payment, error)
CreatePayment mocks base method.
func (*MockPaymentsService) EXPECT ¶
func (m *MockPaymentsService) EXPECT() *MockPaymentsServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPaymentsService) GetPayment ¶
func (m *MockPaymentsService) GetPayment(ctx context.Context, paymentID uuid.UUID) (*models.Payment, error)
GetPayment mocks base method.
func (*MockPaymentsService) UpdatePayment ¶
func (m *MockPaymentsService) UpdatePayment(ctx context.Context, paymentID uuid.UUID, status models.PaymentStatus) (*models.Payment, error)
UpdatePayment mocks base method.
type MockPaymentsServiceMockRecorder ¶
type MockPaymentsServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockPaymentsServiceMockRecorder is the mock recorder for MockPaymentsService.
func (*MockPaymentsServiceMockRecorder) CreatePayment ¶
func (mr *MockPaymentsServiceMockRecorder) CreatePayment(ctx, orderID any) *gomock.Call
CreatePayment indicates an expected call of CreatePayment.
func (*MockPaymentsServiceMockRecorder) GetPayment ¶
func (mr *MockPaymentsServiceMockRecorder) GetPayment(ctx, paymentID any) *gomock.Call
GetPayment indicates an expected call of GetPayment.
func (*MockPaymentsServiceMockRecorder) UpdatePayment ¶
func (mr *MockPaymentsServiceMockRecorder) UpdatePayment(ctx, paymentID, status any) *gomock.Call
UpdatePayment indicates an expected call of UpdatePayment.
type MockProductsService ¶
type MockProductsService struct {
// contains filtered or unexported fields
}
MockProductsService is a mock of ProductsService interface.
func NewMockProductsService ¶
func NewMockProductsService(ctrl *gomock.Controller) *MockProductsService
NewMockProductsService creates a new mock instance.
func (*MockProductsService) DeleteProduct ¶
DeleteProduct mocks base method.
func (*MockProductsService) EXPECT ¶
func (m *MockProductsService) EXPECT() *MockProductsServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductsService) GetProduct ¶
func (m *MockProductsService) GetProduct(ctx context.Context, id uuid.UUID) (*models.Product, error)
GetProduct mocks base method.
func (*MockProductsService) GetProductsPriceSumByID ¶
func (m *MockProductsService) GetProductsPriceSumByID(ctx context.Context, products []uuid.UUID) (*models.ProductsSum, error)
GetProductsPriceSumByID mocks base method.
func (*MockProductsService) InsertProduct ¶
func (m *MockProductsService) InsertProduct(ctx context.Context, product *models.Product) (*models.Product, error)
InsertProduct mocks base method.
func (*MockProductsService) ListProductsByCategory ¶
func (m *MockProductsService) ListProductsByCategory(ctx context.Context, categoryID uuid.UUID, limit, offset int) (*models.ProductList, error)
ListProductsByCategory mocks base method.
func (*MockProductsService) UpdateProduct ¶
func (m *MockProductsService) UpdateProduct(ctx context.Context, product *models.Product) (*models.Product, error)
UpdateProduct mocks base method.
type MockProductsServiceMockRecorder ¶
type MockProductsServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockProductsServiceMockRecorder is the mock recorder for MockProductsService.
func (*MockProductsServiceMockRecorder) DeleteProduct ¶
func (mr *MockProductsServiceMockRecorder) DeleteProduct(ctx, uuid any) *gomock.Call
DeleteProduct indicates an expected call of DeleteProduct.
func (*MockProductsServiceMockRecorder) GetProduct ¶
func (mr *MockProductsServiceMockRecorder) GetProduct(ctx, id any) *gomock.Call
GetProduct indicates an expected call of GetProduct.
func (*MockProductsServiceMockRecorder) GetProductsPriceSumByID ¶
func (mr *MockProductsServiceMockRecorder) GetProductsPriceSumByID(ctx, products any) *gomock.Call
GetProductsPriceSumByID indicates an expected call of GetProductsPriceSumByID.
func (*MockProductsServiceMockRecorder) InsertProduct ¶
func (mr *MockProductsServiceMockRecorder) InsertProduct(ctx, product any) *gomock.Call
InsertProduct indicates an expected call of InsertProduct.
func (*MockProductsServiceMockRecorder) ListProductsByCategory ¶
func (mr *MockProductsServiceMockRecorder) ListProductsByCategory(ctx, categoryID, limit, offset any) *gomock.Call
ListProductsByCategory indicates an expected call of ListProductsByCategory.
func (*MockProductsServiceMockRecorder) UpdateProduct ¶
func (mr *MockProductsServiceMockRecorder) UpdateProduct(ctx, product any) *gomock.Call
UpdateProduct indicates an expected call of UpdateProduct.