mocks

package
v0.0.0-...-e4a3b16 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) AddCategory

func (_m *Repository) AddCategory(_a0 category.Category) error

AddCategory provides a mock function with given fields: _a0

func (*Repository) FindCategoryById

func (_m *Repository) FindCategoryById(id int) (*category.Category, error)

FindCategoryById provides a mock function with given fields: id

func (*Repository) UpdateCategory

func (_m *Repository) UpdateCategory(_a0 category.Category) error

UpdateCategory provides a mock function with given fields: _a0

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) AddCategory

func (_m *Service) AddCategory(_a0 category.CreateCategoryData) error

AddCategory provides a mock function with given fields: _a0

func (*Service) UpdateCategory

func (_m *Service) UpdateCategory(id int, name string, isActive bool) error

UpdateCategory provides a mock function with given fields: id, name, isActive

Jump to

Keyboard shortcuts

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