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) AddProduct

func (_m *Repository) AddProduct(_a0 product.Product) error

AddProduct provides a mock function with given fields: _a0

func (*Repository) FindProductById

func (_m *Repository) FindProductById(id int) (*product.Product, error)

FindProductById provides a mock function with given fields: id

func (*Repository) UpdateProduct

func (_m *Repository) UpdateProduct(_a0 product.Product) error

UpdateProduct 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) AddProduct

func (_m *Service) AddProduct(_a0 product.CreateProductData) error

AddProduct provides a mock function with given fields: _a0

func (*Service) UpdateProduct

func (_m *Service) UpdateProduct(_a0 int, _a1 product.UpdateProduct) error

UpdateProduct provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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