Documentation ¶
Index ¶
- type Backend
- type BackendMock
- type BackendMock_ExecModem_Call
- func (_c *BackendMock_ExecModem_Call) Return(_a0 []byte, _a1 error) *BackendMock_ExecModem_Call
- func (_c *BackendMock_ExecModem_Call) Run(run func(modem string, arg ...string)) *BackendMock_ExecModem_Call
- func (_c *BackendMock_ExecModem_Call) RunAndReturn(run func(string, ...string) ([]byte, error)) *BackendMock_ExecModem_Call
- type BackendMock_Exec_Call
- type BackendMock_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendMock ¶
BackendMock is an autogenerated mock type for the Backend type
func NewBackendMock ¶
func NewBackendMock(t interface { mock.TestingT Cleanup(func()) }) *BackendMock
NewBackendMock creates a new instance of BackendMock. 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 (*BackendMock) EXPECT ¶
func (_m *BackendMock) EXPECT() *BackendMock_Expecter
type BackendMock_ExecModem_Call ¶
BackendMock_ExecModem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecModem'
func (*BackendMock_ExecModem_Call) Return ¶
func (_c *BackendMock_ExecModem_Call) Return(_a0 []byte, _a1 error) *BackendMock_ExecModem_Call
func (*BackendMock_ExecModem_Call) Run ¶
func (_c *BackendMock_ExecModem_Call) Run(run func(modem string, arg ...string)) *BackendMock_ExecModem_Call
func (*BackendMock_ExecModem_Call) RunAndReturn ¶
func (_c *BackendMock_ExecModem_Call) RunAndReturn(run func(string, ...string) ([]byte, error)) *BackendMock_ExecModem_Call
type BackendMock_Exec_Call ¶
BackendMock_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*BackendMock_Exec_Call) Return ¶
func (_c *BackendMock_Exec_Call) Return(_a0 []byte, _a1 error) *BackendMock_Exec_Call
func (*BackendMock_Exec_Call) Run ¶
func (_c *BackendMock_Exec_Call) Run(run func(arg ...string)) *BackendMock_Exec_Call
func (*BackendMock_Exec_Call) RunAndReturn ¶
func (_c *BackendMock_Exec_Call) RunAndReturn(run func(...string) ([]byte, error)) *BackendMock_Exec_Call
type BackendMock_Expecter ¶
type BackendMock_Expecter struct {
// contains filtered or unexported fields
}
func (*BackendMock_Expecter) Exec ¶
func (_e *BackendMock_Expecter) Exec(arg ...interface{}) *BackendMock_Exec_Call
Exec is a helper method to define mock.On call
- arg ...string
func (*BackendMock_Expecter) ExecModem ¶
func (_e *BackendMock_Expecter) ExecModem(modem interface{}, arg ...interface{}) *BackendMock_ExecModem_Call
ExecModem is a helper method to define mock.On call
- modem string
- arg ...string
Click to show internal directories.
Click to hide internal directories.