mocks

package
v0.0.0-...-9f3ca98 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func NewController

func NewController(t mockConstructorTestingTNewController) *Controller

NewController creates a new instance of Controller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Controller) Command

func (_m *Controller) Command(_a0 string, _a1 sctrl.ResponseHandler) error

Command provides a mock function with given fields: _a0, _a1

func (*Controller) CommandWithTimeout

func (_m *Controller) CommandWithTimeout(_a0 string, _a1 time.Duration, _a2 sctrl.ResponseHandler) error

CommandWithTimeout provides a mock function with given fields: _a0, _a1, _a2

type ControllerConnection

type ControllerConnection struct {
	mock.Mock
}

ControllerConnection is an autogenerated mock type for the ControllerConnection type

func NewControllerConnection

func NewControllerConnection(t mockConstructorTestingTNewControllerConnection) *ControllerConnection

NewControllerConnection creates a new instance of ControllerConnection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ControllerConnection) Read

func (_m *ControllerConnection) Read(_a0 []byte) (int, error)

Read provides a mock function with given fields: _a0

func (*ControllerConnection) Write

func (_m *ControllerConnection) Write(_a0 []byte) (int, error)

Write provides a mock function with given fields: _a0

type DispatchReader

type DispatchReader struct {
	mock.Mock
}

DispatchReader is an autogenerated mock type for the DispatchReader type

func NewDispatchReader

func NewDispatchReader(t mockConstructorTestingTNewDispatchReader) *DispatchReader

NewDispatchReader creates a new instance of DispatchReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DispatchReader) Read

func (_m *DispatchReader) Read(_a0 []byte) (int, error)

Read provides a mock function with given fields: _a0

type Dispatcher

type Dispatcher struct {
	mock.Mock
}

Dispatcher is an autogenerated mock type for the Dispatcher type

func NewDispatcher

func NewDispatcher(t mockConstructorTestingTNewDispatcher) *Dispatcher

NewDispatcher creates a new instance of Dispatcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Dispatcher) Request

func (_m *Dispatcher) Request(timeout time.Duration, handler sctrl.ResponseHandler) error

Request provides a mock function with given fields: timeout, handler

type NotificationHandler

type NotificationHandler struct {
	mock.Mock
}

NotificationHandler is an autogenerated mock type for the NotificationHandler type

func NewNotificationHandler

func NewNotificationHandler(t mockConstructorTestingTNewNotificationHandler) *NotificationHandler

NewNotificationHandler creates a new instance of NotificationHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*NotificationHandler) OnMessage

func (_m *NotificationHandler) OnMessage(_a0 string)

OnMessage provides a mock function with given fields: _a0

type ResponseHandler

type ResponseHandler struct {
	mock.Mock
}

ResponseHandler is an autogenerated mock type for the ResponseHandler type

func NewResponseHandler

func NewResponseHandler(t mockConstructorTestingTNewResponseHandler) *ResponseHandler

NewResponseHandler creates a new instance of ResponseHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ResponseHandler) Execute

func (_m *ResponseHandler) Execute(_a0 sctrl.ResponseReader) error

Execute provides a mock function with given fields: _a0

type ResponseReader

type ResponseReader struct {
	mock.Mock
}

ResponseReader is an autogenerated mock type for the ResponseReader type

func NewResponseReader

func NewResponseReader(t mockConstructorTestingTNewResponseReader) *ResponseReader

NewResponseReader creates a new instance of ResponseReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ResponseReader) AssertLine

func (_m *ResponseReader) AssertLine(_a0 string) error

AssertLine provides a mock function with given fields: _a0

func (*ResponseReader) AssertOK

func (_m *ResponseReader) AssertOK() error

AssertOK provides a mock function with given fields:

func (*ResponseReader) GetLine

func (_m *ResponseReader) GetLine() (string, error)

GetLine provides a mock function with given fields:

func (*ResponseReader) ReadLineWithOk

func (_m *ResponseReader) ReadLineWithOk() (string, error)

ReadLineWithOk provides a mock function with given fields:

Jump to

Keyboard shortcuts

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