mockquic

package
v0.48.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 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(arg0 context.Context) (quic.Connection, error)

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 added in v0.40.0

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 added in v0.40.0

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

SendDatagram mocks base method.

type MockEarlyConnectionAcceptStreamCall added in v0.42.0

type MockEarlyConnectionAcceptStreamCall struct {
	*gomock.Call
}

MockEarlyConnectionAcceptStreamCall wrap *gomock.Call

func (*MockEarlyConnectionAcceptStreamCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionAcceptStreamCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionAcceptStreamCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionAcceptUniStreamCall added in v0.42.0

type MockEarlyConnectionAcceptUniStreamCall struct {
	*gomock.Call
}

MockEarlyConnectionAcceptUniStreamCall wrap *gomock.Call

func (*MockEarlyConnectionAcceptUniStreamCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionAcceptUniStreamCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionAcceptUniStreamCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionCloseWithErrorCall added in v0.42.0

type MockEarlyConnectionCloseWithErrorCall struct {
	*gomock.Call
}

MockEarlyConnectionCloseWithErrorCall wrap *gomock.Call

func (*MockEarlyConnectionCloseWithErrorCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionCloseWithErrorCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionCloseWithErrorCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionConnectionStateCall added in v0.42.0

type MockEarlyConnectionConnectionStateCall struct {
	*gomock.Call
}

MockEarlyConnectionConnectionStateCall wrap *gomock.Call

func (*MockEarlyConnectionConnectionStateCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionConnectionStateCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionConnectionStateCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionContextCall added in v0.42.0

type MockEarlyConnectionContextCall struct {
	*gomock.Call
}

MockEarlyConnectionContextCall wrap *gomock.Call

func (*MockEarlyConnectionContextCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionContextCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionContextCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionHandshakeCompleteCall added in v0.42.0

type MockEarlyConnectionHandshakeCompleteCall struct {
	*gomock.Call
}

MockEarlyConnectionHandshakeCompleteCall wrap *gomock.Call

func (*MockEarlyConnectionHandshakeCompleteCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionHandshakeCompleteCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionHandshakeCompleteCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionLocalAddrCall added in v0.42.0

type MockEarlyConnectionLocalAddrCall struct {
	*gomock.Call
}

MockEarlyConnectionLocalAddrCall wrap *gomock.Call

func (*MockEarlyConnectionLocalAddrCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionLocalAddrCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionLocalAddrCall) Return added in v0.42.0

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 added in v0.40.0

ReceiveDatagram indicates an expected call of ReceiveDatagram.

func (*MockEarlyConnectionMockRecorder) RemoteAddr

RemoteAddr indicates an expected call of RemoteAddr.

func (*MockEarlyConnectionMockRecorder) SendDatagram added in v0.40.0

SendDatagram indicates an expected call of SendDatagram.

type MockEarlyConnectionNextConnectionCall added in v0.42.0

type MockEarlyConnectionNextConnectionCall struct {
	*gomock.Call
}

MockEarlyConnectionNextConnectionCall wrap *gomock.Call

func (*MockEarlyConnectionNextConnectionCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionNextConnectionCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionNextConnectionCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionOpenStreamCall added in v0.42.0

type MockEarlyConnectionOpenStreamCall struct {
	*gomock.Call
}

MockEarlyConnectionOpenStreamCall wrap *gomock.Call

func (*MockEarlyConnectionOpenStreamCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionOpenStreamCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionOpenStreamCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionOpenStreamSyncCall added in v0.42.0

type MockEarlyConnectionOpenStreamSyncCall struct {
	*gomock.Call
}

MockEarlyConnectionOpenStreamSyncCall wrap *gomock.Call

func (*MockEarlyConnectionOpenStreamSyncCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionOpenStreamSyncCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionOpenStreamSyncCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionOpenUniStreamCall added in v0.42.0

type MockEarlyConnectionOpenUniStreamCall struct {
	*gomock.Call
}

MockEarlyConnectionOpenUniStreamCall wrap *gomock.Call

func (*MockEarlyConnectionOpenUniStreamCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionOpenUniStreamCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionOpenUniStreamCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionOpenUniStreamSyncCall added in v0.42.0

type MockEarlyConnectionOpenUniStreamSyncCall struct {
	*gomock.Call
}

MockEarlyConnectionOpenUniStreamSyncCall wrap *gomock.Call

func (*MockEarlyConnectionOpenUniStreamSyncCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionOpenUniStreamSyncCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionOpenUniStreamSyncCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionReceiveDatagramCall added in v0.42.0

type MockEarlyConnectionReceiveDatagramCall struct {
	*gomock.Call
}

MockEarlyConnectionReceiveDatagramCall wrap *gomock.Call

func (*MockEarlyConnectionReceiveDatagramCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionReceiveDatagramCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionReceiveDatagramCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionRemoteAddrCall added in v0.42.0

type MockEarlyConnectionRemoteAddrCall struct {
	*gomock.Call
}

MockEarlyConnectionRemoteAddrCall wrap *gomock.Call

func (*MockEarlyConnectionRemoteAddrCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionRemoteAddrCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionRemoteAddrCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockEarlyConnectionSendDatagramCall added in v0.42.0

type MockEarlyConnectionSendDatagramCall struct {
	*gomock.Call
}

MockEarlyConnectionSendDatagramCall wrap *gomock.Call

func (*MockEarlyConnectionSendDatagramCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockEarlyConnectionSendDatagramCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockEarlyConnectionSendDatagramCall) Return added in v0.42.0

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 added in v0.42.0

type MockStreamCancelReadCall struct {
	*gomock.Call
}

MockStreamCancelReadCall wrap *gomock.Call

func (*MockStreamCancelReadCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockStreamCancelReadCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamCancelReadCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockStreamCancelWriteCall added in v0.42.0

type MockStreamCancelWriteCall struct {
	*gomock.Call
}

MockStreamCancelWriteCall wrap *gomock.Call

func (*MockStreamCancelWriteCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockStreamCancelWriteCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamCancelWriteCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockStreamCloseCall added in v0.42.0

type MockStreamCloseCall struct {
	*gomock.Call
}

MockStreamCloseCall wrap *gomock.Call

func (*MockStreamCloseCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockStreamCloseCall) DoAndReturn added in v0.42.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamCloseCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockStreamContextCall added in v0.42.0

type MockStreamContextCall struct {
	*gomock.Call
}

MockStreamContextCall wrap *gomock.Call

func (*MockStreamContextCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockStreamContextCall) DoAndReturn added in v0.42.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamContextCall) Return added in v0.42.0

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 added in v0.42.0

type MockStreamReadCall struct {
	*gomock.Call
}

MockStreamReadCall wrap *gomock.Call

func (*MockStreamReadCall) Do added in v0.42.0

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

Do rewrite *gomock.Call.Do

func (*MockStreamReadCall) DoAndReturn added in v0.42.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamReadCall) Return added in v0.42.0

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

Return rewrite *gomock.Call.Return

type MockStreamSetDeadlineCall added in v0.42.0

type MockStreamSetDeadlineCall struct {
	*gomock.Call
}

MockStreamSetDeadlineCall wrap *gomock.Call

func (*MockStreamSetDeadlineCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockStreamSetDeadlineCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamSetDeadlineCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockStreamSetReadDeadlineCall added in v0.42.0

type MockStreamSetReadDeadlineCall struct {
	*gomock.Call
}

MockStreamSetReadDeadlineCall wrap *gomock.Call

func (*MockStreamSetReadDeadlineCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockStreamSetReadDeadlineCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamSetReadDeadlineCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockStreamSetWriteDeadlineCall added in v0.42.0

type MockStreamSetWriteDeadlineCall struct {
	*gomock.Call
}

MockStreamSetWriteDeadlineCall wrap *gomock.Call

func (*MockStreamSetWriteDeadlineCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockStreamSetWriteDeadlineCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamSetWriteDeadlineCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockStreamStreamIDCall added in v0.42.0

type MockStreamStreamIDCall struct {
	*gomock.Call
}

MockStreamStreamIDCall wrap *gomock.Call

func (*MockStreamStreamIDCall) Do added in v0.42.0

Do rewrite *gomock.Call.Do

func (*MockStreamStreamIDCall) DoAndReturn added in v0.42.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamStreamIDCall) Return added in v0.42.0

Return rewrite *gomock.Call.Return

type MockStreamWriteCall added in v0.42.0

type MockStreamWriteCall struct {
	*gomock.Call
}

MockStreamWriteCall wrap *gomock.Call

func (*MockStreamWriteCall) Do added in v0.42.0

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

Do rewrite *gomock.Call.Do

func (*MockStreamWriteCall) DoAndReturn added in v0.42.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockStreamWriteCall) Return added in v0.42.0

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