Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Create(secNum int, curTemp int, minTemp int, curCap int, minCap int, maxCap int, ...) (section.Section, error)
- func (_m *Repository) DeleteSection(id int) error
- func (_m *Repository) GetAll() ([]section.Section, error)
- func (_m *Repository) GetByID(id int) (section.Section, error)
- func (_m *Repository) UpdateSecID(id int, secNum int) (section.Section, section.CodeError)
- type Services
- func (_m *Services) Create(secNum int, curTemp int, minTemp int, curCap int, minCap int, maxCap int, ...) (section.Section, error)
- func (_m *Services) DeleteSection(id int) error
- func (_m *Services) GetAll() ([]section.Section, error)
- func (_m *Services) GetByID(id int) (section.Section, error)
- func (_m *Services) UpdateSecID(id int, secNum int) (section.Section, section.CodeError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
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 ¶
UpdateSecID provides a mock function with given fields: id, secNum
type Services ¶
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 ¶
DeleteSection provides a mock function with given fields: id