mock_repository

package
v0.0.0-...-e85e4ab Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 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 NewRepository

func NewRepository(t mockConstructorTestingTNewRepository) *Repository

NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Repository) CreateWarehouse

func (_m *Repository) CreateWarehouse(code string, address string, tel string, localityID int) (domain.Warehouse, error)

CreateWarehouse provides a mock function with given fields: code, address, tel, localityID

func (*Repository) DeleteWarehouse

func (_m *Repository) DeleteWarehouse(id int) error

DeleteWarehouse provides a mock function with given fields: id

func (*Repository) FindByWarehouseCode

func (_m *Repository) FindByWarehouseCode(code string) (domain.Warehouse, error)

FindByWarehouseCode provides a mock function with given fields: code

func (*Repository) GetAll

func (_m *Repository) GetAll() []domain.Warehouse

GetAll provides a mock function with given fields:

func (*Repository) GetByID

func (_m *Repository) GetByID(id int) (domain.Warehouse, error)

GetByID provides a mock function with given fields: id

func (*Repository) UpdatedWarehouseID

func (_m *Repository) UpdatedWarehouseID(id int, code string) (domain.Warehouse, error)

UpdatedWarehouseID provides a mock function with given fields: id, code

Jump to

Keyboard shortcuts

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