Documentation ¶
Index ¶
- type Poller
- type Poller_Expecter
- type Poller_Refresh_Call
- type Poller_Subscribe_Call
- type Poller_Unsubscribe_Call
- type TadoGetter
- func (_m *TadoGetter) EXPECT() *TadoGetter_Expecter
- func (_m *TadoGetter) GetHomeState(ctx context.Context) (tado.HomeState, error)
- func (_m *TadoGetter) GetMobileDevices(_a0 context.Context) ([]tado.MobileDevice, error)
- func (_m *TadoGetter) GetWeatherInfo(_a0 context.Context) (tado.WeatherInfo, error)
- func (_m *TadoGetter) GetZoneInfo(_a0 context.Context, _a1 int) (tado.ZoneInfo, error)
- func (_m *TadoGetter) GetZones(_a0 context.Context) (tado.Zones, error)
- type TadoGetter_Expecter
- func (_e *TadoGetter_Expecter) GetHomeState(ctx interface{}) *TadoGetter_GetHomeState_Call
- func (_e *TadoGetter_Expecter) GetMobileDevices(_a0 interface{}) *TadoGetter_GetMobileDevices_Call
- func (_e *TadoGetter_Expecter) GetWeatherInfo(_a0 interface{}) *TadoGetter_GetWeatherInfo_Call
- func (_e *TadoGetter_Expecter) GetZoneInfo(_a0 interface{}, _a1 interface{}) *TadoGetter_GetZoneInfo_Call
- func (_e *TadoGetter_Expecter) GetZones(_a0 interface{}) *TadoGetter_GetZones_Call
- type TadoGetter_GetHomeState_Call
- func (_c *TadoGetter_GetHomeState_Call) Return(homeState tado.HomeState, err error) *TadoGetter_GetHomeState_Call
- func (_c *TadoGetter_GetHomeState_Call) Run(run func(ctx context.Context)) *TadoGetter_GetHomeState_Call
- func (_c *TadoGetter_GetHomeState_Call) RunAndReturn(run func(context.Context) (tado.HomeState, error)) *TadoGetter_GetHomeState_Call
- type TadoGetter_GetMobileDevices_Call
- func (_c *TadoGetter_GetMobileDevices_Call) Return(_a0 []tado.MobileDevice, _a1 error) *TadoGetter_GetMobileDevices_Call
- func (_c *TadoGetter_GetMobileDevices_Call) Run(run func(_a0 context.Context)) *TadoGetter_GetMobileDevices_Call
- func (_c *TadoGetter_GetMobileDevices_Call) RunAndReturn(run func(context.Context) ([]tado.MobileDevice, error)) *TadoGetter_GetMobileDevices_Call
- type TadoGetter_GetWeatherInfo_Call
- func (_c *TadoGetter_GetWeatherInfo_Call) Return(_a0 tado.WeatherInfo, _a1 error) *TadoGetter_GetWeatherInfo_Call
- func (_c *TadoGetter_GetWeatherInfo_Call) Run(run func(_a0 context.Context)) *TadoGetter_GetWeatherInfo_Call
- func (_c *TadoGetter_GetWeatherInfo_Call) RunAndReturn(run func(context.Context) (tado.WeatherInfo, error)) *TadoGetter_GetWeatherInfo_Call
- type TadoGetter_GetZoneInfo_Call
- func (_c *TadoGetter_GetZoneInfo_Call) Return(_a0 tado.ZoneInfo, _a1 error) *TadoGetter_GetZoneInfo_Call
- func (_c *TadoGetter_GetZoneInfo_Call) Run(run func(_a0 context.Context, _a1 int)) *TadoGetter_GetZoneInfo_Call
- func (_c *TadoGetter_GetZoneInfo_Call) RunAndReturn(run func(context.Context, int) (tado.ZoneInfo, error)) *TadoGetter_GetZoneInfo_Call
- type TadoGetter_GetZones_Call
- func (_c *TadoGetter_GetZones_Call) Return(_a0 tado.Zones, _a1 error) *TadoGetter_GetZones_Call
- func (_c *TadoGetter_GetZones_Call) Run(run func(_a0 context.Context)) *TadoGetter_GetZones_Call
- func (_c *TadoGetter_GetZones_Call) RunAndReturn(run func(context.Context) (tado.Zones, error)) *TadoGetter_GetZones_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poller ¶
Poller is an autogenerated mock type for the Poller type
func NewPoller ¶
NewPoller creates a new instance of Poller. 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 (*Poller) EXPECT ¶
func (_m *Poller) EXPECT() *Poller_Expecter
func (*Poller) Refresh ¶
func (_m *Poller) Refresh()
Refresh provides a mock function with given fields:
func (*Poller) Unsubscribe ¶ added in v0.14.2
Unsubscribe provides a mock function with given fields: ch
type Poller_Expecter ¶
type Poller_Expecter struct {
// contains filtered or unexported fields
}
func (*Poller_Expecter) Refresh ¶
func (_e *Poller_Expecter) Refresh() *Poller_Refresh_Call
Refresh is a helper method to define mock.On call
func (*Poller_Expecter) Subscribe ¶ added in v0.14.2
func (_e *Poller_Expecter) Subscribe() *Poller_Subscribe_Call
Subscribe is a helper method to define mock.On call
func (*Poller_Expecter) Unsubscribe ¶ added in v0.14.2
func (_e *Poller_Expecter) Unsubscribe(ch interface{}) *Poller_Unsubscribe_Call
Unsubscribe is a helper method to define mock.On call
- ch chan poller.Update
type Poller_Refresh_Call ¶
Poller_Refresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Refresh'
func (*Poller_Refresh_Call) Return ¶
func (_c *Poller_Refresh_Call) Return() *Poller_Refresh_Call
func (*Poller_Refresh_Call) Run ¶
func (_c *Poller_Refresh_Call) Run(run func()) *Poller_Refresh_Call
func (*Poller_Refresh_Call) RunAndReturn ¶
func (_c *Poller_Refresh_Call) RunAndReturn(run func()) *Poller_Refresh_Call
type Poller_Subscribe_Call ¶ added in v0.14.2
Poller_Subscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Subscribe'
func (*Poller_Subscribe_Call) Return ¶ added in v0.14.2
func (_c *Poller_Subscribe_Call) Return(_a0 chan poller.Update) *Poller_Subscribe_Call
func (*Poller_Subscribe_Call) Run ¶ added in v0.14.2
func (_c *Poller_Subscribe_Call) Run(run func()) *Poller_Subscribe_Call
func (*Poller_Subscribe_Call) RunAndReturn ¶ added in v0.14.2
func (_c *Poller_Subscribe_Call) RunAndReturn(run func() chan poller.Update) *Poller_Subscribe_Call
type Poller_Unsubscribe_Call ¶ added in v0.14.2
Poller_Unsubscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unsubscribe'
func (*Poller_Unsubscribe_Call) Return ¶ added in v0.14.2
func (_c *Poller_Unsubscribe_Call) Return() *Poller_Unsubscribe_Call
func (*Poller_Unsubscribe_Call) Run ¶ added in v0.14.2
func (_c *Poller_Unsubscribe_Call) Run(run func(ch chan poller.Update)) *Poller_Unsubscribe_Call
func (*Poller_Unsubscribe_Call) RunAndReturn ¶ added in v0.14.2
func (_c *Poller_Unsubscribe_Call) RunAndReturn(run func(chan poller.Update)) *Poller_Unsubscribe_Call
type TadoGetter ¶
TadoGetter is an autogenerated mock type for the TadoGetter type
func NewTadoGetter ¶
func NewTadoGetter(t interface { mock.TestingT Cleanup(func()) }) *TadoGetter
NewTadoGetter creates a new instance of TadoGetter. 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 (*TadoGetter) EXPECT ¶
func (_m *TadoGetter) EXPECT() *TadoGetter_Expecter
func (*TadoGetter) GetHomeState ¶
GetHomeState provides a mock function with given fields: ctx
func (*TadoGetter) GetMobileDevices ¶
func (_m *TadoGetter) GetMobileDevices(_a0 context.Context) ([]tado.MobileDevice, error)
GetMobileDevices provides a mock function with given fields: _a0
func (*TadoGetter) GetWeatherInfo ¶
func (_m *TadoGetter) GetWeatherInfo(_a0 context.Context) (tado.WeatherInfo, error)
GetWeatherInfo provides a mock function with given fields: _a0
func (*TadoGetter) GetZoneInfo ¶
GetZoneInfo provides a mock function with given fields: _a0, _a1
type TadoGetter_Expecter ¶
type TadoGetter_Expecter struct {
// contains filtered or unexported fields
}
func (*TadoGetter_Expecter) GetHomeState ¶
func (_e *TadoGetter_Expecter) GetHomeState(ctx interface{}) *TadoGetter_GetHomeState_Call
GetHomeState is a helper method to define mock.On call
- ctx context.Context
func (*TadoGetter_Expecter) GetMobileDevices ¶
func (_e *TadoGetter_Expecter) GetMobileDevices(_a0 interface{}) *TadoGetter_GetMobileDevices_Call
GetMobileDevices is a helper method to define mock.On call
- _a0 context.Context
func (*TadoGetter_Expecter) GetWeatherInfo ¶
func (_e *TadoGetter_Expecter) GetWeatherInfo(_a0 interface{}) *TadoGetter_GetWeatherInfo_Call
GetWeatherInfo is a helper method to define mock.On call
- _a0 context.Context
func (*TadoGetter_Expecter) GetZoneInfo ¶
func (_e *TadoGetter_Expecter) GetZoneInfo(_a0 interface{}, _a1 interface{}) *TadoGetter_GetZoneInfo_Call
GetZoneInfo is a helper method to define mock.On call
- _a0 context.Context
- _a1 int
func (*TadoGetter_Expecter) GetZones ¶
func (_e *TadoGetter_Expecter) GetZones(_a0 interface{}) *TadoGetter_GetZones_Call
GetZones is a helper method to define mock.On call
- _a0 context.Context
type TadoGetter_GetHomeState_Call ¶
TadoGetter_GetHomeState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHomeState'
func (*TadoGetter_GetHomeState_Call) Return ¶
func (_c *TadoGetter_GetHomeState_Call) Return(homeState tado.HomeState, err error) *TadoGetter_GetHomeState_Call
func (*TadoGetter_GetHomeState_Call) Run ¶
func (_c *TadoGetter_GetHomeState_Call) Run(run func(ctx context.Context)) *TadoGetter_GetHomeState_Call
func (*TadoGetter_GetHomeState_Call) RunAndReturn ¶
func (_c *TadoGetter_GetHomeState_Call) RunAndReturn(run func(context.Context) (tado.HomeState, error)) *TadoGetter_GetHomeState_Call
type TadoGetter_GetMobileDevices_Call ¶
TadoGetter_GetMobileDevices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMobileDevices'
func (*TadoGetter_GetMobileDevices_Call) Return ¶
func (_c *TadoGetter_GetMobileDevices_Call) Return(_a0 []tado.MobileDevice, _a1 error) *TadoGetter_GetMobileDevices_Call
func (*TadoGetter_GetMobileDevices_Call) Run ¶
func (_c *TadoGetter_GetMobileDevices_Call) Run(run func(_a0 context.Context)) *TadoGetter_GetMobileDevices_Call
func (*TadoGetter_GetMobileDevices_Call) RunAndReturn ¶
func (_c *TadoGetter_GetMobileDevices_Call) RunAndReturn(run func(context.Context) ([]tado.MobileDevice, error)) *TadoGetter_GetMobileDevices_Call
type TadoGetter_GetWeatherInfo_Call ¶
TadoGetter_GetWeatherInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWeatherInfo'
func (*TadoGetter_GetWeatherInfo_Call) Return ¶
func (_c *TadoGetter_GetWeatherInfo_Call) Return(_a0 tado.WeatherInfo, _a1 error) *TadoGetter_GetWeatherInfo_Call
func (*TadoGetter_GetWeatherInfo_Call) Run ¶
func (_c *TadoGetter_GetWeatherInfo_Call) Run(run func(_a0 context.Context)) *TadoGetter_GetWeatherInfo_Call
func (*TadoGetter_GetWeatherInfo_Call) RunAndReturn ¶
func (_c *TadoGetter_GetWeatherInfo_Call) RunAndReturn(run func(context.Context) (tado.WeatherInfo, error)) *TadoGetter_GetWeatherInfo_Call
type TadoGetter_GetZoneInfo_Call ¶
TadoGetter_GetZoneInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetZoneInfo'
func (*TadoGetter_GetZoneInfo_Call) Return ¶
func (_c *TadoGetter_GetZoneInfo_Call) Return(_a0 tado.ZoneInfo, _a1 error) *TadoGetter_GetZoneInfo_Call
func (*TadoGetter_GetZoneInfo_Call) Run ¶
func (_c *TadoGetter_GetZoneInfo_Call) Run(run func(_a0 context.Context, _a1 int)) *TadoGetter_GetZoneInfo_Call
func (*TadoGetter_GetZoneInfo_Call) RunAndReturn ¶
func (_c *TadoGetter_GetZoneInfo_Call) RunAndReturn(run func(context.Context, int) (tado.ZoneInfo, error)) *TadoGetter_GetZoneInfo_Call
type TadoGetter_GetZones_Call ¶
TadoGetter_GetZones_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetZones'
func (*TadoGetter_GetZones_Call) Return ¶
func (_c *TadoGetter_GetZones_Call) Return(_a0 tado.Zones, _a1 error) *TadoGetter_GetZones_Call
func (*TadoGetter_GetZones_Call) Run ¶
func (_c *TadoGetter_GetZones_Call) Run(run func(_a0 context.Context)) *TadoGetter_GetZones_Call
func (*TadoGetter_GetZones_Call) RunAndReturn ¶
func (_c *TadoGetter_GetZones_Call) RunAndReturn(run func(context.Context) (tado.Zones, error)) *TadoGetter_GetZones_Call