mockquic

package
v0.0.0-...-8de9066 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mockquic is a generated GoMock package.

Package mockquic is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEarlyConnection

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

MockEarlyConnection is a mock of EarlyConnection interface.

func NewMockEarlyConnection

func NewMockEarlyConnection(ctrl *gomock.Controller) *MockEarlyConnection

NewMockEarlyConnection creates a new mock instance.

func (*MockEarlyConnection) AcceptStream

func (m *MockEarlyConnection) AcceptStream(arg0 context.Context) (quic.Stream, error)

AcceptStream mocks base method.

func (*MockEarlyConnection) AcceptUniStream

func (m *MockEarlyConnection) AcceptUniStream(arg0 context.Context) (quic.ReceiveStream, error)

AcceptUniStream mocks base method.

func (*MockEarlyConnection) CloseWithError

func (m *MockEarlyConnection) CloseWithError(arg0 qerr.ApplicationErrorCode, arg1 string) error

CloseWithError mocks base method.

func (*MockEarlyConnection) ConnectionState

func (m *MockEarlyConnection) ConnectionState() quic.ConnectionState

ConnectionState mocks base method.

func (*MockEarlyConnection) Context

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

Context mocks base method.

func (*MockEarlyConnection) EXPECT

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

func (*MockEarlyConnection) HandshakeComplete

func (m *MockEarlyConnection) HandshakeComplete() <-chan struct{}

HandshakeComplete mocks base method.

func (*MockEarlyConnection) LocalAddr

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

LocalAddr mocks base method.

func (*MockEarlyConnection) NextConnection

func (m *MockEarlyConnection) NextConnection() quic.Connection

NextConnection mocks base method.

func (*MockEarlyConnection) OpenStream

func (m *MockEarlyConnection) OpenStream() (quic.Stream, error)

OpenStream mocks base method.

func (*MockEarlyConnection) OpenStreamSync

func (m *MockEarlyConnection) OpenStreamSync(arg0 context.Context) (quic.Stream, error)

OpenStreamSync mocks base method.

func (*MockEarlyConnection) OpenUniStream

func (m *MockEarlyConnection) OpenUniStream() (quic.SendStream, error)

OpenUniStream mocks base method.

func (*MockEarlyConnection) OpenUniStreamSync

func (m *MockEarlyConnection) OpenUniStreamSync(arg0 context.Context) (quic.SendStream, error)

OpenUniStreamSync mocks base method.

func (*MockEarlyConnection) ReceiveDatagram

func (m *MockEarlyConnection) ReceiveDatagram(arg0 context.Context) ([]byte, error)

ReceiveDatagram mocks base method.

func (*MockEarlyConnection) RemoteAddr

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

RemoteAddr mocks base method.

func (*MockEarlyConnection) SendDatagram

func (m *MockEarlyConnection) SendDatagram(arg0 []byte) error

SendDatagram mocks base method.

type MockEarlyConnectionAcceptStreamCall

type MockEarlyConnectionAcceptStreamCall struct {
	*gomock.Call
}

MockEarlyConnectionAcceptStreamCall wrap *gomock.Call

func (*MockEarlyConnectionAcceptStreamCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionAcceptStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionAcceptStreamCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionAcceptUniStreamCall

type MockEarlyConnectionAcceptUniStreamCall struct {
	*gomock.Call
}

MockEarlyConnectionAcceptUniStreamCall wrap *gomock.Call

func (*MockEarlyConnectionAcceptUniStreamCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionAcceptUniStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionAcceptUniStreamCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionCloseWithErrorCall

type MockEarlyConnectionCloseWithErrorCall struct {
	*gomock.Call
}

MockEarlyConnectionCloseWithErrorCall wrap *gomock.Call

func (*MockEarlyConnectionCloseWithErrorCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionCloseWithErrorCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionCloseWithErrorCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionConnectionStateCall

type MockEarlyConnectionConnectionStateCall struct {
	*gomock.Call
}

MockEarlyConnectionConnectionStateCall wrap *gomock.Call

func (*MockEarlyConnectionConnectionStateCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionConnectionStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionConnectionStateCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionContextCall

type MockEarlyConnectionContextCall struct {
	*gomock.Call
}

MockEarlyConnectionContextCall wrap *gomock.Call

func (*MockEarlyConnectionContextCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionContextCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionContextCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionHandshakeCompleteCall

type MockEarlyConnectionHandshakeCompleteCall struct {
	*gomock.Call
}

MockEarlyConnectionHandshakeCompleteCall wrap *gomock.Call

func (*MockEarlyConnectionHandshakeCompleteCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionHandshakeCompleteCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionHandshakeCompleteCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionLocalAddrCall

type MockEarlyConnectionLocalAddrCall struct {
	*gomock.Call
}

MockEarlyConnectionLocalAddrCall wrap *gomock.Call

func (*MockEarlyConnectionLocalAddrCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionLocalAddrCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionLocalAddrCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionMockRecorder

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

MockEarlyConnectionMockRecorder is the mock recorder for MockEarlyConnection.

func (*MockEarlyConnectionMockRecorder) AcceptStream

AcceptStream indicates an expected call of AcceptStream.

func (*MockEarlyConnectionMockRecorder) AcceptUniStream

AcceptUniStream indicates an expected call of AcceptUniStream.

func (*MockEarlyConnectionMockRecorder) CloseWithError

CloseWithError indicates an expected call of CloseWithError.

func (*MockEarlyConnectionMockRecorder) ConnectionState

ConnectionState indicates an expected call of ConnectionState.

func (*MockEarlyConnectionMockRecorder) Context

Context indicates an expected call of Context.

func (*MockEarlyConnectionMockRecorder) HandshakeComplete

HandshakeComplete indicates an expected call of HandshakeComplete.

func (*MockEarlyConnectionMockRecorder) LocalAddr

LocalAddr indicates an expected call of LocalAddr.

func (*MockEarlyConnectionMockRecorder) NextConnection

NextConnection indicates an expected call of NextConnection.

func (*MockEarlyConnectionMockRecorder) OpenStream

OpenStream indicates an expected call of OpenStream.

func (*MockEarlyConnectionMockRecorder) OpenStreamSync

OpenStreamSync indicates an expected call of OpenStreamSync.

func (*MockEarlyConnectionMockRecorder) OpenUniStream

OpenUniStream indicates an expected call of OpenUniStream.

func (*MockEarlyConnectionMockRecorder) OpenUniStreamSync

OpenUniStreamSync indicates an expected call of OpenUniStreamSync.

func (*MockEarlyConnectionMockRecorder) ReceiveDatagram

ReceiveDatagram indicates an expected call of ReceiveDatagram.

func (*MockEarlyConnectionMockRecorder) RemoteAddr

RemoteAddr indicates an expected call of RemoteAddr.

func (*MockEarlyConnectionMockRecorder) SendDatagram

SendDatagram indicates an expected call of SendDatagram.

type MockEarlyConnectionNextConnectionCall

type MockEarlyConnectionNextConnectionCall struct {
	*gomock.Call
}

MockEarlyConnectionNextConnectionCall wrap *gomock.Call

func (*MockEarlyConnectionNextConnectionCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionNextConnectionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionNextConnectionCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionOpenStreamCall

type MockEarlyConnectionOpenStreamCall struct {
	*gomock.Call
}

MockEarlyConnectionOpenStreamCall wrap *gomock.Call

func (*MockEarlyConnectionOpenStreamCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionOpenStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionOpenStreamCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionOpenStreamSyncCall

type MockEarlyConnectionOpenStreamSyncCall struct {
	*gomock.Call
}

MockEarlyConnectionOpenStreamSyncCall wrap *gomock.Call

func (*MockEarlyConnectionOpenStreamSyncCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionOpenStreamSyncCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionOpenStreamSyncCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionOpenUniStreamCall

type MockEarlyConnectionOpenUniStreamCall struct {
	*gomock.Call
}

MockEarlyConnectionOpenUniStreamCall wrap *gomock.Call

func (*MockEarlyConnectionOpenUniStreamCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionOpenUniStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionOpenUniStreamCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionOpenUniStreamSyncCall

type MockEarlyConnectionOpenUniStreamSyncCall struct {
	*gomock.Call
}

MockEarlyConnectionOpenUniStreamSyncCall wrap *gomock.Call

func (*MockEarlyConnectionOpenUniStreamSyncCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionOpenUniStreamSyncCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionOpenUniStreamSyncCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionReceiveDatagramCall

type MockEarlyConnectionReceiveDatagramCall struct {
	*gomock.Call
}

MockEarlyConnectionReceiveDatagramCall wrap *gomock.Call

func (*MockEarlyConnectionReceiveDatagramCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionReceiveDatagramCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionReceiveDatagramCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionRemoteAddrCall

type MockEarlyConnectionRemoteAddrCall struct {
	*gomock.Call
}

MockEarlyConnectionRemoteAddrCall wrap *gomock.Call

func (*MockEarlyConnectionRemoteAddrCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionRemoteAddrCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionRemoteAddrCall) Return

Return rewrite *gomock.Call.Return

type MockEarlyConnectionSendDatagramCall

type MockEarlyConnectionSendDatagramCall struct {
	*gomock.Call
}

MockEarlyConnectionSendDatagramCall wrap *gomock.Call

func (*MockEarlyConnectionSendDatagramCall) Do

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionSendDatagramCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionSendDatagramCall) Return

Return rewrite *gomock.Call.Return

type MockStream

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

MockStream is a mock of Stream interface.

func NewMockStream

func NewMockStream(ctrl *gomock.Controller) *MockStream

NewMockStream creates a new mock instance.

func (*MockStream) CancelRead

func (m *MockStream) CancelRead(arg0 qerr.StreamErrorCode)

CancelRead mocks base method.

func (*MockStream) CancelWrite

func (m *MockStream) CancelWrite(arg0 qerr.StreamErrorCode)

CancelWrite mocks base method.

func (*MockStream) Close

func (m *MockStream) Close() error

Close mocks base method.

func (*MockStream) Context

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

Context mocks base method.

func (*MockStream) EXPECT

func (m *MockStream) EXPECT() *MockStreamMockRecorder

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

func (*MockStream) Read

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

Read mocks base method.

func (*MockStream) SetDeadline

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

SetDeadline mocks base method.

func (*MockStream) SetReadDeadline

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

SetReadDeadline mocks base method.

func (*MockStream) SetWriteDeadline

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

SetWriteDeadline mocks base method.

func (*MockStream) StreamID

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

StreamID mocks base method.

func (*MockStream) Write

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

Write mocks base method.

type MockStreamCancelReadCall

type MockStreamCancelReadCall struct {
	*gomock.Call
}

MockStreamCancelReadCall wrap *gomock.Call

func (*MockStreamCancelReadCall) Do

Do rewrite *gomock.Call.Do

func (*MockStreamCancelReadCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamCancelReadCall) Return

Return rewrite *gomock.Call.Return

type MockStreamCancelWriteCall

type MockStreamCancelWriteCall struct {
	*gomock.Call
}

MockStreamCancelWriteCall wrap *gomock.Call

func (*MockStreamCancelWriteCall) Do

Do rewrite *gomock.Call.Do

func (*MockStreamCancelWriteCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamCancelWriteCall) Return

Return rewrite *gomock.Call.Return

type MockStreamCloseCall

type MockStreamCloseCall struct {
	*gomock.Call
}

MockStreamCloseCall wrap *gomock.Call

func (*MockStreamCloseCall) Do

Do rewrite *gomock.Call.Do

func (*MockStreamCloseCall) DoAndReturn

func (c *MockStreamCloseCall) DoAndReturn(f func() error) *MockStreamCloseCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamCloseCall) Return

Return rewrite *gomock.Call.Return

type MockStreamContextCall

type MockStreamContextCall struct {
	*gomock.Call
}

MockStreamContextCall wrap *gomock.Call

func (*MockStreamContextCall) Do

Do rewrite *gomock.Call.Do

func (*MockStreamContextCall) DoAndReturn

func (c *MockStreamContextCall) DoAndReturn(f func() context.Context) *MockStreamContextCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamContextCall) Return

Return rewrite *gomock.Call.Return

type MockStreamMockRecorder

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

MockStreamMockRecorder is the mock recorder for MockStream.

func (*MockStreamMockRecorder) CancelRead

func (mr *MockStreamMockRecorder) CancelRead(arg0 any) *MockStreamCancelReadCall

CancelRead indicates an expected call of CancelRead.

func (*MockStreamMockRecorder) CancelWrite

func (mr *MockStreamMockRecorder) CancelWrite(arg0 any) *MockStreamCancelWriteCall

CancelWrite indicates an expected call of CancelWrite.

func (*MockStreamMockRecorder) Close

Close indicates an expected call of Close.

func (*MockStreamMockRecorder) Context

Context indicates an expected call of Context.

func (*MockStreamMockRecorder) Read

Read indicates an expected call of Read.

func (*MockStreamMockRecorder) SetDeadline

func (mr *MockStreamMockRecorder) SetDeadline(arg0 any) *MockStreamSetDeadlineCall

SetDeadline indicates an expected call of SetDeadline.

func (*MockStreamMockRecorder) SetReadDeadline

func (mr *MockStreamMockRecorder) SetReadDeadline(arg0 any) *MockStreamSetReadDeadlineCall

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockStreamMockRecorder) SetWriteDeadline

func (mr *MockStreamMockRecorder) SetWriteDeadline(arg0 any) *MockStreamSetWriteDeadlineCall

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockStreamMockRecorder) StreamID

StreamID indicates an expected call of StreamID.

func (*MockStreamMockRecorder) Write

Write indicates an expected call of Write.

type MockStreamReadCall

type MockStreamReadCall struct {
	*gomock.Call
}

MockStreamReadCall wrap *gomock.Call

func (*MockStreamReadCall) Do

func (c *MockStreamReadCall) Do(f func([]byte) (int, error)) *MockStreamReadCall

Do rewrite *gomock.Call.Do

func (*MockStreamReadCall) DoAndReturn

func (c *MockStreamReadCall) DoAndReturn(f func([]byte) (int, error)) *MockStreamReadCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamReadCall) Return

func (c *MockStreamReadCall) Return(arg0 int, arg1 error) *MockStreamReadCall

Return rewrite *gomock.Call.Return

type MockStreamSetDeadlineCall

type MockStreamSetDeadlineCall struct {
	*gomock.Call
}

MockStreamSetDeadlineCall wrap *gomock.Call

func (*MockStreamSetDeadlineCall) Do

Do rewrite *gomock.Call.Do

func (*MockStreamSetDeadlineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamSetDeadlineCall) Return

Return rewrite *gomock.Call.Return

type MockStreamSetReadDeadlineCall

type MockStreamSetReadDeadlineCall struct {
	*gomock.Call
}

MockStreamSetReadDeadlineCall wrap *gomock.Call

func (*MockStreamSetReadDeadlineCall) Do

Do rewrite *gomock.Call.Do

func (*MockStreamSetReadDeadlineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamSetReadDeadlineCall) Return

Return rewrite *gomock.Call.Return

type MockStreamSetWriteDeadlineCall

type MockStreamSetWriteDeadlineCall struct {
	*gomock.Call
}

MockStreamSetWriteDeadlineCall wrap *gomock.Call

func (*MockStreamSetWriteDeadlineCall) Do

Do rewrite *gomock.Call.Do

func (*MockStreamSetWriteDeadlineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamSetWriteDeadlineCall) Return

Return rewrite *gomock.Call.Return

type MockStreamStreamIDCall

type MockStreamStreamIDCall struct {
	*gomock.Call
}

MockStreamStreamIDCall wrap *gomock.Call

func (*MockStreamStreamIDCall) Do

Do rewrite *gomock.Call.Do

func (*MockStreamStreamIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamStreamIDCall) Return

Return rewrite *gomock.Call.Return

type MockStreamWriteCall

type MockStreamWriteCall struct {
	*gomock.Call
}

MockStreamWriteCall wrap *gomock.Call

func (*MockStreamWriteCall) Do

func (c *MockStreamWriteCall) Do(f func([]byte) (int, error)) *MockStreamWriteCall

Do rewrite *gomock.Call.Do

func (*MockStreamWriteCall) DoAndReturn

func (c *MockStreamWriteCall) DoAndReturn(f func([]byte) (int, error)) *MockStreamWriteCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamWriteCall) Return

func (c *MockStreamWriteCall) Return(arg0 int, arg1 error) *MockStreamWriteCall

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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