mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryServiceInterface

type CategoryServiceInterface struct {
	mock.Mock
}

CategoryServiceInterface is an autogenerated mock type for the CategoryServiceInterface type

func NewCategoryServiceInterface

func NewCategoryServiceInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *CategoryServiceInterface

NewCategoryServiceInterface creates a new instance of CategoryServiceInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CategoryServiceInterface) CreateCategory

CreateCategory provides a mock function with given fields: ctx, _a1

func (*CategoryServiceInterface) DeleteCategory

func (_m *CategoryServiceInterface) DeleteCategory(ctx context.Context, id int) error

DeleteCategory provides a mock function with given fields: ctx, id

func (*CategoryServiceInterface) GetAllCategories

func (_m *CategoryServiceInterface) GetAllCategories(ctx context.Context) ([]repositorymodel.Category, error)

GetAllCategories provides a mock function with given fields: ctx

func (*CategoryServiceInterface) GetCategoryByID

func (_m *CategoryServiceInterface) GetCategoryByID(ctx context.Context, id int) (*repositorymodel.Category, error)

GetCategoryByID provides a mock function with given fields: ctx, id

func (*CategoryServiceInterface) UpdateCategory

func (_m *CategoryServiceInterface) UpdateCategory(ctx context.Context, id int, _a2 model.UpdateCategoryRequest) error

UpdateCategory provides a mock function with given fields: ctx, id, _a2

Jump to

Keyboard shortcuts

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