backend

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Exec(arg ...string) ([]byte, error)
	ExecModem(modem string, arg ...string) ([]byte, error)
}

type BackendMock

type BackendMock struct {
	mock.Mock
}

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

func (*BackendMock) Exec

func (_m *BackendMock) Exec(arg ...string) ([]byte, error)

Exec provides a mock function with given fields: arg

func (*BackendMock) ExecModem

func (_m *BackendMock) ExecModem(modem string, arg ...string) ([]byte, error)

ExecModem provides a mock function with given fields: modem, arg

type BackendMock_ExecModem_Call

type BackendMock_ExecModem_Call struct {
	*mock.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 (*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

type BackendMock_Exec_Call struct {
	*mock.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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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