mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actuator

type Actuator struct {
	mock.Mock
}

Actuator is an autogenerated mock type for the Actuator type

func (*Actuator) Off

func (_m *Actuator) Off() error

Off provides a mock function with given fields:

func (*Actuator) On

func (_m *Actuator) On() error

On provides a mock function with given fields:

type ChamberRepo

type ChamberRepo struct {
	mock.Mock
}

ChamberRepo is an autogenerated mock type for the ChamberRepo type

func (*ChamberRepo) Delete

func (_m *ChamberRepo) Delete(id string) error

Delete provides a mock function with given fields: id

func (*ChamberRepo) Get

func (_m *ChamberRepo) Get(id string) (*chamber.Chamber, error)

Get provides a mock function with given fields: id

func (*ChamberRepo) GetAll

func (_m *ChamberRepo) GetAll() ([]*chamber.Chamber, error)

GetAll provides a mock function with given fields:

func (*ChamberRepo) Save

func (_m *ChamberRepo) Save(c *chamber.Chamber) error

Save provides a mock function with given fields: c

type Configurator

type Configurator struct {
	mock.Mock
}

Configurator is an autogenerated mock type for the Configurator type

func (*Configurator) CreateDs18b20

func (_m *Configurator) CreateDs18b20(thermometerID string) (device.Thermometer, error)

CreateDs18b20 provides a mock function with given fields: thermometerID

func (*Configurator) CreateGPIOActuator

func (_m *Configurator) CreateGPIOActuator(pin string) (device.Actuator, error)

CreateGPIOActuator provides a mock function with given fields: pin

func (*Configurator) CreateTilt

func (_m *Configurator) CreateTilt(color tilt.Color) (device.ThermometerAndHydrometer, error)

CreateTilt provides a mock function with given fields: color

type Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func NewController added in v0.1.1

func NewController(t mockConstructorTestingTNewController) *Controller

NewController creates a new instance of Controller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Controller) Delete

func (_m *Controller) Delete(id string) error

Delete provides a mock function with given fields: id

func (*Controller) Get

func (_m *Controller) Get(id string) (*chamber.Chamber, error)

Get provides a mock function with given fields: id

func (*Controller) GetAll

func (_m *Controller) GetAll() ([]*chamber.Chamber, error)

GetAll provides a mock function with given fields:

func (*Controller) Save

func (_m *Controller) Save(c *chamber.Chamber) error

Save provides a mock function with given fields: c

func (*Controller) StartFermentation

func (_m *Controller) StartFermentation(ctx context.Context, chamberID string, step string) error

StartFermentation provides a mock function with given fields: ctx, chamberID, step

func (*Controller) StopFermentation

func (_m *Controller) StopFermentation(chamberID string) error

StopFermentation provides a mock function with given fields: chamberID

type FileReader

type FileReader struct {
	mock.Mock
}

FileReader is an autogenerated mock type for the FileReader type

func (*FileReader) ReadFile

func (_m *FileReader) ReadFile(name string) ([]byte, error)

ReadFile provides a mock function with given fields: name

type Hydrometer

type Hydrometer struct {
	mock.Mock
}

Hydrometer is an autogenerated mock type for the Hydrometer type

func (*Hydrometer) GetGravity

func (_m *Hydrometer) GetGravity() (float64, error)

GetGravity provides a mock function with given fields:

func (*Hydrometer) GetID

func (_m *Hydrometer) GetID() string

GetID provides a mock function with given fields:

type Metrics

type Metrics struct {
	mock.Mock
}

Metrics is an autogenerated mock type for the Metrics type

func (*Metrics) Count

func (_m *Metrics) Count(bucket string, n interface{})

Count provides a mock function with given fields: bucket, n

func (*Metrics) Gauge

func (_m *Metrics) Gauge(bucket string, value interface{})

Gauge provides a mock function with given fields: bucket, value

func (*Metrics) Histogram

func (_m *Metrics) Histogram(bucket string, value interface{})

Histogram provides a mock function with given fields: bucket, value

func (*Metrics) Increment

func (_m *Metrics) Increment(bucket string)

Increment provides a mock function with given fields: bucket

func (*Metrics) Timing

func (_m *Metrics) Timing(bucket string, value interface{})

Timing provides a mock function with given fields: bucket, value

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) GetAllBatchSummaries

func (_m *Service) GetAllBatchSummaries(ctx context.Context) ([]brewfather.BatchSummary, error)

GetAll provides a mock function with given fields: ctx

func (*Service) GetBatchDetail

func (_m *Service) GetBatchDetail(ctx context.Context, id string) (*brewfather.BatchDetail, error)

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

func (*Service) Log

func (_m *Service) Log(ctx context.Context, log brewfather.LogEntry) error

Log provides a mock function with given fields: ctx, log

type SettingsRepo

type SettingsRepo struct {
	mock.Mock
}

Repo is an autogenerated mock type for the Repo type

func (*SettingsRepo) Get

func (_m *SettingsRepo) Get() (*settings.Settings, error)

Get provides a mock function with given fields:

func (*SettingsRepo) Save

func (_m *SettingsRepo) Save(c *settings.Settings) error

Save provides a mock function with given fields: c

type Thermometer

type Thermometer struct {
	mock.Mock
}

Thermometer is an autogenerated mock type for the Thermometer type

func (*Thermometer) GetID

func (_m *Thermometer) GetID() string

GetID provides a mock function with given fields:

func (*Thermometer) GetTemperature

func (_m *Thermometer) GetTemperature() (float64, error)

GetTemperature provides a mock function with given fields:

type ThermometerAndHydrometer

type ThermometerAndHydrometer struct {
	mock.Mock
}

ThermometerAndHydrometer is an autogenerated mock type for the ThermometerAndHydrometer type

func (*ThermometerAndHydrometer) GetGravity

func (_m *ThermometerAndHydrometer) GetGravity() (float64, error)

GetGravity provides a mock function with given fields:

func (*ThermometerAndHydrometer) GetID

func (_m *ThermometerAndHydrometer) GetID() string

GetID provides a mock function with given fields:

func (*ThermometerAndHydrometer) GetTemperature

func (_m *ThermometerAndHydrometer) GetTemperature() (float64, error)

GetTemperature 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