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

func (_m *Repository) CreateCart(_a0 cart.Cart) (*cart.Cart, error)

CreateCart provides a mock function with given fields: _a0

func (*Repository) CreateCartProduct

func (_m *Repository) CreateCartProduct(_a0 cart.CartProduct) (*cart.CartProduct, error)

CreateCartProduct provides a mock function with given fields: _a0

func (*Repository) FindCartByUserID

func (_m *Repository) FindCartByUserID(_a0 int) (*cart.Cart, error)

FindCartByUserID provides a mock function with given fields: _a0

func (*Repository) FindCartProduct

func (_m *Repository) FindCartProduct(_a0 int, _a1 int) (*cart.CartProduct, error)

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

func (*Repository) FindCartProductByCart

func (_m *Repository) FindCartProductByCart(_a0 int) ([]cart.CartProduct, error)

FindCartProductByCart provides a mock function with given fields: _a0

func (*Repository) SumPrice

func (_m *Repository) SumPrice(_a0 int) int

SumPrice provides a mock function with given fields: _a0

func (*Repository) UpdateCart

func (_m *Repository) UpdateCart(_a0 cart.Cart) (*cart.Cart, error)

UpdateCart provides a mock function with given fields: _a0

func (*Repository) UpdateCartProduct

func (_m *Repository) UpdateCartProduct(_a0 cart.CartProduct) (*cart.CartProduct, error)

UpdateCartProduct 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) CreateCart

func (_m *Service) CreateCart(_a0 int, _a1 cart.CreateCartData) error

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

func (*Service) FindCartByUserID

func (_m *Service) FindCartByUserID(userID int) ([]cart.CartProduct, error)

FindCartByUserID provides a mock function with given fields: userID

Jump to

Keyboard shortcuts

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