mocks

package
v0.0.0-...-1abf0d1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	mock.Mock
}

Connection is an autogenerated mock type for the Connection type

func NewConnection

func NewConnection(t mockConstructorTestingTNewConnection) *Connection

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

func (*Connection) Close

func (_m *Connection) Close() error

Close provides a mock function with given fields:

func (*Connection) Handshake

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

func (*Connection) LocalEndpoint

func (_m *Connection) LocalEndpoint() p2p.Endpoint

LocalEndpoint provides a mock function with given fields:

func (*Connection) ReceiveMessage

func (_m *Connection) ReceiveMessage(_a0 context.Context) (conn.ChannelID, []byte, error)

ReceiveMessage provides a mock function with given fields: _a0

func (*Connection) RemoteEndpoint

func (_m *Connection) RemoteEndpoint() p2p.Endpoint

RemoteEndpoint provides a mock function with given fields:

func (*Connection) SendMessage

func (_m *Connection) SendMessage(_a0 context.Context, _a1 conn.ChannelID, _a2 []byte) error

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

func (*Connection) String

func (_m *Connection) String() string

String provides a mock function with given fields:

type Transport

type Transport struct {
	mock.Mock
}

Transport is an autogenerated mock type for the Transport type

func NewTransport

func NewTransport(t mockConstructorTestingTNewTransport) *Transport

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

func (*Transport) Accept

func (_m *Transport) Accept(_a0 context.Context) (p2p.Connection, error)

Accept provides a mock function with given fields: _a0

func (*Transport) AddChannelDescriptors

func (_m *Transport) AddChannelDescriptors(_a0 []*conn.ChannelDescriptor)

AddChannelDescriptors provides a mock function with given fields: _a0

func (*Transport) Close

func (_m *Transport) Close() error

Close provides a mock function with given fields:

func (*Transport) Dial

func (_m *Transport) Dial(_a0 context.Context, _a1 *p2p.Endpoint) (p2p.Connection, error)

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

func (*Transport) Endpoint

func (_m *Transport) Endpoint() (*p2p.Endpoint, error)

Endpoint provides a mock function with given fields:

func (*Transport) Listen

func (_m *Transport) Listen(_a0 *p2p.Endpoint) error

Listen provides a mock function with given fields: _a0

func (*Transport) Protocols

func (_m *Transport) Protocols() []p2p.Protocol

Protocols provides a mock function with given fields:

func (*Transport) String

func (_m *Transport) String() string

String 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