mocks

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) GetRetryInterval

func (_m *Client) GetRetryInterval() *time.Duration

GetRetryInterval provides a mock function with given fields:

func (*Client) GetTimeout

func (_m *Client) GetTimeout() *time.Duration

GetTimeout provides a mock function with given fields:

type Device

type Device struct {
	mock.Mock
}

Device is an autogenerated mock type for the Device type

func (*Device) CachedFirmwareVersion added in v0.4.2

func (_m *Device) CachedFirmwareVersion() string

CachedFirmwareVersion provides a mock function with given fields:

func (*Device) CachedPower added in v0.3.0

func (_m *Device) CachedPower() bool

CachedPower provides a mock function with given fields:

func (*Device) GetFirmwareVersion added in v0.4.2

func (_m *Device) GetFirmwareVersion() (string, error)

GetFirmwareVersion provides a mock function with given fields:

func (*Device) GetLabel

func (_m *Device) GetLabel() (string, error)

GetLabel provides a mock function with given fields:

func (*Device) GetPower

func (_m *Device) GetPower() (bool, error)

GetPower provides a mock function with given fields:

func (*Device) GetProductName added in v1.0.0

func (_m *Device) GetProductName() (string, error)

GetProductName provides a mock function with given fields:

func (*Device) ID

func (_m *Device) ID() uint64

ID provides a mock function with given fields:

func (*Device) Notify added in v1.0.0

func (_m *Device) Notify(event interface{})

Notify provides a mock function with given fields: event

func (*Device) SetLabel

func (_m *Device) SetLabel(label string) error

SetLabel provides a mock function with given fields: label

func (*Device) SetPower

func (_m *Device) SetPower(state bool) error

SetPower provides a mock function with given fields: state

func (*Device) Subscribe added in v1.0.0

func (_m *Device) Subscribe() *common.Subscription

Subscribe provides a mock function with given fields:

type Group added in v0.2.0

type Group struct {
	mock.Mock
}

Group is an autogenerated mock type for the Group type

func (*Group) Devices added in v0.2.0

func (_m *Group) Devices() []common.Device

Devices provides a mock function with given fields:

func (*Group) GetColor added in v0.2.0

func (_m *Group) GetColor() (common.Color, error)

GetColor provides a mock function with given fields:

func (*Group) GetLabel added in v0.2.0

func (_m *Group) GetLabel() string

GetLabel provides a mock function with given fields:

func (*Group) GetPower added in v0.2.0

func (_m *Group) GetPower() (bool, error)

GetPower provides a mock function with given fields:

func (*Group) ID added in v0.2.0

func (_m *Group) ID() string

ID provides a mock function with given fields:

func (*Group) Lights added in v0.2.0

func (_m *Group) Lights() []common.Light

Lights provides a mock function with given fields:

func (*Group) Notify added in v1.0.0

func (_m *Group) Notify(event interface{})

Notify provides a mock function with given fields: event

func (*Group) SetColor added in v0.2.0

func (_m *Group) SetColor(color common.Color, duration time.Duration) error

SetColor provides a mock function with given fields: color, duration

func (*Group) SetPower added in v0.2.0

func (_m *Group) SetPower(state bool) error

SetPower provides a mock function with given fields: state

func (*Group) SetPowerDuration added in v0.2.0

func (_m *Group) SetPowerDuration(state bool, duration time.Duration) error

SetPowerDuration provides a mock function with given fields: state, duration

func (*Group) Subscribe added in v1.0.0

func (_m *Group) Subscribe() *common.Subscription

Subscribe provides a mock function with given fields:

type Light

type Light struct {
	mock.Mock
}

Light is an autogenerated mock type for the Light type

func (*Light) CachedColor added in v0.3.0

func (_m *Light) CachedColor() common.Color

CachedColor provides a mock function with given fields:

func (*Light) CachedFirmwareVersion added in v1.0.0

func (_m *Light) CachedFirmwareVersion() string

CachedFirmwareVersion provides a mock function with given fields:

func (*Light) CachedPower added in v1.0.0

func (_m *Light) CachedPower() bool

CachedPower provides a mock function with given fields:

func (*Light) GetColor

func (_m *Light) GetColor() (common.Color, error)

GetColor provides a mock function with given fields:

func (*Light) GetFirmwareVersion added in v1.0.0

func (_m *Light) GetFirmwareVersion() (string, error)

GetFirmwareVersion provides a mock function with given fields:

func (*Light) GetLabel added in v1.0.0

func (_m *Light) GetLabel() (string, error)

GetLabel provides a mock function with given fields:

func (*Light) GetPower added in v1.0.0

func (_m *Light) GetPower() (bool, error)

GetPower provides a mock function with given fields:

func (*Light) GetProductName added in v1.0.0

func (_m *Light) GetProductName() (string, error)

GetProductName provides a mock function with given fields:

func (*Light) ID added in v1.0.0

func (_m *Light) ID() uint64

ID provides a mock function with given fields:

func (*Light) Notify added in v1.0.0

func (_m *Light) Notify(event interface{})

Notify provides a mock function with given fields: event

func (*Light) SetColor

func (_m *Light) SetColor(color common.Color, duration time.Duration) error

SetColor provides a mock function with given fields: color, duration

func (*Light) SetLabel added in v1.0.0

func (_m *Light) SetLabel(label string) error

SetLabel provides a mock function with given fields: label

func (*Light) SetPower added in v1.0.0

func (_m *Light) SetPower(state bool) error

SetPower provides a mock function with given fields: state

func (*Light) SetPowerDuration

func (_m *Light) SetPowerDuration(state bool, duration time.Duration) error

SetPowerDuration provides a mock function with given fields: state, duration

func (*Light) Subscribe added in v1.0.0

func (_m *Light) Subscribe() *common.Subscription

Subscribe provides a mock function with given fields:

type Location added in v0.2.0

type Location struct {
	mock.Mock
}

Location is an autogenerated mock type for the Location type

func (*Location) Devices added in v1.0.0

func (_m *Location) Devices() []common.Device

Devices provides a mock function with given fields:

func (*Location) GetColor added in v1.0.0

func (_m *Location) GetColor() (common.Color, error)

GetColor provides a mock function with given fields:

func (*Location) GetLabel added in v1.0.0

func (_m *Location) GetLabel() string

GetLabel provides a mock function with given fields:

func (*Location) GetPower added in v1.0.0

func (_m *Location) GetPower() (bool, error)

GetPower provides a mock function with given fields:

func (*Location) ID added in v1.0.0

func (_m *Location) ID() string

ID provides a mock function with given fields:

func (*Location) Lights added in v1.0.0

func (_m *Location) Lights() []common.Light

Lights provides a mock function with given fields:

func (*Location) Notify added in v1.0.0

func (_m *Location) Notify(event interface{})

Notify provides a mock function with given fields: event

func (*Location) SetColor added in v1.0.0

func (_m *Location) SetColor(color common.Color, duration time.Duration) error

SetColor provides a mock function with given fields: color, duration

func (*Location) SetPower added in v1.0.0

func (_m *Location) SetPower(state bool) error

SetPower provides a mock function with given fields: state

func (*Location) SetPowerDuration added in v1.0.0

func (_m *Location) SetPowerDuration(state bool, duration time.Duration) error

SetPowerDuration provides a mock function with given fields: state, duration

func (*Location) Subscribe added in v1.0.0

func (_m *Location) Subscribe() *common.Subscription

Subscribe provides a mock function with given fields:

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func (*Logger) Debugf

func (_m *Logger) Debugf(format string, args ...interface{})

Debugf provides a mock function with given fields: format, args

func (*Logger) Errorf

func (_m *Logger) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*Logger) Fatalf

func (_m *Logger) Fatalf(format string, args ...interface{})

Fatalf provides a mock function with given fields: format, args

func (*Logger) Infof

func (_m *Logger) Infof(format string, args ...interface{})

Infof provides a mock function with given fields: format, args

func (*Logger) Panicf

func (_m *Logger) Panicf(format string, args ...interface{})

Panicf provides a mock function with given fields: format, args

func (*Logger) Warnf

func (_m *Logger) Warnf(format string, args ...interface{})

Warnf provides a mock function with given fields: format, args

type Protocol

type Protocol struct {
	mock.Mock
}

Protocol is an autogenerated mock type for the Protocol type

func (*Protocol) Close

func (_m *Protocol) Close() error

Close provides a mock function with given fields:

func (*Protocol) Discover

func (_m *Protocol) Discover() error

Discover provides a mock function with given fields:

func (*Protocol) GetDevice added in v0.5.0

func (_m *Protocol) GetDevice(id uint64) (common.Device, error)

GetDevice provides a mock function with given fields: id

func (*Protocol) GetDevices added in v0.5.0

func (_m *Protocol) GetDevices() ([]common.Device, error)

GetDevices provides a mock function with given fields:

func (*Protocol) GetGroup added in v0.5.0

func (_m *Protocol) GetGroup(id string) (common.Group, error)

GetGroup provides a mock function with given fields: id

func (*Protocol) GetGroups added in v0.5.0

func (_m *Protocol) GetGroups() ([]common.Group, error)

GetGroups provides a mock function with given fields:

func (*Protocol) GetLocation added in v0.5.0

func (_m *Protocol) GetLocation(id string) (common.Location, error)

GetLocation provides a mock function with given fields: id

func (*Protocol) GetLocations added in v0.5.0

func (_m *Protocol) GetLocations() ([]common.Location, error)

GetLocations provides a mock function with given fields:

func (*Protocol) Notify added in v1.0.0

func (_m *Protocol) Notify(event interface{})

Notify provides a mock function with given fields: event

func (*Protocol) SetColor

func (_m *Protocol) SetColor(color common.Color, duration time.Duration) error

SetColor provides a mock function with given fields: color, duration

func (*Protocol) SetPower

func (_m *Protocol) SetPower(state bool) error

SetPower provides a mock function with given fields: state

func (*Protocol) SetPowerDuration

func (_m *Protocol) SetPowerDuration(state bool, duration time.Duration) error

SetPowerDuration provides a mock function with given fields: state, duration

func (*Protocol) SetRetryInterval added in v0.5.0

func (_m *Protocol) SetRetryInterval(retryInterval *time.Duration)

SetRetryInterval provides a mock function with given fields: retryInterval

func (*Protocol) SetTimeout added in v0.5.0

func (_m *Protocol) SetTimeout(timeout *time.Duration)

SetTimeout provides a mock function with given fields: timeout

func (*Protocol) Subscribe added in v1.0.0

func (_m *Protocol) Subscribe() *common.Subscription

Subscribe provides a mock function with given fields:

type SubscriptionTarget

type SubscriptionTarget struct {
	mock.Mock
}

SubscriptionTarget is an autogenerated mock type for the SubscriptionTarget type

func (*SubscriptionTarget) Notify added in v1.0.0

func (_m *SubscriptionTarget) Notify(event interface{})

Notify provides a mock function with given fields: event

func (*SubscriptionTarget) Subscribe added in v1.0.0

func (_m *SubscriptionTarget) Subscribe() *common.Subscription

Subscribe 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