Documentation ¶
Overview ¶
Package mockproducts is a generated GoMock package.
Index ¶
- type MockProductsRepo
- func (m *MockProductsRepo) CreateProduct(tx *sqlx.Tx, product products.Product) (uint64, error)
- func (m *MockProductsRepo) DeleteProduct(tx *sqlx.Tx, id uint64) error
- func (m *MockProductsRepo) EXPECT() *MockProductsRepoMockRecorder
- func (m *MockProductsRepo) FindProduct(tx *sqlx.Tx, id uint64) (products.Product, error)
- func (m *MockProductsRepo) FindProductList(tx *sqlx.Tx, username, productName string, sortBy products.SortType) ([]products.Product, error)
- func (m *MockProductsRepo) UpdateProduct(tx *sqlx.Tx, newProduct products.Product) (products.Product, error)
- type MockProductsRepoMockRecorder
- func (mr *MockProductsRepoMockRecorder) CreateProduct(tx, product any) *gomock.Call
- func (mr *MockProductsRepoMockRecorder) DeleteProduct(tx, id any) *gomock.Call
- func (mr *MockProductsRepoMockRecorder) FindProduct(tx, id any) *gomock.Call
- func (mr *MockProductsRepoMockRecorder) FindProductList(tx, username, productName, sortBy any) *gomock.Call
- func (mr *MockProductsRepoMockRecorder) UpdateProduct(tx, newProduct any) *gomock.Call
- type MockProductsStatistics
- type MockProductsStatisticsMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProductsRepo ¶
type MockProductsRepo struct {
// contains filtered or unexported fields
}
MockProductsRepo is a mock of ProductsRepo interface.
func NewMockProductsRepo ¶
func NewMockProductsRepo(ctrl *gomock.Controller) *MockProductsRepo
NewMockProductsRepo creates a new mock instance.
func (*MockProductsRepo) CreateProduct ¶
CreateProduct mocks base method.
func (*MockProductsRepo) DeleteProduct ¶
func (m *MockProductsRepo) DeleteProduct(tx *sqlx.Tx, id uint64) error
DeleteProduct mocks base method.
func (*MockProductsRepo) EXPECT ¶
func (m *MockProductsRepo) EXPECT() *MockProductsRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductsRepo) FindProduct ¶
FindProduct mocks base method.
func (*MockProductsRepo) FindProductList ¶
func (m *MockProductsRepo) FindProductList(tx *sqlx.Tx, username, productName string, sortBy products.SortType) ([]products.Product, error)
FindProductList mocks base method.
func (*MockProductsRepo) UpdateProduct ¶
func (m *MockProductsRepo) UpdateProduct(tx *sqlx.Tx, newProduct products.Product) (products.Product, error)
UpdateProduct mocks base method.
type MockProductsRepoMockRecorder ¶
type MockProductsRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockProductsRepoMockRecorder is the mock recorder for MockProductsRepo.
func (*MockProductsRepoMockRecorder) CreateProduct ¶
func (mr *MockProductsRepoMockRecorder) CreateProduct(tx, product any) *gomock.Call
CreateProduct indicates an expected call of CreateProduct.
func (*MockProductsRepoMockRecorder) DeleteProduct ¶
func (mr *MockProductsRepoMockRecorder) DeleteProduct(tx, id any) *gomock.Call
DeleteProduct indicates an expected call of DeleteProduct.
func (*MockProductsRepoMockRecorder) FindProduct ¶
func (mr *MockProductsRepoMockRecorder) FindProduct(tx, id any) *gomock.Call
FindProduct indicates an expected call of FindProduct.
func (*MockProductsRepoMockRecorder) FindProductList ¶
func (mr *MockProductsRepoMockRecorder) FindProductList(tx, username, productName, sortBy any) *gomock.Call
FindProductList indicates an expected call of FindProductList.
func (*MockProductsRepoMockRecorder) UpdateProduct ¶
func (mr *MockProductsRepoMockRecorder) UpdateProduct(tx, newProduct any) *gomock.Call
UpdateProduct indicates an expected call of UpdateProduct.
type MockProductsStatistics ¶
type MockProductsStatistics struct {
// contains filtered or unexported fields
}
MockProductsStatistics is a mock of ProductsStatistics interface.
func NewMockProductsStatistics ¶
func NewMockProductsStatistics(ctrl *gomock.Controller) *MockProductsStatistics
NewMockProductsStatistics creates a new mock instance.
func (*MockProductsStatistics) EXPECT ¶
func (m *MockProductsStatistics) EXPECT() *MockProductsStatisticsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockProductsStatisticsMockRecorder ¶
type MockProductsStatisticsMockRecorder struct {
// contains filtered or unexported fields
}
MockProductsStatisticsMockRecorder is the mock recorder for MockProductsStatistics.