mocks

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	mock.Mock
}

Registry is an autogenerated mock type for the Registry type

func NewRegistry

func NewRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *Registry

NewRegistry creates a new instance of Registry. 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 (*Registry) Close

func (_m *Registry) Close() error

Close provides a mock function with given fields:

func (*Registry) IsDisabled

func (_m *Registry) IsDisabled(_a0 string) bool

IsDisabled provides a mock function with given fields: _a0

func (*Registry) IsRegistered

func (_m *Registry) IsRegistered(_a0 string) bool

IsRegistered provides a mock function with given fields: _a0

func (*Registry) Open

func (_m *Registry) Open(_a0 context.Context, _a1 string) error

Open provides a mock function with given fields: _a0, _a1

func (*Registry) SetDisabled

func (_m *Registry) SetDisabled(_a0 string, _a1 bool) error

SetDisabled provides a mock function with given fields: _a0, _a1

func (*Registry) SetRegistered

func (_m *Registry) SetRegistered(_a0 string, _a1 bool) error

SetRegistered provides a mock function with given fields: _a0, _a1

type Sensor

type Sensor struct {
	mock.Mock
}

Sensor is an autogenerated mock type for the Sensor type

func NewSensor

func NewSensor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sensor

NewSensor creates a new instance of Sensor. 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 (*Sensor) Attributes

func (_m *Sensor) Attributes() interface{}

Attributes provides a mock function with given fields:

func (*Sensor) Category

func (_m *Sensor) Category() string

Category provides a mock function with given fields:

func (*Sensor) DeviceClass

func (_m *Sensor) DeviceClass() deviceClass.SensorDeviceClass

DeviceClass provides a mock function with given fields:

func (*Sensor) ID

func (_m *Sensor) ID() string

ID provides a mock function with given fields:

func (*Sensor) Icon

func (_m *Sensor) Icon() string

Icon provides a mock function with given fields:

func (*Sensor) Name

func (_m *Sensor) Name() string

Name provides a mock function with given fields:

func (*Sensor) SensorType

func (_m *Sensor) SensorType() sensorType.SensorType

SensorType provides a mock function with given fields:

func (*Sensor) State

func (_m *Sensor) State() interface{}

State provides a mock function with given fields:

func (*Sensor) StateClass

func (_m *Sensor) StateClass() stateClass.SensorStateClass

StateClass provides a mock function with given fields:

func (*Sensor) Units

func (_m *Sensor) Units() string

Units provides a mock function with given fields:

Jump to

Keyboard shortcuts

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