mock_transport

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_transport is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMultiConn

type MockMultiConn struct {
	// contains filtered or unexported fields
}

MockMultiConn is a mock of MultiConn interface.

func NewMockMultiConn

func NewMockMultiConn(ctrl *gomock.Controller) *MockMultiConn

NewMockMultiConn creates a new mock instance.

func (*MockMultiConn) Accept

func (m *MockMultiConn) Accept() (net.Conn, error)

Accept mocks base method.

func (*MockMultiConn) Addr

func (m *MockMultiConn) Addr() string

Addr mocks base method.

func (*MockMultiConn) Close

func (m *MockMultiConn) Close() error

Close mocks base method.

func (*MockMultiConn) Context

func (m *MockMultiConn) Context() context.Context

Context mocks base method.

func (*MockMultiConn) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMultiConn) IsClosed

func (m *MockMultiConn) IsClosed() bool

IsClosed mocks base method.

func (*MockMultiConn) LastUsage

func (m *MockMultiConn) LastUsage() time.Time

LastUsage mocks base method.

func (*MockMultiConn) Open

func (m *MockMultiConn) Open(arg0 context.Context) (net.Conn, error)

Open mocks base method.

type MockMultiConnMockRecorder

type MockMultiConnMockRecorder struct {
	// contains filtered or unexported fields
}

MockMultiConnMockRecorder is the mock recorder for MockMultiConn.

func (*MockMultiConnMockRecorder) Accept

func (mr *MockMultiConnMockRecorder) Accept() *gomock.Call

Accept indicates an expected call of Accept.

func (*MockMultiConnMockRecorder) Addr

Addr indicates an expected call of Addr.

func (*MockMultiConnMockRecorder) Close

func (mr *MockMultiConnMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockMultiConnMockRecorder) Context

func (mr *MockMultiConnMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockMultiConnMockRecorder) IsClosed

func (mr *MockMultiConnMockRecorder) IsClosed() *gomock.Call

IsClosed indicates an expected call of IsClosed.

func (*MockMultiConnMockRecorder) LastUsage

func (mr *MockMultiConnMockRecorder) LastUsage() *gomock.Call

LastUsage indicates an expected call of LastUsage.

func (*MockMultiConnMockRecorder) Open

func (mr *MockMultiConnMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open.

type MockTransport

type MockTransport struct {
	// contains filtered or unexported fields
}

MockTransport is a mock of Transport interface.

func NewMockTransport

func NewMockTransport(ctrl *gomock.Controller) *MockTransport

NewMockTransport creates a new mock instance.

func (*MockTransport) Dial

func (m *MockTransport) Dial(arg0 context.Context, arg1 string) (transport.MultiConn, error)

Dial mocks base method.

func (*MockTransport) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTransport) SetAccepter

func (m *MockTransport) SetAccepter(arg0 transport.Accepter)

SetAccepter mocks base method.

type MockTransportMockRecorder

type MockTransportMockRecorder struct {
	// contains filtered or unexported fields
}

MockTransportMockRecorder is the mock recorder for MockTransport.

func (*MockTransportMockRecorder) Dial

func (mr *MockTransportMockRecorder) Dial(arg0, arg1 interface{}) *gomock.Call

Dial indicates an expected call of Dial.

func (*MockTransportMockRecorder) SetAccepter

func (mr *MockTransportMockRecorder) SetAccepter(arg0 interface{}) *gomock.Call

SetAccepter indicates an expected call of SetAccepter.

Jump to

Keyboard shortcuts

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