mocks

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Poller

type Poller struct {
	mock.Mock
}

Poller is an autogenerated mock type for the Poller type

func NewPoller

func NewPoller(t interface {
	mock.TestingT
	Cleanup(func())
}) *Poller

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) Subscribe added in v0.14.2

func (_m *Poller) Subscribe() chan poller.Update

Subscribe provides a mock function with given fields:

func (*Poller) Unsubscribe added in v0.14.2

func (_m *Poller) Unsubscribe(ch chan poller.Update)

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

type Poller_Refresh_Call struct {
	*mock.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 (*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

type Poller_Subscribe_Call struct {
	*mock.Call
}

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 (*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

type Poller_Unsubscribe_Call struct {
	*mock.Call
}

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 (*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

type TadoGetter struct {
	mock.Mock
}

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

func (_m *TadoGetter) GetHomeState(ctx context.Context) (tado.HomeState, error)

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

func (_m *TadoGetter) GetZoneInfo(_a0 context.Context, _a1 int) (tado.ZoneInfo, error)

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

func (*TadoGetter) GetZones

func (_m *TadoGetter) GetZones(_a0 context.Context) (tado.Zones, error)

GetZones provides a mock function with given fields: _a0

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

type TadoGetter_GetHomeState_Call struct {
	*mock.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 (*TadoGetter_GetHomeState_Call) Run

func (*TadoGetter_GetHomeState_Call) RunAndReturn

type TadoGetter_GetMobileDevices_Call

type TadoGetter_GetMobileDevices_Call struct {
	*mock.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 (*TadoGetter_GetMobileDevices_Call) Run

func (*TadoGetter_GetMobileDevices_Call) RunAndReturn

type TadoGetter_GetWeatherInfo_Call

type TadoGetter_GetWeatherInfo_Call struct {
	*mock.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 (*TadoGetter_GetWeatherInfo_Call) Run

func (*TadoGetter_GetWeatherInfo_Call) RunAndReturn

type TadoGetter_GetZoneInfo_Call

type TadoGetter_GetZoneInfo_Call struct {
	*mock.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 (*TadoGetter_GetZoneInfo_Call) Run

func (*TadoGetter_GetZoneInfo_Call) RunAndReturn

type TadoGetter_GetZones_Call

type TadoGetter_GetZones_Call struct {
	*mock.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 (*TadoGetter_GetZones_Call) Run

func (*TadoGetter_GetZones_Call) RunAndReturn

Jump to

Keyboard shortcuts

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