mocks

package
v0.0.0-...-fd0e154 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 4 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCategoryRepository

type MockCategoryRepository struct {
	// contains filtered or unexported fields
}

MockCategoryRepository is a mock of CategoryRepository interface.

func NewMockCategoryRepository

func NewMockCategoryRepository(ctrl *gomock.Controller) *MockCategoryRepository

NewMockCategoryRepository creates a new mock instance.

func (*MockCategoryRepository) CreateCategory

func (m *MockCategoryRepository) CreateCategory(category *models.Category) error

CreateCategory mocks base method.

func (*MockCategoryRepository) DeleteCategory

func (m *MockCategoryRepository) DeleteCategory(id uint) error

DeleteCategory mocks base method.

func (*MockCategoryRepository) EXPECT

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

func (*MockCategoryRepository) GetAllCategories

func (m *MockCategoryRepository) GetAllCategories() ([]models.Category, error)

GetAllCategories mocks base method.

func (*MockCategoryRepository) GetCategoryByID

func (m *MockCategoryRepository) GetCategoryByID(id uint) (models.Category, error)

GetCategoryByID mocks base method.

func (*MockCategoryRepository) UpdateCategory

func (m *MockCategoryRepository) UpdateCategory(category *models.Category) error

UpdateCategory mocks base method.

type MockCategoryRepositoryMockRecorder

type MockCategoryRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockCategoryRepositoryMockRecorder is the mock recorder for MockCategoryRepository.

func (*MockCategoryRepositoryMockRecorder) CreateCategory

func (mr *MockCategoryRepositoryMockRecorder) CreateCategory(category interface{}) *gomock.Call

CreateCategory indicates an expected call of CreateCategory.

func (*MockCategoryRepositoryMockRecorder) DeleteCategory

func (mr *MockCategoryRepositoryMockRecorder) DeleteCategory(id interface{}) *gomock.Call

DeleteCategory indicates an expected call of DeleteCategory.

func (*MockCategoryRepositoryMockRecorder) GetAllCategories

func (mr *MockCategoryRepositoryMockRecorder) GetAllCategories() *gomock.Call

GetAllCategories indicates an expected call of GetAllCategories.

func (*MockCategoryRepositoryMockRecorder) GetCategoryByID

func (mr *MockCategoryRepositoryMockRecorder) GetCategoryByID(id interface{}) *gomock.Call

GetCategoryByID indicates an expected call of GetCategoryByID.

func (*MockCategoryRepositoryMockRecorder) UpdateCategory

func (mr *MockCategoryRepositoryMockRecorder) UpdateCategory(category interface{}) *gomock.Call

UpdateCategory indicates an expected call of UpdateCategory.

type MockCategoryService

type MockCategoryService struct {
	// contains filtered or unexported fields
}

MockCategoryService is a mock of CategoryService interface.

func NewMockCategoryService

func NewMockCategoryService(ctrl *gomock.Controller) *MockCategoryService

NewMockCategoryService creates a new mock instance.

func (*MockCategoryService) CreateCategory

func (m *MockCategoryService) CreateCategory(category *models.Category) error

CreateCategory mocks base method.

func (*MockCategoryService) DeleteCategory

func (m *MockCategoryService) DeleteCategory(id uint) error

DeleteCategory mocks base method.

func (*MockCategoryService) EXPECT

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

func (*MockCategoryService) GetAllCategories

func (m *MockCategoryService) GetAllCategories() ([]models.Category, error)

GetAllCategories mocks base method.

func (*MockCategoryService) GetCategoryByID

func (m *MockCategoryService) GetCategoryByID(id uint) (models.Category, error)

GetCategoryByID mocks base method.

func (*MockCategoryService) UpdateCategory

func (m *MockCategoryService) UpdateCategory(category *models.Category) error

UpdateCategory mocks base method.

type MockCategoryServiceMockRecorder

type MockCategoryServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockCategoryServiceMockRecorder is the mock recorder for MockCategoryService.

func (*MockCategoryServiceMockRecorder) CreateCategory

func (mr *MockCategoryServiceMockRecorder) CreateCategory(category interface{}) *gomock.Call

CreateCategory indicates an expected call of CreateCategory.

func (*MockCategoryServiceMockRecorder) DeleteCategory

func (mr *MockCategoryServiceMockRecorder) DeleteCategory(id interface{}) *gomock.Call

DeleteCategory indicates an expected call of DeleteCategory.

func (*MockCategoryServiceMockRecorder) GetAllCategories

func (mr *MockCategoryServiceMockRecorder) GetAllCategories() *gomock.Call

GetAllCategories indicates an expected call of GetAllCategories.

func (*MockCategoryServiceMockRecorder) GetCategoryByID

func (mr *MockCategoryServiceMockRecorder) GetCategoryByID(id interface{}) *gomock.Call

GetCategoryByID indicates an expected call of GetCategoryByID.

func (*MockCategoryServiceMockRecorder) UpdateCategory

func (mr *MockCategoryServiceMockRecorder) UpdateCategory(category interface{}) *gomock.Call

UpdateCategory indicates an expected call of UpdateCategory.

type MockProductRepository

type MockProductRepository struct {
	// contains filtered or unexported fields
}

MockProductRepository is a mock of ProductRepository interface.

func NewMockProductRepository

func NewMockProductRepository(ctrl *gomock.Controller) *MockProductRepository

NewMockProductRepository creates a new mock instance.

func (*MockProductRepository) CreateProduct

func (m *MockProductRepository) CreateProduct(product *models.Product) error

CreateProduct mocks base method.

func (*MockProductRepository) DeleteProduct

func (m *MockProductRepository) DeleteProduct(id uint) error

DeleteProduct mocks base method.

func (*MockProductRepository) EXPECT

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

func (*MockProductRepository) GetAllProducts

func (m *MockProductRepository) GetAllProducts() ([]models.Product, error)

GetAllProducts mocks base method.

func (*MockProductRepository) GetAllProductsWithPagination

func (m *MockProductRepository) GetAllProductsWithPagination(ctx *gin.Context) (models.ProductsPageable, error)

GetAllProductsWithPagination mocks base method.

func (*MockProductRepository) GetProductByID

func (m *MockProductRepository) GetProductByID(id uint) (models.Product, error)

GetProductByID mocks base method.

func (*MockProductRepository) UpdateProduct

func (m *MockProductRepository) UpdateProduct(product *models.Product) (models.Product, error)

UpdateProduct mocks base method.

type MockProductRepositoryMockRecorder

type MockProductRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockProductRepositoryMockRecorder is the mock recorder for MockProductRepository.

func (*MockProductRepositoryMockRecorder) CreateProduct

func (mr *MockProductRepositoryMockRecorder) CreateProduct(product interface{}) *gomock.Call

CreateProduct indicates an expected call of CreateProduct.

func (*MockProductRepositoryMockRecorder) DeleteProduct

func (mr *MockProductRepositoryMockRecorder) DeleteProduct(id interface{}) *gomock.Call

DeleteProduct indicates an expected call of DeleteProduct.

func (*MockProductRepositoryMockRecorder) GetAllProducts

func (mr *MockProductRepositoryMockRecorder) GetAllProducts() *gomock.Call

GetAllProducts indicates an expected call of GetAllProducts.

func (*MockProductRepositoryMockRecorder) GetAllProductsWithPagination

func (mr *MockProductRepositoryMockRecorder) GetAllProductsWithPagination(ctx interface{}) *gomock.Call

GetAllProductsWithPagination indicates an expected call of GetAllProductsWithPagination.

func (*MockProductRepositoryMockRecorder) GetProductByID

func (mr *MockProductRepositoryMockRecorder) GetProductByID(id interface{}) *gomock.Call

GetProductByID indicates an expected call of GetProductByID.

func (*MockProductRepositoryMockRecorder) UpdateProduct

func (mr *MockProductRepositoryMockRecorder) UpdateProduct(product interface{}) *gomock.Call

UpdateProduct indicates an expected call of UpdateProduct.

type MockProductService

type MockProductService struct {
	// contains filtered or unexported fields
}

MockProductService is a mock of ProductService interface.

func NewMockProductService

func NewMockProductService(ctrl *gomock.Controller) *MockProductService

NewMockProductService creates a new mock instance.

func (*MockProductService) CreateProduct

func (m *MockProductService) CreateProduct(product *models.Product) error

CreateProduct mocks base method.

func (*MockProductService) DeleteProduct

func (m *MockProductService) DeleteProduct(id uint) error

DeleteProduct mocks base method.

func (*MockProductService) EXPECT

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

func (*MockProductService) GetAllProducts

func (m *MockProductService) GetAllProducts() ([]models.Product, error)

GetAllProducts mocks base method.

func (*MockProductService) GetAllProductsWithPagination

func (m *MockProductService) GetAllProductsWithPagination(ctx *gin.Context) (models.ProductsPageable, error)

GetAllProductsWithPagination mocks base method.

func (*MockProductService) GetProductByID

func (m *MockProductService) GetProductByID(id uint) (models.Product, error)

GetProductByID mocks base method.

func (*MockProductService) UpdateProduct

func (m *MockProductService) UpdateProduct(product *models.Product) (models.Product, error)

UpdateProduct mocks base method.

type MockProductServiceMockRecorder

type MockProductServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockProductServiceMockRecorder is the mock recorder for MockProductService.

func (*MockProductServiceMockRecorder) CreateProduct

func (mr *MockProductServiceMockRecorder) CreateProduct(product interface{}) *gomock.Call

CreateProduct indicates an expected call of CreateProduct.

func (*MockProductServiceMockRecorder) DeleteProduct

func (mr *MockProductServiceMockRecorder) DeleteProduct(id interface{}) *gomock.Call

DeleteProduct indicates an expected call of DeleteProduct.

func (*MockProductServiceMockRecorder) GetAllProducts

func (mr *MockProductServiceMockRecorder) GetAllProducts() *gomock.Call

GetAllProducts indicates an expected call of GetAllProducts.

func (*MockProductServiceMockRecorder) GetAllProductsWithPagination

func (mr *MockProductServiceMockRecorder) GetAllProductsWithPagination(ctx interface{}) *gomock.Call

GetAllProductsWithPagination indicates an expected call of GetAllProductsWithPagination.

func (*MockProductServiceMockRecorder) GetProductByID

func (mr *MockProductServiceMockRecorder) GetProductByID(id interface{}) *gomock.Call

GetProductByID indicates an expected call of GetProductByID.

func (*MockProductServiceMockRecorder) UpdateProduct

func (mr *MockProductServiceMockRecorder) UpdateProduct(product interface{}) *gomock.Call

UpdateProduct indicates an expected call of UpdateProduct.

Jump to

Keyboard shortcuts

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