Documentation ¶
Index ¶
- type SensorRepositoryInterface
- func (_m *SensorRepositoryInterface) Create(ctx context.Context, w *domain.SensorRequest) error
- func (_m *SensorRepositoryInterface) Delete(ctx context.Context, id string) error
- func (_m *SensorRepositoryInterface) GetAll(ctx context.Context, page int, limit int) ([]domain.Sensor, error)
- func (_m *SensorRepositoryInterface) GetByID(ctx context.Context, id string) (*domain.Sensor, error)
- func (_m *SensorRepositoryInterface) Update(ctx context.Context, w *domain.Sensor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SensorRepositoryInterface ¶
SensorRepositoryInterface is an autogenerated mock type for the SensorRepositoryInterface type
func NewSensorRepositoryInterface ¶
func NewSensorRepositoryInterface(t interface { mock.TestingT Cleanup(func()) }) *SensorRepositoryInterface
NewSensorRepositoryInterface creates a new instance of SensorRepositoryInterface. 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 (*SensorRepositoryInterface) Create ¶
func (_m *SensorRepositoryInterface) Create(ctx context.Context, w *domain.SensorRequest) error
Create provides a mock function with given fields: ctx, w
func (*SensorRepositoryInterface) Delete ¶
func (_m *SensorRepositoryInterface) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*SensorRepositoryInterface) GetAll ¶
func (_m *SensorRepositoryInterface) GetAll(ctx context.Context, page int, limit int) ([]domain.Sensor, error)
GetAll provides a mock function with given fields: ctx, page, limit
Click to show internal directories.
Click to hide internal directories.