mocks

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debugger

type Debugger struct {
	mock.Mock
}

Debugger is an autogenerated mock type for the Debugger type

func NewDebugger

func NewDebugger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Debugger

NewDebugger creates a new instance of Debugger. 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 (*Debugger) Debug

func (_m *Debugger) Debug()

Debug provides a mock function with given fields:

type DeviceHandler

type DeviceHandler struct {
	mock.Mock
}

DeviceHandler is an autogenerated mock type for the DeviceHandler type

func NewDeviceHandler

func NewDeviceHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *DeviceHandler

NewDeviceHandler creates a new instance of DeviceHandler. 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 (*DeviceHandler) AddDevice

func (_m *DeviceHandler) AddDevice(device *contracts.Device) error

AddDevice provides a mock function with given fields: device

func (*DeviceHandler) RemoveDevice

func (_m *DeviceHandler) RemoveDevice(device *contracts.Device) error

RemoveDevice provides a mock function with given fields: device

func (*DeviceHandler) UpdateDevice

func (_m *DeviceHandler) UpdateDevice(device *contracts.Device) error

UpdateDevice provides a mock function with given fields: device

type Discovery

type Discovery struct {
	mock.Mock
}

Discovery is an autogenerated mock type for the Discovery type

func NewDiscovery

func NewDiscovery(t interface {
	mock.TestingT
	Cleanup(func())
}) *Discovery

NewDiscovery creates a new instance of Discovery. 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 (*Discovery) Discover

func (_m *Discovery) Discover(ctx context.Context, param *requests.DiscoveryParameter, deviceCh chan<- *contracts.Device)

Discover provides a mock function with given fields: ctx, param, deviceCh

type Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver

func NewDriver(t interface {
	mock.TestingT
	Cleanup(func())
}) *Driver

NewDriver creates a new instance of Driver. 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 (*Driver) CallService added in v1.1.0

func (_m *Driver) CallService(device *contracts.Device, reqs []contracts.CallRequest) error

CallService provides a mock function with given fields: device, reqs

func (*Driver) Initialize

func (_m *Driver) Initialize(_a0 logger.Logger, asyncCh chan<- *contracts.AsyncValues) error

Initialize provides a mock function with given fields: _a0, asyncCh

func (*Driver) ReadProperty added in v1.1.0

func (_m *Driver) ReadProperty(device *contracts.Device, reqs []contracts.ReadRequest) error

ReadProperty provides a mock function with given fields: device, reqs

func (*Driver) Stop

func (_m *Driver) Stop(force bool) error

Stop provides a mock function with given fields: force

func (*Driver) WriteProperty added in v1.1.0

func (_m *Driver) WriteProperty(device *contracts.Device, reqs []contracts.WriteRequest) error

WriteProperty provides a mock function with given fields: device, reqs

type Reporter added in v1.1.0

type Reporter struct {
	mock.Mock
}

Reporter is an autogenerated mock type for the Reporter type

func NewReporter added in v1.1.0

func NewReporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reporter

NewReporter creates a new instance of Reporter. 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 (*Reporter) ReportEvent added in v1.1.0

func (_m *Reporter) ReportEvent(event *contracts.AsyncValues) error

ReportEvent provides a mock function with given fields: event

type StatusManager added in v1.1.0

type StatusManager struct {
	mock.Mock
}

StatusManager is an autogenerated mock type for the StatusManager type

func NewStatusManager added in v1.1.0

func NewStatusManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatusManager

NewStatusManager creates a new instance of StatusManager. 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 (*StatusManager) OnAddDevice added in v1.1.0

func (_m *StatusManager) OnAddDevice(deviceName string)

OnAddDevice provides a mock function with given fields: deviceName

func (*StatusManager) OnHandleCommandsFailed added in v1.1.0

func (_m *StatusManager) OnHandleCommandsFailed(deviceName string, n int64)

OnHandleCommandsFailed provides a mock function with given fields: deviceName, n

func (*StatusManager) OnHandleCommandsSuccessfully added in v1.1.0

func (_m *StatusManager) OnHandleCommandsSuccessfully(deviceName string, n int64)

OnHandleCommandsSuccessfully provides a mock function with given fields: deviceName, n

func (*StatusManager) OnRemoveDevice added in v1.1.0

func (_m *StatusManager) OnRemoveDevice(deviceName string)

OnRemoveDevice provides a mock function with given fields: deviceName

func (*StatusManager) SetDeviceOffline added in v1.1.0

func (_m *StatusManager) SetDeviceOffline(deviceName string, reason string)

SetDeviceOffline provides a mock function with given fields: deviceName, reason

func (*StatusManager) SetDeviceOnline added in v1.1.0

func (_m *StatusManager) SetDeviceOnline(deviceName string)

SetDeviceOnline provides a mock function with given fields: deviceName

func (*StatusManager) UpdateDeviceStatus added in v1.1.0

func (_m *StatusManager) UpdateDeviceStatus(deviceName string, status string, reason string)

UpdateDeviceStatus provides a mock function with given fields: deviceName, status, reason

Jump to

Keyboard shortcuts

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