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 DeviceRepositoryInterface

type DeviceRepositoryInterface struct {
	mock.Mock
}

DeviceRepositoryInterface is an autogenerated mock type for the DeviceRepositoryInterface type

func NewDeviceRepositoryInterface

func NewDeviceRepositoryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *DeviceRepositoryInterface

NewDeviceRepositoryInterface creates a new instance of DeviceRepositoryInterface. 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 (*DeviceRepositoryInterface) Create

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

func (*DeviceRepositoryInterface) Delete

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

func (*DeviceRepositoryInterface) GetAll

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

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

func (*DeviceRepositoryInterface) GetByID

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

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