mocks

package
v0.0.0-...-60c21ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceService

type DeviceService struct {
	mock.Mock
}

DeviceService is an autogenerated mock type for the DeviceService type

func NewDeviceService

func NewDeviceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *DeviceService

NewDeviceService creates a new instance of DeviceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*DeviceService) Create

func (_m *DeviceService) Create(ctx context.Context, w *domain.DeviceRequest) error

Create provides a mock function with given fields: ctx, w

func (*DeviceService) Delete

func (_m *DeviceService) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*DeviceService) GetAll

func (_m *DeviceService) GetAll(ctx context.Context, page int, limit int) ([]domain.Device, error)

GetAll provides a mock function with given fields: ctx, page, limit

func (*DeviceService) GetByID

func (_m *DeviceService) GetByID(ctx context.Context, id string) (*domain.Device, error)

GetByID provides a mock function with given fields: ctx, id

func (*DeviceService) Update

func (_m *DeviceService) Update(ctx context.Context, w *domain.Device) error

Update provides a mock function with given fields: ctx, w

type SensorService

type SensorService struct {
	mock.Mock
}

SensorService is an autogenerated mock type for the SensorService type

func NewSensorService

func NewSensorService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SensorService

NewSensorService creates a new instance of SensorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SensorService) Create

func (_m *SensorService) Create(ctx context.Context, w *domain.SensorRequest) error

Create provides a mock function with given fields: ctx, w

func (*SensorService) Delete

func (_m *SensorService) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*SensorService) GetAll

func (_m *SensorService) GetAll(ctx context.Context, page int, limit int) ([]domain.Sensor, error)

GetAll provides a mock function with given fields: ctx, page, limit

func (*SensorService) GetByID

func (_m *SensorService) GetByID(ctx context.Context, id string) (*domain.Sensor, error)

GetByID provides a mock function with given fields: ctx, id

func (*SensorService) Update

func (_m *SensorService) Update(ctx context.Context, w *domain.Sensor) error

Update provides a mock function with given fields: ctx, w

type WasteWaterServices

type WasteWaterServices struct {
	mock.Mock
}

WasteWaterServices is an autogenerated mock type for the WasteWaterServices type

func NewWasteWaterServices

func NewWasteWaterServices(t interface {
	mock.TestingT
	Cleanup(func())
}) *WasteWaterServices

NewWasteWaterServices creates a new instance of WasteWaterServices. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*WasteWaterServices) Create

Create provides a mock function with given fields: ctx, w

func (*WasteWaterServices) Delete

func (_m *WasteWaterServices) Delete(ctx context.Context, id string) error

Delete provides a mock function with given fields: ctx, id

func (*WasteWaterServices) GetAll

func (_m *WasteWaterServices) GetAll(ctx context.Context, page int, limit int) ([]domain.WasteWaterData, error)

GetAll provides a mock function with given fields: ctx, page, limit

func (*WasteWaterServices) GetByID

GetByID provides a mock function with given fields: ctx, id

func (*WasteWaterServices) Update

Update provides a mock function with given fields: ctx, w

Jump to

Keyboard shortcuts

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