mocks

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

func (_m *Repository) Create(cardNum int, firstName string, lastName string, warehouseId int) (employee.Employee, error)

Create provides a mock function with given fields: cardNum, firstName, lastName, warehouseId

func (*Repository) Delete

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

Delete provides a mock function with given fields: id

func (*Repository) GetAll

func (_m *Repository) GetAll() ([]employee.Employee, error)

GetAll provides a mock function with given fields:

func (*Repository) GetById

func (_m *Repository) GetById(id int) (employee.Employee, error)

GetById provides a mock function with given fields: id

func (*Repository) Update

func (_m *Repository) Update(id int, firstName string, lastName string, warehouseId int) (employee.Employee, error)

Update provides a mock function with given fields: id, firstName, lastName, warehouseId

type Services

type Services struct {
	mock.Mock
}

Services is an autogenerated mock type for the Services type

func NewServices

func NewServices(t mockConstructorTestingTNewServices) *Services

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

func (*Services) Create

func (_m *Services) Create(cardNum int, firstName string, lastName string, warehouseId int) (employee.Employee, error)

Create provides a mock function with given fields: cardNum, firstName, lastName, warehouseId

func (*Services) Delete

func (_m *Services) Delete(id int) error

Delete provides a mock function with given fields: id

func (*Services) GetAll

func (_m *Services) GetAll() ([]employee.Employee, error)

GetAll provides a mock function with given fields:

func (*Services) GetById

func (_m *Services) GetById(id int) (employee.Employee, error)

GetById provides a mock function with given fields: id

func (*Services) GetCount

func (_m *Services) GetCount(id int, counter int) (employee.EmployeeOrderCount, error)

GetCount provides a mock function with given fields: id, counter

func (*Services) Update

func (_m *Services) Update(emp employee.Employee, id int) (employee.Employee, error)

Update provides a mock function with given fields: emp, id

Jump to

Keyboard shortcuts

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