mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

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 {
	SubscriptionTarget
	mock.Mock
}

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) ID

func (_m *Device) ID() uint64

ID provides a mock function with given fields:

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

type Group added in v0.2.0

type Group struct {
	SubscriptionTarget
	mock.Mock
}

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) 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

type Light

type Light struct {
	Device
	mock.Mock
}

func (*Light) CachedColor added in v0.3.0

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

CachedColor 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) SetColor

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

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

func (*Light) SetPowerDuration

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

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

type Location added in v0.2.0

type Location struct {
	Group
	mock.Mock
}

type Logger

type Logger struct {
	mock.Mock
}

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 {
	SubscriptionTarget
	mock.Mock
}

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) 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

type SubscriptionTarget

type SubscriptionTarget struct {
	mock.Mock
}

func (*SubscriptionTarget) CloseSubscription

func (_m *SubscriptionTarget) CloseSubscription(_a0 *common.Subscription) error

CloseSubscription provides a mock function with given fields: _a0

func (*SubscriptionTarget) NewSubscription

func (_m *SubscriptionTarget) NewSubscription() (*common.Subscription, error)

NewSubscription 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