Documentation ¶
Index ¶
- type MyqSessionInterface
- func (_m *MyqSessionInterface) DeviceState(serialNumber string) (string, error)
- func (_m *MyqSessionInterface) EXPECT() *MyqSessionInterface_Expecter
- func (_m *MyqSessionInterface) GetToken() string
- func (_m *MyqSessionInterface) Login() error
- func (_m *MyqSessionInterface) New()
- func (_m *MyqSessionInterface) SetDoorState(serialNumber string, action string) error
- func (_m *MyqSessionInterface) SetPassword(_a0 string)
- func (_m *MyqSessionInterface) SetToken(_a0 string)
- func (_m *MyqSessionInterface) SetUsername(_a0 string)
- type MyqSessionInterface_DeviceState_Call
- func (_c *MyqSessionInterface_DeviceState_Call) Return(_a0 string, _a1 error) *MyqSessionInterface_DeviceState_Call
- func (_c *MyqSessionInterface_DeviceState_Call) Run(run func(serialNumber string)) *MyqSessionInterface_DeviceState_Call
- func (_c *MyqSessionInterface_DeviceState_Call) RunAndReturn(run func(string) (string, error)) *MyqSessionInterface_DeviceState_Call
- type MyqSessionInterface_Expecter
- func (_e *MyqSessionInterface_Expecter) DeviceState(serialNumber interface{}) *MyqSessionInterface_DeviceState_Call
- func (_e *MyqSessionInterface_Expecter) GetToken() *MyqSessionInterface_GetToken_Call
- func (_e *MyqSessionInterface_Expecter) Login() *MyqSessionInterface_Login_Call
- func (_e *MyqSessionInterface_Expecter) New() *MyqSessionInterface_New_Call
- func (_e *MyqSessionInterface_Expecter) SetDoorState(serialNumber interface{}, action interface{}) *MyqSessionInterface_SetDoorState_Call
- func (_e *MyqSessionInterface_Expecter) SetPassword(_a0 interface{}) *MyqSessionInterface_SetPassword_Call
- func (_e *MyqSessionInterface_Expecter) SetToken(_a0 interface{}) *MyqSessionInterface_SetToken_Call
- func (_e *MyqSessionInterface_Expecter) SetUsername(_a0 interface{}) *MyqSessionInterface_SetUsername_Call
- type MyqSessionInterface_GetToken_Call
- func (_c *MyqSessionInterface_GetToken_Call) Return(_a0 string) *MyqSessionInterface_GetToken_Call
- func (_c *MyqSessionInterface_GetToken_Call) Run(run func()) *MyqSessionInterface_GetToken_Call
- func (_c *MyqSessionInterface_GetToken_Call) RunAndReturn(run func() string) *MyqSessionInterface_GetToken_Call
- type MyqSessionInterface_Login_Call
- type MyqSessionInterface_New_Call
- type MyqSessionInterface_SetDoorState_Call
- func (_c *MyqSessionInterface_SetDoorState_Call) Return(_a0 error) *MyqSessionInterface_SetDoorState_Call
- func (_c *MyqSessionInterface_SetDoorState_Call) Run(run func(serialNumber string, action string)) *MyqSessionInterface_SetDoorState_Call
- func (_c *MyqSessionInterface_SetDoorState_Call) RunAndReturn(run func(string, string) error) *MyqSessionInterface_SetDoorState_Call
- type MyqSessionInterface_SetPassword_Call
- func (_c *MyqSessionInterface_SetPassword_Call) Return() *MyqSessionInterface_SetPassword_Call
- func (_c *MyqSessionInterface_SetPassword_Call) Run(run func(_a0 string)) *MyqSessionInterface_SetPassword_Call
- func (_c *MyqSessionInterface_SetPassword_Call) RunAndReturn(run func(string)) *MyqSessionInterface_SetPassword_Call
- type MyqSessionInterface_SetToken_Call
- func (_c *MyqSessionInterface_SetToken_Call) Return() *MyqSessionInterface_SetToken_Call
- func (_c *MyqSessionInterface_SetToken_Call) Run(run func(_a0 string)) *MyqSessionInterface_SetToken_Call
- func (_c *MyqSessionInterface_SetToken_Call) RunAndReturn(run func(string)) *MyqSessionInterface_SetToken_Call
- type MyqSessionInterface_SetUsername_Call
- func (_c *MyqSessionInterface_SetUsername_Call) Return() *MyqSessionInterface_SetUsername_Call
- func (_c *MyqSessionInterface_SetUsername_Call) Run(run func(_a0 string)) *MyqSessionInterface_SetUsername_Call
- func (_c *MyqSessionInterface_SetUsername_Call) RunAndReturn(run func(string)) *MyqSessionInterface_SetUsername_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyqSessionInterface ¶
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 (_m *MyqSessionInterface) EXPECT() *MyqSessionInterface_Expecter
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
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 (_c *MyqSessionInterface_DeviceState_Call) Return(_a0 string, _a1 error) *MyqSessionInterface_DeviceState_Call
func (*MyqSessionInterface_DeviceState_Call) Run ¶ added in v0.2.1
func (_c *MyqSessionInterface_DeviceState_Call) Run(run func(serialNumber string)) *MyqSessionInterface_DeviceState_Call
func (*MyqSessionInterface_DeviceState_Call) RunAndReturn ¶ added in v0.2.1
func (_c *MyqSessionInterface_DeviceState_Call) RunAndReturn(run func(string) (string, error)) *MyqSessionInterface_DeviceState_Call
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
func (_e *MyqSessionInterface_Expecter) GetToken() *MyqSessionInterface_GetToken_Call
GetToken is a helper method to define mock.On call
func (*MyqSessionInterface_Expecter) Login ¶ added in v0.2.1
func (_e *MyqSessionInterface_Expecter) Login() *MyqSessionInterface_Login_Call
Login is a helper method to define mock.On call
func (*MyqSessionInterface_Expecter) New ¶ added in v0.2.1
func (_e *MyqSessionInterface_Expecter) New() *MyqSessionInterface_New_Call
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
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 (_c *MyqSessionInterface_GetToken_Call) Return(_a0 string) *MyqSessionInterface_GetToken_Call
func (*MyqSessionInterface_GetToken_Call) Run ¶ added in v0.2.2
func (_c *MyqSessionInterface_GetToken_Call) Run(run func()) *MyqSessionInterface_GetToken_Call
func (*MyqSessionInterface_GetToken_Call) RunAndReturn ¶ added in v0.2.2
func (_c *MyqSessionInterface_GetToken_Call) RunAndReturn(run func() string) *MyqSessionInterface_GetToken_Call
type MyqSessionInterface_Login_Call ¶ added in v0.2.1
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 (_c *MyqSessionInterface_Login_Call) Return(_a0 error) *MyqSessionInterface_Login_Call
func (*MyqSessionInterface_Login_Call) Run ¶ added in v0.2.1
func (_c *MyqSessionInterface_Login_Call) Run(run func()) *MyqSessionInterface_Login_Call
func (*MyqSessionInterface_Login_Call) RunAndReturn ¶ added in v0.2.1
func (_c *MyqSessionInterface_Login_Call) RunAndReturn(run func() error) *MyqSessionInterface_Login_Call
type MyqSessionInterface_New_Call ¶ added in v0.2.1
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 (_c *MyqSessionInterface_New_Call) Return() *MyqSessionInterface_New_Call
func (*MyqSessionInterface_New_Call) Run ¶ added in v0.2.1
func (_c *MyqSessionInterface_New_Call) Run(run func()) *MyqSessionInterface_New_Call
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
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 (_c *MyqSessionInterface_SetDoorState_Call) Return(_a0 error) *MyqSessionInterface_SetDoorState_Call
func (*MyqSessionInterface_SetDoorState_Call) Run ¶ added in v0.2.1
func (_c *MyqSessionInterface_SetDoorState_Call) Run(run func(serialNumber string, action string)) *MyqSessionInterface_SetDoorState_Call
func (*MyqSessionInterface_SetDoorState_Call) RunAndReturn ¶ added in v0.2.1
func (_c *MyqSessionInterface_SetDoorState_Call) RunAndReturn(run func(string, string) error) *MyqSessionInterface_SetDoorState_Call
type MyqSessionInterface_SetPassword_Call ¶ added in v0.2.1
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 (_c *MyqSessionInterface_SetPassword_Call) Return() *MyqSessionInterface_SetPassword_Call
func (*MyqSessionInterface_SetPassword_Call) Run ¶ added in v0.2.1
func (_c *MyqSessionInterface_SetPassword_Call) Run(run func(_a0 string)) *MyqSessionInterface_SetPassword_Call
func (*MyqSessionInterface_SetPassword_Call) RunAndReturn ¶ added in v0.2.1
func (_c *MyqSessionInterface_SetPassword_Call) RunAndReturn(run func(string)) *MyqSessionInterface_SetPassword_Call
type MyqSessionInterface_SetToken_Call ¶ added in v0.2.2
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 (_c *MyqSessionInterface_SetToken_Call) Return() *MyqSessionInterface_SetToken_Call
func (*MyqSessionInterface_SetToken_Call) Run ¶ added in v0.2.2
func (_c *MyqSessionInterface_SetToken_Call) Run(run func(_a0 string)) *MyqSessionInterface_SetToken_Call
func (*MyqSessionInterface_SetToken_Call) RunAndReturn ¶ added in v0.2.2
func (_c *MyqSessionInterface_SetToken_Call) RunAndReturn(run func(string)) *MyqSessionInterface_SetToken_Call
type MyqSessionInterface_SetUsername_Call ¶ added in v0.2.1
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 (_c *MyqSessionInterface_SetUsername_Call) Return() *MyqSessionInterface_SetUsername_Call
func (*MyqSessionInterface_SetUsername_Call) Run ¶ added in v0.2.1
func (_c *MyqSessionInterface_SetUsername_Call) Run(run func(_a0 string)) *MyqSessionInterface_SetUsername_Call
func (*MyqSessionInterface_SetUsername_Call) RunAndReturn ¶ added in v0.2.1
func (_c *MyqSessionInterface_SetUsername_Call) RunAndReturn(run func(string)) *MyqSessionInterface_SetUsername_Call