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 Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func NewController

func NewController(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Controller) EXPECT

func (_m *Controller) EXPECT() *Controller_Expecter

func (*Controller) ReportTasks

func (_m *Controller) ReportTasks() []string

ReportTasks provides a mock function with given fields:

type Controller_Expecter

type Controller_Expecter struct {
	// contains filtered or unexported fields
}

func (*Controller_Expecter) ReportTasks

ReportTasks is a helper method to define mock.On call

type Controller_ReportTasks_Call

type Controller_ReportTasks_Call struct {
	*mock.Call
}

Controller_ReportTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportTasks'

func (*Controller_ReportTasks_Call) Return

func (*Controller_ReportTasks_Call) Run

func (*Controller_ReportTasks_Call) RunAndReturn

func (_c *Controller_ReportTasks_Call) RunAndReturn(run func() []string) *Controller_ReportTasks_Call

type SlackBot

type SlackBot struct {
	mock.Mock
}

SlackBot is an autogenerated mock type for the SlackBot type

func NewSlackBot

func NewSlackBot(t interface {
	mock.TestingT
	Cleanup(func())
}) *SlackBot

NewSlackBot creates a new instance of SlackBot. 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 (*SlackBot) Add added in v0.15.2

func (_m *SlackBot) Add(commands slackbot.Commands)

Add provides a mock function with given fields: commands

func (*SlackBot) EXPECT

func (_m *SlackBot) EXPECT() *SlackBot_Expecter

func (*SlackBot) Run

func (_m *SlackBot) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

type SlackBot_Add_Call added in v0.15.2

type SlackBot_Add_Call struct {
	*mock.Call
}

SlackBot_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*SlackBot_Add_Call) Return added in v0.15.2

func (_c *SlackBot_Add_Call) Return() *SlackBot_Add_Call

func (*SlackBot_Add_Call) Run added in v0.15.2

func (_c *SlackBot_Add_Call) Run(run func(commands slackbot.Commands)) *SlackBot_Add_Call

func (*SlackBot_Add_Call) RunAndReturn added in v0.15.2

func (_c *SlackBot_Add_Call) RunAndReturn(run func(slackbot.Commands)) *SlackBot_Add_Call

type SlackBot_Expecter

type SlackBot_Expecter struct {
	// contains filtered or unexported fields
}

func (*SlackBot_Expecter) Add added in v0.15.2

func (_e *SlackBot_Expecter) Add(commands interface{}) *SlackBot_Add_Call

Add is a helper method to define mock.On call

  • commands slackbot.Commands

func (*SlackBot_Expecter) Run

func (_e *SlackBot_Expecter) Run(ctx interface{}) *SlackBot_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context

type SlackBot_Run_Call

type SlackBot_Run_Call struct {
	*mock.Call
}

SlackBot_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*SlackBot_Run_Call) Return

func (_c *SlackBot_Run_Call) Return(_a0 error) *SlackBot_Run_Call

func (*SlackBot_Run_Call) Run

func (_c *SlackBot_Run_Call) Run(run func(ctx context.Context)) *SlackBot_Run_Call

func (*SlackBot_Run_Call) RunAndReturn

func (_c *SlackBot_Run_Call) RunAndReturn(run func(context.Context) error) *SlackBot_Run_Call

type TadoSetter

type TadoSetter struct {
	mock.Mock
}

TadoSetter is an autogenerated mock type for the TadoSetter type

func NewTadoSetter

func NewTadoSetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *TadoSetter

NewTadoSetter creates a new instance of TadoSetter. 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 (*TadoSetter) DeleteZoneOverlay

func (_m *TadoSetter) DeleteZoneOverlay(_a0 context.Context, _a1 int) error

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

func (*TadoSetter) EXPECT

func (_m *TadoSetter) EXPECT() *TadoSetter_Expecter

func (*TadoSetter) SetHomeState added in v0.15.2

func (_m *TadoSetter) SetHomeState(ctx context.Context, home bool) error

SetHomeState provides a mock function with given fields: ctx, home

func (*TadoSetter) SetZoneTemporaryOverlay

func (_m *TadoSetter) SetZoneTemporaryOverlay(_a0 context.Context, _a1 int, _a2 float64, _a3 time.Duration) error

SetZoneTemporaryOverlay provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*TadoSetter) UnsetHomeState added in v0.15.2

func (_m *TadoSetter) UnsetHomeState(ctx context.Context) error

UnsetHomeState provides a mock function with given fields: ctx

type TadoSetter_DeleteZoneOverlay_Call

type TadoSetter_DeleteZoneOverlay_Call struct {
	*mock.Call
}

TadoSetter_DeleteZoneOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteZoneOverlay'

func (*TadoSetter_DeleteZoneOverlay_Call) Return

func (*TadoSetter_DeleteZoneOverlay_Call) Run

func (*TadoSetter_DeleteZoneOverlay_Call) RunAndReturn

type TadoSetter_Expecter

type TadoSetter_Expecter struct {
	// contains filtered or unexported fields
}

func (*TadoSetter_Expecter) DeleteZoneOverlay

func (_e *TadoSetter_Expecter) DeleteZoneOverlay(_a0 interface{}, _a1 interface{}) *TadoSetter_DeleteZoneOverlay_Call

DeleteZoneOverlay is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 int

func (*TadoSetter_Expecter) SetHomeState added in v0.15.2

func (_e *TadoSetter_Expecter) SetHomeState(ctx interface{}, home interface{}) *TadoSetter_SetHomeState_Call

SetHomeState is a helper method to define mock.On call

  • ctx context.Context
  • home bool

func (*TadoSetter_Expecter) SetZoneTemporaryOverlay

func (_e *TadoSetter_Expecter) SetZoneTemporaryOverlay(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *TadoSetter_SetZoneTemporaryOverlay_Call

SetZoneTemporaryOverlay is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 int
  • _a2 float64
  • _a3 time.Duration

func (*TadoSetter_Expecter) UnsetHomeState added in v0.15.2

func (_e *TadoSetter_Expecter) UnsetHomeState(ctx interface{}) *TadoSetter_UnsetHomeState_Call

UnsetHomeState is a helper method to define mock.On call

  • ctx context.Context

type TadoSetter_SetHomeState_Call added in v0.15.2

type TadoSetter_SetHomeState_Call struct {
	*mock.Call
}

TadoSetter_SetHomeState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetHomeState'

func (*TadoSetter_SetHomeState_Call) Return added in v0.15.2

func (*TadoSetter_SetHomeState_Call) Run added in v0.15.2

func (*TadoSetter_SetHomeState_Call) RunAndReturn added in v0.15.2

type TadoSetter_SetZoneTemporaryOverlay_Call

type TadoSetter_SetZoneTemporaryOverlay_Call struct {
	*mock.Call
}

TadoSetter_SetZoneTemporaryOverlay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetZoneTemporaryOverlay'

func (*TadoSetter_SetZoneTemporaryOverlay_Call) Return

func (*TadoSetter_SetZoneTemporaryOverlay_Call) Run

func (*TadoSetter_SetZoneTemporaryOverlay_Call) RunAndReturn

type TadoSetter_UnsetHomeState_Call added in v0.15.2

type TadoSetter_UnsetHomeState_Call struct {
	*mock.Call
}

TadoSetter_UnsetHomeState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnsetHomeState'

func (*TadoSetter_UnsetHomeState_Call) Return added in v0.15.2

func (*TadoSetter_UnsetHomeState_Call) Run added in v0.15.2

func (*TadoSetter_UnsetHomeState_Call) RunAndReturn added in v0.15.2

Jump to

Keyboard shortcuts

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