mocks

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyqSessionInterface

type MyqSessionInterface struct {
	mock.Mock
}

MyqSessionInterface is an autogenerated mock type for the MyqSessionInterface type

func NewMyqSessionInterface

func NewMyqSessionInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MyqSessionInterface

NewMyqSessionInterface creates a new instance of MyqSessionInterface. 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 (*MyqSessionInterface) DeviceState

func (_m *MyqSessionInterface) DeviceState(serialNumber string) (string, error)

DeviceState provides a mock function with given fields: serialNumber

func (*MyqSessionInterface) EXPECT added in v0.2.1

func (*MyqSessionInterface) GetToken added in v0.2.2

func (_m *MyqSessionInterface) GetToken() string

GetToken provides a mock function with given fields:

func (*MyqSessionInterface) Login

func (_m *MyqSessionInterface) Login() error

Login provides a mock function with given fields:

func (*MyqSessionInterface) New

func (_m *MyqSessionInterface) New()

New provides a mock function with given fields:

func (*MyqSessionInterface) SetDoorState

func (_m *MyqSessionInterface) SetDoorState(serialNumber string, action string) error

SetDoorState provides a mock function with given fields: serialNumber, action

func (*MyqSessionInterface) SetPassword

func (_m *MyqSessionInterface) SetPassword(_a0 string)

SetPassword provides a mock function with given fields: _a0

func (*MyqSessionInterface) SetToken added in v0.2.2

func (_m *MyqSessionInterface) SetToken(_a0 string)

SetToken provides a mock function with given fields: _a0

func (*MyqSessionInterface) SetUsername

func (_m *MyqSessionInterface) SetUsername(_a0 string)

SetUsername provides a mock function with given fields: _a0

type MyqSessionInterface_DeviceState_Call added in v0.2.1

type MyqSessionInterface_DeviceState_Call struct {
	*mock.Call
}

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

func (*MyqSessionInterface_DeviceState_Call) Return added in v0.2.1

func (*MyqSessionInterface_DeviceState_Call) Run added in v0.2.1

func (*MyqSessionInterface_DeviceState_Call) RunAndReturn added in v0.2.1

type MyqSessionInterface_Expecter added in v0.2.1

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

func (*MyqSessionInterface_Expecter) DeviceState added in v0.2.1

func (_e *MyqSessionInterface_Expecter) DeviceState(serialNumber interface{}) *MyqSessionInterface_DeviceState_Call

DeviceState is a helper method to define mock.On call

  • serialNumber string

func (*MyqSessionInterface_Expecter) GetToken added in v0.2.2

GetToken is a helper method to define mock.On call

func (*MyqSessionInterface_Expecter) Login added in v0.2.1

Login is a helper method to define mock.On call

func (*MyqSessionInterface_Expecter) New added in v0.2.1

New is a helper method to define mock.On call

func (*MyqSessionInterface_Expecter) SetDoorState added in v0.2.1

func (_e *MyqSessionInterface_Expecter) SetDoorState(serialNumber interface{}, action interface{}) *MyqSessionInterface_SetDoorState_Call

SetDoorState is a helper method to define mock.On call

  • serialNumber string
  • action string

func (*MyqSessionInterface_Expecter) SetPassword added in v0.2.1

func (_e *MyqSessionInterface_Expecter) SetPassword(_a0 interface{}) *MyqSessionInterface_SetPassword_Call

SetPassword is a helper method to define mock.On call

  • _a0 string

func (*MyqSessionInterface_Expecter) SetToken added in v0.2.2

func (_e *MyqSessionInterface_Expecter) SetToken(_a0 interface{}) *MyqSessionInterface_SetToken_Call

SetToken is a helper method to define mock.On call

  • _a0 string

func (*MyqSessionInterface_Expecter) SetUsername added in v0.2.1

func (_e *MyqSessionInterface_Expecter) SetUsername(_a0 interface{}) *MyqSessionInterface_SetUsername_Call

SetUsername is a helper method to define mock.On call

  • _a0 string

type MyqSessionInterface_GetToken_Call added in v0.2.2

type MyqSessionInterface_GetToken_Call struct {
	*mock.Call
}

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

func (*MyqSessionInterface_GetToken_Call) Return added in v0.2.2

func (*MyqSessionInterface_GetToken_Call) Run added in v0.2.2

func (*MyqSessionInterface_GetToken_Call) RunAndReturn added in v0.2.2

type MyqSessionInterface_Login_Call added in v0.2.1

type MyqSessionInterface_Login_Call struct {
	*mock.Call
}

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

func (*MyqSessionInterface_Login_Call) Return added in v0.2.1

func (*MyqSessionInterface_Login_Call) Run added in v0.2.1

func (*MyqSessionInterface_Login_Call) RunAndReturn added in v0.2.1

type MyqSessionInterface_New_Call added in v0.2.1

type MyqSessionInterface_New_Call struct {
	*mock.Call
}

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

func (*MyqSessionInterface_New_Call) Return added in v0.2.1

func (*MyqSessionInterface_New_Call) Run added in v0.2.1

func (*MyqSessionInterface_New_Call) RunAndReturn added in v0.2.1

func (_c *MyqSessionInterface_New_Call) RunAndReturn(run func()) *MyqSessionInterface_New_Call

type MyqSessionInterface_SetDoorState_Call added in v0.2.1

type MyqSessionInterface_SetDoorState_Call struct {
	*mock.Call
}

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

func (*MyqSessionInterface_SetDoorState_Call) Return added in v0.2.1

func (*MyqSessionInterface_SetDoorState_Call) Run added in v0.2.1

func (*MyqSessionInterface_SetDoorState_Call) RunAndReturn added in v0.2.1

type MyqSessionInterface_SetPassword_Call added in v0.2.1

type MyqSessionInterface_SetPassword_Call struct {
	*mock.Call
}

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

func (*MyqSessionInterface_SetPassword_Call) Return added in v0.2.1

func (*MyqSessionInterface_SetPassword_Call) Run added in v0.2.1

func (*MyqSessionInterface_SetPassword_Call) RunAndReturn added in v0.2.1

type MyqSessionInterface_SetToken_Call added in v0.2.2

type MyqSessionInterface_SetToken_Call struct {
	*mock.Call
}

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

func (*MyqSessionInterface_SetToken_Call) Return added in v0.2.2

func (*MyqSessionInterface_SetToken_Call) Run added in v0.2.2

func (*MyqSessionInterface_SetToken_Call) RunAndReturn added in v0.2.2

type MyqSessionInterface_SetUsername_Call added in v0.2.1

type MyqSessionInterface_SetUsername_Call struct {
	*mock.Call
}

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

func (*MyqSessionInterface_SetUsername_Call) Return added in v0.2.1

func (*MyqSessionInterface_SetUsername_Call) Run added in v0.2.1

func (*MyqSessionInterface_SetUsername_Call) RunAndReturn added in v0.2.1

Jump to

Keyboard shortcuts

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