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(secNum int, curTemp int, minTemp int, curCap int, minCap int, maxCap int, wareID int, typeID int) (section.Section, error)

Create provides a mock function with given fields: secNum, curTemp, minTemp, curCap, minCap, maxCap, wareID, typeID

func (*Repository) DeleteSection

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

DeleteSection provides a mock function with given fields: id

func (*Repository) GetAll

func (_m *Repository) GetAll() ([]section.Section, error)

GetAll provides a mock function with given fields:

func (*Repository) GetByID

func (_m *Repository) GetByID(id int) (section.Section, error)

GetByID provides a mock function with given fields: id

func (*Repository) UpdateSecID

func (_m *Repository) UpdateSecID(id int, secNum int) (section.Section, section.CodeError)

UpdateSecID provides a mock function with given fields: id, secNum

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(secNum int, curTemp int, minTemp int, curCap int, minCap int, maxCap int, wareID int, typeID int) (section.Section, error)

Create provides a mock function with given fields: secNum, curTemp, minTemp, curCap, minCap, maxCap, wareID, typeID

func (*Services) DeleteSection

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

DeleteSection provides a mock function with given fields: id

func (*Services) GetAll

func (_m *Services) GetAll() ([]section.Section, error)

GetAll provides a mock function with given fields:

func (*Services) GetByID

func (_m *Services) GetByID(id int) (section.Section, error)

GetByID provides a mock function with given fields: id

func (*Services) UpdateSecID

func (_m *Services) UpdateSecID(id int, secNum int) (section.Section, section.CodeError)

UpdateSecID provides a mock function with given fields: id, secNum

Jump to

Keyboard shortcuts

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