mocks

package
v2.5.1-automation-2023... Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionAcceptor added in v2.3.0

type ConnectionAcceptor struct {
	mock.Mock
}

ConnectionAcceptor is an autogenerated mock type for the ConnectionAcceptor type

func NewConnectionAcceptor added in v2.3.0

func NewConnectionAcceptor(t mockConstructorTestingTNewConnectionAcceptor) *ConnectionAcceptor

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

func (*ConnectionAcceptor) AbortHandshake added in v2.3.0

func (_m *ConnectionAcceptor) AbortHandshake(attemptId string)

AbortHandshake provides a mock function with given fields: attemptId

func (*ConnectionAcceptor) FinalizeHandshake added in v2.3.0

func (_m *ConnectionAcceptor) FinalizeHandshake(attemptId string, response []byte, conn *websocket.Conn) error

FinalizeHandshake provides a mock function with given fields: attemptId, response, conn

func (*ConnectionAcceptor) StartHandshake added in v2.3.0

func (_m *ConnectionAcceptor) StartHandshake(authHeader []byte) (string, []byte, error)

StartHandshake provides a mock function with given fields: authHeader

type ConnectionInitiator added in v2.3.0

type ConnectionInitiator struct {
	mock.Mock
}

ConnectionInitiator is an autogenerated mock type for the ConnectionInitiator type

func NewConnectionInitiator added in v2.3.0

func NewConnectionInitiator(t mockConstructorTestingTNewConnectionInitiator) *ConnectionInitiator

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

func (*ConnectionInitiator) ChallengeResponse added in v2.3.0

func (_m *ConnectionInitiator) ChallengeResponse(_a0 *url.URL, challenge []byte) ([]byte, error)

ChallengeResponse provides a mock function with given fields: _a0, challenge

func (*ConnectionInitiator) NewAuthHeader added in v2.3.0

func (_m *ConnectionInitiator) NewAuthHeader(_a0 *url.URL) ([]byte, error)

NewAuthHeader provides a mock function with given fields: _a0

type HTTPRequestHandler added in v2.3.0

type HTTPRequestHandler struct {
	mock.Mock
}

HTTPRequestHandler is an autogenerated mock type for the HTTPRequestHandler type

func NewHTTPRequestHandler added in v2.3.0

func NewHTTPRequestHandler(t mockConstructorTestingTNewHTTPRequestHandler) *HTTPRequestHandler

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

func (*HTTPRequestHandler) ProcessRequest added in v2.3.0

func (_m *HTTPRequestHandler) ProcessRequest(ctx context.Context, rawRequest []byte) ([]byte, int)

ProcessRequest provides a mock function with given fields: ctx, rawRequest

type HttpServer

type HttpServer struct {
	mock.Mock
}

HttpServer is an autogenerated mock type for the HttpServer type

func NewHttpServer

func NewHttpServer(t mockConstructorTestingTNewHttpServer) *HttpServer

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

func (*HttpServer) Close

func (_m *HttpServer) Close() error

Close provides a mock function with given fields:

func (*HttpServer) GetPort added in v2.3.0

func (_m *HttpServer) GetPort() int

GetPort provides a mock function with given fields:

func (*HttpServer) SetHTTPRequestHandler

func (_m *HttpServer) SetHTTPRequestHandler(handler network.HTTPRequestHandler)

SetHTTPRequestHandler provides a mock function with given fields: handler

func (*HttpServer) Start

func (_m *HttpServer) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type WebSocketServer

type WebSocketServer struct {
	mock.Mock
}

WebSocketServer is an autogenerated mock type for the WebSocketServer type

func NewWebSocketServer

func NewWebSocketServer(t mockConstructorTestingTNewWebSocketServer) *WebSocketServer

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

func (*WebSocketServer) Close

func (_m *WebSocketServer) Close() error

Close provides a mock function with given fields:

func (*WebSocketServer) GetPort added in v2.3.0

func (_m *WebSocketServer) GetPort() int

GetPort provides a mock function with given fields:

func (*WebSocketServer) Start

func (_m *WebSocketServer) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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