mocks

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setter

type Setter struct {
	mock.Mock
}

Setter is an autogenerated mock type for the Setter type

func NewSetter

func NewSetter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Setter

NewSetter creates a new instance of Setter. 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 (*Setter) EXPECT

func (_m *Setter) EXPECT() *Setter_Expecter

func (*Setter) GetLED

func (_m *Setter) GetLED() bool

GetLED provides a mock function with given fields:

func (*Setter) SetLED

func (_m *Setter) SetLED(state bool) error

SetLED provides a mock function with given fields: state

type Setter_Expecter

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

func (*Setter_Expecter) GetLED

func (_e *Setter_Expecter) GetLED() *Setter_GetLED_Call

GetLED is a helper method to define mock.On call

func (*Setter_Expecter) SetLED

func (_e *Setter_Expecter) SetLED(state interface{}) *Setter_SetLED_Call

SetLED is a helper method to define mock.On call

  • state bool

type Setter_GetLED_Call

type Setter_GetLED_Call struct {
	*mock.Call
}

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

func (*Setter_GetLED_Call) Return

func (_c *Setter_GetLED_Call) Return(_a0 bool) *Setter_GetLED_Call

func (*Setter_GetLED_Call) Run

func (_c *Setter_GetLED_Call) Run(run func()) *Setter_GetLED_Call

func (*Setter_GetLED_Call) RunAndReturn

func (_c *Setter_GetLED_Call) RunAndReturn(run func() bool) *Setter_GetLED_Call

type Setter_SetLED_Call

type Setter_SetLED_Call struct {
	*mock.Call
}

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

func (*Setter_SetLED_Call) Return

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

func (*Setter_SetLED_Call) Run

func (_c *Setter_SetLED_Call) Run(run func(state bool)) *Setter_SetLED_Call

func (*Setter_SetLED_Call) RunAndReturn

func (_c *Setter_SetLED_Call) RunAndReturn(run func(bool) error) *Setter_SetLED_Call

Jump to

Keyboard shortcuts

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