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 SensorRepositoryInterface

type SensorRepositoryInterface struct {
	mock.Mock
}

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

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

func (*SensorRepositoryInterface) Delete

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

func (*SensorRepositoryInterface) GetByID

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

func (*SensorRepositoryInterface) 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