mockproducts

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mockproducts is a generated GoMock package.

Index

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

func (m *MockProductsRepo) CreateProduct(tx *sqlx.Tx, product products.Product) (uint64, error)

CreateProduct mocks base method.

func (*MockProductsRepo) DeleteProduct

func (m *MockProductsRepo) DeleteProduct(tx *sqlx.Tx, id uint64) error

DeleteProduct mocks base method.

func (*MockProductsRepo) EXPECT

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

func (*MockProductsRepo) FindProduct

func (m *MockProductsRepo) FindProduct(tx *sqlx.Tx, id uint64) (products.Product, error)

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

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

func (*MockProductsStatistics) Send

Send mocks base method.

type MockProductsStatisticsMockRecorder

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

MockProductsStatisticsMockRecorder is the mock recorder for MockProductsStatistics.

func (*MockProductsStatisticsMockRecorder) Send

Send indicates an expected call of Send.

Jump to

Keyboard shortcuts

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