quic-go: github.com/lucas-clemente/quic-go/internal/mocks/quic Index | Files

package mockquic

import "github.com/lucas-clemente/quic-go/internal/mocks/quic"

Package mockquic is a generated GoMock package.

Package mockquic is a generated GoMock package.

Package mockquic is a generated GoMock package.

Index

Package Files

listener.go session.go stream.go

type MockListener Uses

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

MockListener is a mock of Listener interface

func NewMockListener Uses

func NewMockListener(ctrl *gomock.Controller) *MockListener

NewMockListener creates a new mock instance

func (*MockListener) Accept Uses

func (m *MockListener) Accept(arg0 context.Context) (quic_go.Session, error)

Accept mocks base method

func (*MockListener) Addr Uses

func (m *MockListener) Addr() net.Addr

Addr mocks base method

func (*MockListener) Close Uses

func (m *MockListener) Close() error

Close mocks base method

func (*MockListener) EXPECT Uses

func (m *MockListener) EXPECT() *MockListenerMockRecorder

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

type MockListenerMockRecorder Uses

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

MockListenerMockRecorder is the mock recorder for MockListener

func (*MockListenerMockRecorder) Accept Uses

func (mr *MockListenerMockRecorder) Accept(arg0 interface{}) *gomock.Call

Accept indicates an expected call of Accept

func (*MockListenerMockRecorder) Addr Uses

func (mr *MockListenerMockRecorder) Addr() *gomock.Call

Addr indicates an expected call of Addr

func (*MockListenerMockRecorder) Close Uses

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

Close indicates an expected call of Close

type MockSession Uses

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

MockSession is a mock of Session interface

func NewMockSession Uses

func NewMockSession(ctrl *gomock.Controller) *MockSession

NewMockSession creates a new mock instance

func (*MockSession) AcceptStream Uses

func (m *MockSession) AcceptStream(arg0 context.Context) (quic_go.Stream, error)

AcceptStream mocks base method

func (*MockSession) AcceptUniStream Uses

func (m *MockSession) AcceptUniStream(arg0 context.Context) (quic_go.ReceiveStream, error)

AcceptUniStream mocks base method

func (*MockSession) Close Uses

func (m *MockSession) Close() error

Close mocks base method

func (*MockSession) CloseWithError Uses

func (m *MockSession) CloseWithError(arg0 protocol.ApplicationErrorCode, arg1 string) error

CloseWithError mocks base method

func (*MockSession) ConnectionState Uses

func (m *MockSession) ConnectionState() tls.ConnectionState

ConnectionState mocks base method

func (*MockSession) Context Uses

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

Context mocks base method

func (*MockSession) EXPECT Uses

func (m *MockSession) EXPECT() *MockSessionMockRecorder

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

func (*MockSession) LocalAddr Uses

func (m *MockSession) LocalAddr() net.Addr

LocalAddr mocks base method

func (*MockSession) OpenStream Uses

func (m *MockSession) OpenStream() (quic_go.Stream, error)

OpenStream mocks base method

func (*MockSession) OpenStreamSync Uses

func (m *MockSession) OpenStreamSync(arg0 context.Context) (quic_go.Stream, error)

OpenStreamSync mocks base method

func (*MockSession) OpenUniStream Uses

func (m *MockSession) OpenUniStream() (quic_go.SendStream, error)

OpenUniStream mocks base method

func (*MockSession) OpenUniStreamSync Uses

func (m *MockSession) OpenUniStreamSync(arg0 context.Context) (quic_go.SendStream, error)

OpenUniStreamSync mocks base method

func (*MockSession) RemoteAddr Uses

func (m *MockSession) RemoteAddr() net.Addr

RemoteAddr mocks base method

type MockSessionMockRecorder Uses

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

MockSessionMockRecorder is the mock recorder for MockSession

func (*MockSessionMockRecorder) AcceptStream Uses

func (mr *MockSessionMockRecorder) AcceptStream(arg0 interface{}) *gomock.Call

AcceptStream indicates an expected call of AcceptStream

func (*MockSessionMockRecorder) AcceptUniStream Uses

func (mr *MockSessionMockRecorder) AcceptUniStream(arg0 interface{}) *gomock.Call

AcceptUniStream indicates an expected call of AcceptUniStream

func (*MockSessionMockRecorder) Close Uses

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

Close indicates an expected call of Close

func (*MockSessionMockRecorder) CloseWithError Uses

func (mr *MockSessionMockRecorder) CloseWithError(arg0, arg1 interface{}) *gomock.Call

CloseWithError indicates an expected call of CloseWithError

func (*MockSessionMockRecorder) ConnectionState Uses

func (mr *MockSessionMockRecorder) ConnectionState() *gomock.Call

ConnectionState indicates an expected call of ConnectionState

func (*MockSessionMockRecorder) Context Uses

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

Context indicates an expected call of Context

func (*MockSessionMockRecorder) LocalAddr Uses

func (mr *MockSessionMockRecorder) LocalAddr() *gomock.Call

LocalAddr indicates an expected call of LocalAddr

func (*MockSessionMockRecorder) OpenStream Uses

func (mr *MockSessionMockRecorder) OpenStream() *gomock.Call

OpenStream indicates an expected call of OpenStream

func (*MockSessionMockRecorder) OpenStreamSync Uses

func (mr *MockSessionMockRecorder) OpenStreamSync(arg0 interface{}) *gomock.Call

OpenStreamSync indicates an expected call of OpenStreamSync

func (*MockSessionMockRecorder) OpenUniStream Uses

func (mr *MockSessionMockRecorder) OpenUniStream() *gomock.Call

OpenUniStream indicates an expected call of OpenUniStream

func (*MockSessionMockRecorder) OpenUniStreamSync Uses

func (mr *MockSessionMockRecorder) OpenUniStreamSync(arg0 interface{}) *gomock.Call

OpenUniStreamSync indicates an expected call of OpenUniStreamSync

func (*MockSessionMockRecorder) RemoteAddr Uses

func (mr *MockSessionMockRecorder) RemoteAddr() *gomock.Call

RemoteAddr indicates an expected call of RemoteAddr

type MockStream Uses

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

MockStream is a mock of Stream interface

func NewMockStream Uses

func NewMockStream(ctrl *gomock.Controller) *MockStream

NewMockStream creates a new mock instance

func (*MockStream) CancelRead Uses

func (m *MockStream) CancelRead(arg0 protocol.ApplicationErrorCode)

CancelRead mocks base method

func (*MockStream) CancelWrite Uses

func (m *MockStream) CancelWrite(arg0 protocol.ApplicationErrorCode)

CancelWrite mocks base method

func (*MockStream) Close Uses

func (m *MockStream) Close() error

Close mocks base method

func (*MockStream) Context Uses

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

Context mocks base method

func (*MockStream) EXPECT Uses

func (m *MockStream) EXPECT() *MockStreamMockRecorder

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

func (*MockStream) Read Uses

func (m *MockStream) Read(arg0 []byte) (int, error)

Read mocks base method

func (*MockStream) SetDeadline Uses

func (m *MockStream) SetDeadline(arg0 time.Time) error

SetDeadline mocks base method

func (*MockStream) SetReadDeadline Uses

func (m *MockStream) SetReadDeadline(arg0 time.Time) error

SetReadDeadline mocks base method

func (*MockStream) SetWriteDeadline Uses

func (m *MockStream) SetWriteDeadline(arg0 time.Time) error

SetWriteDeadline mocks base method

func (*MockStream) StreamID Uses

func (m *MockStream) StreamID() protocol.StreamID

StreamID mocks base method

func (*MockStream) Write Uses

func (m *MockStream) Write(arg0 []byte) (int, error)

Write mocks base method

type MockStreamMockRecorder Uses

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

MockStreamMockRecorder is the mock recorder for MockStream

func (*MockStreamMockRecorder) CancelRead Uses

func (mr *MockStreamMockRecorder) CancelRead(arg0 interface{}) *gomock.Call

CancelRead indicates an expected call of CancelRead

func (*MockStreamMockRecorder) CancelWrite Uses

func (mr *MockStreamMockRecorder) CancelWrite(arg0 interface{}) *gomock.Call

CancelWrite indicates an expected call of CancelWrite

func (*MockStreamMockRecorder) Close Uses

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

Close indicates an expected call of Close

func (*MockStreamMockRecorder) Context Uses

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

Context indicates an expected call of Context

func (*MockStreamMockRecorder) Read Uses

func (mr *MockStreamMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockStreamMockRecorder) SetDeadline Uses

func (mr *MockStreamMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline

func (*MockStreamMockRecorder) SetReadDeadline Uses

func (mr *MockStreamMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline

func (*MockStreamMockRecorder) SetWriteDeadline Uses

func (mr *MockStreamMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline

func (*MockStreamMockRecorder) StreamID Uses

func (mr *MockStreamMockRecorder) StreamID() *gomock.Call

StreamID indicates an expected call of StreamID

func (*MockStreamMockRecorder) Write Uses

func (mr *MockStreamMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

Package mockquic imports 8 packages (graph). Updated 2019-09-16. Refresh now. Tools for package owners.