Documentation ¶
Overview ¶
Package mockquic is a generated GoMock package.
Package mockquic is a generated GoMock package.
Index ¶
- type MockEarlyConnection
- func (m *MockEarlyConnection) AcceptStream(arg0 context.Context) (quic.Stream, error)
- func (m *MockEarlyConnection) AcceptUniStream(arg0 context.Context) (quic.ReceiveStream, error)
- func (m *MockEarlyConnection) CloseWithError(arg0 qerr.ApplicationErrorCode, arg1 string) error
- func (m *MockEarlyConnection) ConnectionState() quic.ConnectionState
- func (m *MockEarlyConnection) Context() context.Context
- func (m *MockEarlyConnection) EXPECT() *MockEarlyConnectionMockRecorder
- func (m *MockEarlyConnection) HandshakeComplete() <-chan struct{}
- func (m *MockEarlyConnection) LocalAddr() net.Addr
- func (m *MockEarlyConnection) NextConnection() quic.Connection
- func (m *MockEarlyConnection) OpenStream() (quic.Stream, error)
- func (m *MockEarlyConnection) OpenStreamSync(arg0 context.Context) (quic.Stream, error)
- func (m *MockEarlyConnection) OpenUniStream() (quic.SendStream, error)
- func (m *MockEarlyConnection) OpenUniStreamSync(arg0 context.Context) (quic.SendStream, error)
- func (m *MockEarlyConnection) ReceiveDatagram(arg0 context.Context) ([]byte, error)
- func (m *MockEarlyConnection) RemoteAddr() net.Addr
- func (m *MockEarlyConnection) SendDatagram(arg0 []byte) error
- type MockEarlyConnectionAcceptStreamCall
- func (c *MockEarlyConnectionAcceptStreamCall) Do(f func(context.Context) (quic.Stream, error)) *MockEarlyConnectionAcceptStreamCall
- func (c *MockEarlyConnectionAcceptStreamCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *MockEarlyConnectionAcceptStreamCall
- func (c *MockEarlyConnectionAcceptStreamCall) Return(arg0 quic.Stream, arg1 error) *MockEarlyConnectionAcceptStreamCall
- type MockEarlyConnectionAcceptUniStreamCall
- func (c *MockEarlyConnectionAcceptUniStreamCall) Do(f func(context.Context) (quic.ReceiveStream, error)) *MockEarlyConnectionAcceptUniStreamCall
- func (c *MockEarlyConnectionAcceptUniStreamCall) DoAndReturn(f func(context.Context) (quic.ReceiveStream, error)) *MockEarlyConnectionAcceptUniStreamCall
- func (c *MockEarlyConnectionAcceptUniStreamCall) Return(arg0 quic.ReceiveStream, arg1 error) *MockEarlyConnectionAcceptUniStreamCall
- type MockEarlyConnectionCloseWithErrorCall
- func (c *MockEarlyConnectionCloseWithErrorCall) Do(f func(qerr.ApplicationErrorCode, string) error) *MockEarlyConnectionCloseWithErrorCall
- func (c *MockEarlyConnectionCloseWithErrorCall) DoAndReturn(f func(qerr.ApplicationErrorCode, string) error) *MockEarlyConnectionCloseWithErrorCall
- func (c *MockEarlyConnectionCloseWithErrorCall) Return(arg0 error) *MockEarlyConnectionCloseWithErrorCall
- type MockEarlyConnectionConnectionStateCall
- func (c *MockEarlyConnectionConnectionStateCall) Do(f func() quic.ConnectionState) *MockEarlyConnectionConnectionStateCall
- func (c *MockEarlyConnectionConnectionStateCall) DoAndReturn(f func() quic.ConnectionState) *MockEarlyConnectionConnectionStateCall
- func (c *MockEarlyConnectionConnectionStateCall) Return(arg0 quic.ConnectionState) *MockEarlyConnectionConnectionStateCall
- type MockEarlyConnectionContextCall
- func (c *MockEarlyConnectionContextCall) Do(f func() context.Context) *MockEarlyConnectionContextCall
- func (c *MockEarlyConnectionContextCall) DoAndReturn(f func() context.Context) *MockEarlyConnectionContextCall
- func (c *MockEarlyConnectionContextCall) Return(arg0 context.Context) *MockEarlyConnectionContextCall
- type MockEarlyConnectionHandshakeCompleteCall
- func (c *MockEarlyConnectionHandshakeCompleteCall) Do(f func() <-chan struct{}) *MockEarlyConnectionHandshakeCompleteCall
- func (c *MockEarlyConnectionHandshakeCompleteCall) DoAndReturn(f func() <-chan struct{}) *MockEarlyConnectionHandshakeCompleteCall
- func (c *MockEarlyConnectionHandshakeCompleteCall) Return(arg0 <-chan struct{}) *MockEarlyConnectionHandshakeCompleteCall
- type MockEarlyConnectionLocalAddrCall
- func (c *MockEarlyConnectionLocalAddrCall) Do(f func() net.Addr) *MockEarlyConnectionLocalAddrCall
- func (c *MockEarlyConnectionLocalAddrCall) DoAndReturn(f func() net.Addr) *MockEarlyConnectionLocalAddrCall
- func (c *MockEarlyConnectionLocalAddrCall) Return(arg0 net.Addr) *MockEarlyConnectionLocalAddrCall
- type MockEarlyConnectionMockRecorder
- func (mr *MockEarlyConnectionMockRecorder) AcceptStream(arg0 any) *MockEarlyConnectionAcceptStreamCall
- func (mr *MockEarlyConnectionMockRecorder) AcceptUniStream(arg0 any) *MockEarlyConnectionAcceptUniStreamCall
- func (mr *MockEarlyConnectionMockRecorder) CloseWithError(arg0, arg1 any) *MockEarlyConnectionCloseWithErrorCall
- func (mr *MockEarlyConnectionMockRecorder) ConnectionState() *MockEarlyConnectionConnectionStateCall
- func (mr *MockEarlyConnectionMockRecorder) Context() *MockEarlyConnectionContextCall
- func (mr *MockEarlyConnectionMockRecorder) HandshakeComplete() *MockEarlyConnectionHandshakeCompleteCall
- func (mr *MockEarlyConnectionMockRecorder) LocalAddr() *MockEarlyConnectionLocalAddrCall
- func (mr *MockEarlyConnectionMockRecorder) NextConnection() *MockEarlyConnectionNextConnectionCall
- func (mr *MockEarlyConnectionMockRecorder) OpenStream() *MockEarlyConnectionOpenStreamCall
- func (mr *MockEarlyConnectionMockRecorder) OpenStreamSync(arg0 any) *MockEarlyConnectionOpenStreamSyncCall
- func (mr *MockEarlyConnectionMockRecorder) OpenUniStream() *MockEarlyConnectionOpenUniStreamCall
- func (mr *MockEarlyConnectionMockRecorder) OpenUniStreamSync(arg0 any) *MockEarlyConnectionOpenUniStreamSyncCall
- func (mr *MockEarlyConnectionMockRecorder) ReceiveDatagram(arg0 any) *MockEarlyConnectionReceiveDatagramCall
- func (mr *MockEarlyConnectionMockRecorder) RemoteAddr() *MockEarlyConnectionRemoteAddrCall
- func (mr *MockEarlyConnectionMockRecorder) SendDatagram(arg0 any) *MockEarlyConnectionSendDatagramCall
- type MockEarlyConnectionNextConnectionCall
- func (c *MockEarlyConnectionNextConnectionCall) Do(f func() quic.Connection) *MockEarlyConnectionNextConnectionCall
- func (c *MockEarlyConnectionNextConnectionCall) DoAndReturn(f func() quic.Connection) *MockEarlyConnectionNextConnectionCall
- func (c *MockEarlyConnectionNextConnectionCall) Return(arg0 quic.Connection) *MockEarlyConnectionNextConnectionCall
- type MockEarlyConnectionOpenStreamCall
- func (c *MockEarlyConnectionOpenStreamCall) Do(f func() (quic.Stream, error)) *MockEarlyConnectionOpenStreamCall
- func (c *MockEarlyConnectionOpenStreamCall) DoAndReturn(f func() (quic.Stream, error)) *MockEarlyConnectionOpenStreamCall
- func (c *MockEarlyConnectionOpenStreamCall) Return(arg0 quic.Stream, arg1 error) *MockEarlyConnectionOpenStreamCall
- type MockEarlyConnectionOpenStreamSyncCall
- func (c *MockEarlyConnectionOpenStreamSyncCall) Do(f func(context.Context) (quic.Stream, error)) *MockEarlyConnectionOpenStreamSyncCall
- func (c *MockEarlyConnectionOpenStreamSyncCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *MockEarlyConnectionOpenStreamSyncCall
- func (c *MockEarlyConnectionOpenStreamSyncCall) Return(arg0 quic.Stream, arg1 error) *MockEarlyConnectionOpenStreamSyncCall
- type MockEarlyConnectionOpenUniStreamCall
- func (c *MockEarlyConnectionOpenUniStreamCall) Do(f func() (quic.SendStream, error)) *MockEarlyConnectionOpenUniStreamCall
- func (c *MockEarlyConnectionOpenUniStreamCall) DoAndReturn(f func() (quic.SendStream, error)) *MockEarlyConnectionOpenUniStreamCall
- func (c *MockEarlyConnectionOpenUniStreamCall) Return(arg0 quic.SendStream, arg1 error) *MockEarlyConnectionOpenUniStreamCall
- type MockEarlyConnectionOpenUniStreamSyncCall
- func (c *MockEarlyConnectionOpenUniStreamSyncCall) Do(f func(context.Context) (quic.SendStream, error)) *MockEarlyConnectionOpenUniStreamSyncCall
- func (c *MockEarlyConnectionOpenUniStreamSyncCall) DoAndReturn(f func(context.Context) (quic.SendStream, error)) *MockEarlyConnectionOpenUniStreamSyncCall
- func (c *MockEarlyConnectionOpenUniStreamSyncCall) Return(arg0 quic.SendStream, arg1 error) *MockEarlyConnectionOpenUniStreamSyncCall
- type MockEarlyConnectionReceiveDatagramCall
- func (c *MockEarlyConnectionReceiveDatagramCall) Do(f func(context.Context) ([]byte, error)) *MockEarlyConnectionReceiveDatagramCall
- func (c *MockEarlyConnectionReceiveDatagramCall) DoAndReturn(f func(context.Context) ([]byte, error)) *MockEarlyConnectionReceiveDatagramCall
- func (c *MockEarlyConnectionReceiveDatagramCall) Return(arg0 []byte, arg1 error) *MockEarlyConnectionReceiveDatagramCall
- type MockEarlyConnectionRemoteAddrCall
- func (c *MockEarlyConnectionRemoteAddrCall) Do(f func() net.Addr) *MockEarlyConnectionRemoteAddrCall
- func (c *MockEarlyConnectionRemoteAddrCall) DoAndReturn(f func() net.Addr) *MockEarlyConnectionRemoteAddrCall
- func (c *MockEarlyConnectionRemoteAddrCall) Return(arg0 net.Addr) *MockEarlyConnectionRemoteAddrCall
- type MockEarlyConnectionSendDatagramCall
- func (c *MockEarlyConnectionSendDatagramCall) Do(f func([]byte) error) *MockEarlyConnectionSendDatagramCall
- func (c *MockEarlyConnectionSendDatagramCall) DoAndReturn(f func([]byte) error) *MockEarlyConnectionSendDatagramCall
- func (c *MockEarlyConnectionSendDatagramCall) Return(arg0 error) *MockEarlyConnectionSendDatagramCall
- type MockStream
- func (m *MockStream) CancelRead(arg0 qerr.StreamErrorCode)
- func (m *MockStream) CancelWrite(arg0 qerr.StreamErrorCode)
- func (m *MockStream) Close() error
- func (m *MockStream) Context() context.Context
- func (m *MockStream) EXPECT() *MockStreamMockRecorder
- func (m *MockStream) Read(arg0 []byte) (int, error)
- func (m *MockStream) SetDeadline(arg0 time.Time) error
- func (m *MockStream) SetReadDeadline(arg0 time.Time) error
- func (m *MockStream) SetWriteDeadline(arg0 time.Time) error
- func (m *MockStream) StreamID() protocol.StreamID
- func (m *MockStream) Write(arg0 []byte) (int, error)
- type MockStreamCancelReadCall
- type MockStreamCancelWriteCall
- type MockStreamCloseCall
- type MockStreamContextCall
- type MockStreamMockRecorder
- func (mr *MockStreamMockRecorder) CancelRead(arg0 any) *MockStreamCancelReadCall
- func (mr *MockStreamMockRecorder) CancelWrite(arg0 any) *MockStreamCancelWriteCall
- func (mr *MockStreamMockRecorder) Close() *MockStreamCloseCall
- func (mr *MockStreamMockRecorder) Context() *MockStreamContextCall
- func (mr *MockStreamMockRecorder) Read(arg0 any) *MockStreamReadCall
- func (mr *MockStreamMockRecorder) SetDeadline(arg0 any) *MockStreamSetDeadlineCall
- func (mr *MockStreamMockRecorder) SetReadDeadline(arg0 any) *MockStreamSetReadDeadlineCall
- func (mr *MockStreamMockRecorder) SetWriteDeadline(arg0 any) *MockStreamSetWriteDeadlineCall
- func (mr *MockStreamMockRecorder) StreamID() *MockStreamStreamIDCall
- func (mr *MockStreamMockRecorder) Write(arg0 any) *MockStreamWriteCall
- type MockStreamReadCall
- type MockStreamSetDeadlineCall
- type MockStreamSetReadDeadlineCall
- type MockStreamSetWriteDeadlineCall
- func (c *MockStreamSetWriteDeadlineCall) Do(f func(time.Time) error) *MockStreamSetWriteDeadlineCall
- func (c *MockStreamSetWriteDeadlineCall) DoAndReturn(f func(time.Time) error) *MockStreamSetWriteDeadlineCall
- func (c *MockStreamSetWriteDeadlineCall) Return(arg0 error) *MockStreamSetWriteDeadlineCall
- type MockStreamStreamIDCall
- type MockStreamWriteCall
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 ¶
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 ¶
func (m *MockEarlyConnection) EXPECT() *MockEarlyConnectionMockRecorder
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 ¶
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
MockEarlyConnectionAcceptStreamCall wrap *gomock.Call
func (*MockEarlyConnectionAcceptStreamCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionAcceptStreamCall) Do(f func(context.Context) (quic.Stream, error)) *MockEarlyConnectionAcceptStreamCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionAcceptStreamCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionAcceptStreamCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *MockEarlyConnectionAcceptStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionAcceptStreamCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionAcceptStreamCall) Return(arg0 quic.Stream, arg1 error) *MockEarlyConnectionAcceptStreamCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionAcceptUniStreamCall ¶ added in v0.42.0
MockEarlyConnectionAcceptUniStreamCall wrap *gomock.Call
func (*MockEarlyConnectionAcceptUniStreamCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionAcceptUniStreamCall) Do(f func(context.Context) (quic.ReceiveStream, error)) *MockEarlyConnectionAcceptUniStreamCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionAcceptUniStreamCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionAcceptUniStreamCall) DoAndReturn(f func(context.Context) (quic.ReceiveStream, error)) *MockEarlyConnectionAcceptUniStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionAcceptUniStreamCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionAcceptUniStreamCall) Return(arg0 quic.ReceiveStream, arg1 error) *MockEarlyConnectionAcceptUniStreamCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionCloseWithErrorCall ¶ added in v0.42.0
MockEarlyConnectionCloseWithErrorCall wrap *gomock.Call
func (*MockEarlyConnectionCloseWithErrorCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionCloseWithErrorCall) Do(f func(qerr.ApplicationErrorCode, string) error) *MockEarlyConnectionCloseWithErrorCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionCloseWithErrorCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionCloseWithErrorCall) DoAndReturn(f func(qerr.ApplicationErrorCode, string) error) *MockEarlyConnectionCloseWithErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionCloseWithErrorCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionCloseWithErrorCall) Return(arg0 error) *MockEarlyConnectionCloseWithErrorCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionConnectionStateCall ¶ added in v0.42.0
MockEarlyConnectionConnectionStateCall wrap *gomock.Call
func (*MockEarlyConnectionConnectionStateCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionConnectionStateCall) Do(f func() quic.ConnectionState) *MockEarlyConnectionConnectionStateCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionConnectionStateCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionConnectionStateCall) DoAndReturn(f func() quic.ConnectionState) *MockEarlyConnectionConnectionStateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionConnectionStateCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionConnectionStateCall) Return(arg0 quic.ConnectionState) *MockEarlyConnectionConnectionStateCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionContextCall ¶ added in v0.42.0
MockEarlyConnectionContextCall wrap *gomock.Call
func (*MockEarlyConnectionContextCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionContextCall) Do(f func() context.Context) *MockEarlyConnectionContextCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionContextCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionContextCall) DoAndReturn(f func() context.Context) *MockEarlyConnectionContextCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionContextCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionContextCall) Return(arg0 context.Context) *MockEarlyConnectionContextCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionHandshakeCompleteCall ¶ added in v0.42.0
MockEarlyConnectionHandshakeCompleteCall wrap *gomock.Call
func (*MockEarlyConnectionHandshakeCompleteCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionHandshakeCompleteCall) Do(f func() <-chan struct{}) *MockEarlyConnectionHandshakeCompleteCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionHandshakeCompleteCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionHandshakeCompleteCall) DoAndReturn(f func() <-chan struct{}) *MockEarlyConnectionHandshakeCompleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionHandshakeCompleteCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionHandshakeCompleteCall) Return(arg0 <-chan struct{}) *MockEarlyConnectionHandshakeCompleteCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionLocalAddrCall ¶ added in v0.42.0
MockEarlyConnectionLocalAddrCall wrap *gomock.Call
func (*MockEarlyConnectionLocalAddrCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionLocalAddrCall) Do(f func() net.Addr) *MockEarlyConnectionLocalAddrCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionLocalAddrCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionLocalAddrCall) DoAndReturn(f func() net.Addr) *MockEarlyConnectionLocalAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionLocalAddrCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionLocalAddrCall) Return(arg0 net.Addr) *MockEarlyConnectionLocalAddrCall
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 ¶
func (mr *MockEarlyConnectionMockRecorder) AcceptStream(arg0 any) *MockEarlyConnectionAcceptStreamCall
AcceptStream indicates an expected call of AcceptStream.
func (*MockEarlyConnectionMockRecorder) AcceptUniStream ¶
func (mr *MockEarlyConnectionMockRecorder) AcceptUniStream(arg0 any) *MockEarlyConnectionAcceptUniStreamCall
AcceptUniStream indicates an expected call of AcceptUniStream.
func (*MockEarlyConnectionMockRecorder) CloseWithError ¶
func (mr *MockEarlyConnectionMockRecorder) CloseWithError(arg0, arg1 any) *MockEarlyConnectionCloseWithErrorCall
CloseWithError indicates an expected call of CloseWithError.
func (*MockEarlyConnectionMockRecorder) ConnectionState ¶
func (mr *MockEarlyConnectionMockRecorder) ConnectionState() *MockEarlyConnectionConnectionStateCall
ConnectionState indicates an expected call of ConnectionState.
func (*MockEarlyConnectionMockRecorder) Context ¶
func (mr *MockEarlyConnectionMockRecorder) Context() *MockEarlyConnectionContextCall
Context indicates an expected call of Context.
func (*MockEarlyConnectionMockRecorder) HandshakeComplete ¶
func (mr *MockEarlyConnectionMockRecorder) HandshakeComplete() *MockEarlyConnectionHandshakeCompleteCall
HandshakeComplete indicates an expected call of HandshakeComplete.
func (*MockEarlyConnectionMockRecorder) LocalAddr ¶
func (mr *MockEarlyConnectionMockRecorder) LocalAddr() *MockEarlyConnectionLocalAddrCall
LocalAddr indicates an expected call of LocalAddr.
func (*MockEarlyConnectionMockRecorder) NextConnection ¶
func (mr *MockEarlyConnectionMockRecorder) NextConnection() *MockEarlyConnectionNextConnectionCall
NextConnection indicates an expected call of NextConnection.
func (*MockEarlyConnectionMockRecorder) OpenStream ¶
func (mr *MockEarlyConnectionMockRecorder) OpenStream() *MockEarlyConnectionOpenStreamCall
OpenStream indicates an expected call of OpenStream.
func (*MockEarlyConnectionMockRecorder) OpenStreamSync ¶
func (mr *MockEarlyConnectionMockRecorder) OpenStreamSync(arg0 any) *MockEarlyConnectionOpenStreamSyncCall
OpenStreamSync indicates an expected call of OpenStreamSync.
func (*MockEarlyConnectionMockRecorder) OpenUniStream ¶
func (mr *MockEarlyConnectionMockRecorder) OpenUniStream() *MockEarlyConnectionOpenUniStreamCall
OpenUniStream indicates an expected call of OpenUniStream.
func (*MockEarlyConnectionMockRecorder) OpenUniStreamSync ¶
func (mr *MockEarlyConnectionMockRecorder) OpenUniStreamSync(arg0 any) *MockEarlyConnectionOpenUniStreamSyncCall
OpenUniStreamSync indicates an expected call of OpenUniStreamSync.
func (*MockEarlyConnectionMockRecorder) ReceiveDatagram ¶ added in v0.40.0
func (mr *MockEarlyConnectionMockRecorder) ReceiveDatagram(arg0 any) *MockEarlyConnectionReceiveDatagramCall
ReceiveDatagram indicates an expected call of ReceiveDatagram.
func (*MockEarlyConnectionMockRecorder) RemoteAddr ¶
func (mr *MockEarlyConnectionMockRecorder) RemoteAddr() *MockEarlyConnectionRemoteAddrCall
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockEarlyConnectionMockRecorder) SendDatagram ¶ added in v0.40.0
func (mr *MockEarlyConnectionMockRecorder) SendDatagram(arg0 any) *MockEarlyConnectionSendDatagramCall
SendDatagram indicates an expected call of SendDatagram.
type MockEarlyConnectionNextConnectionCall ¶ added in v0.42.0
MockEarlyConnectionNextConnectionCall wrap *gomock.Call
func (*MockEarlyConnectionNextConnectionCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionNextConnectionCall) Do(f func() quic.Connection) *MockEarlyConnectionNextConnectionCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionNextConnectionCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionNextConnectionCall) DoAndReturn(f func() quic.Connection) *MockEarlyConnectionNextConnectionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionNextConnectionCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionNextConnectionCall) Return(arg0 quic.Connection) *MockEarlyConnectionNextConnectionCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionOpenStreamCall ¶ added in v0.42.0
MockEarlyConnectionOpenStreamCall wrap *gomock.Call
func (*MockEarlyConnectionOpenStreamCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenStreamCall) Do(f func() (quic.Stream, error)) *MockEarlyConnectionOpenStreamCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionOpenStreamCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenStreamCall) DoAndReturn(f func() (quic.Stream, error)) *MockEarlyConnectionOpenStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionOpenStreamCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenStreamCall) Return(arg0 quic.Stream, arg1 error) *MockEarlyConnectionOpenStreamCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionOpenStreamSyncCall ¶ added in v0.42.0
MockEarlyConnectionOpenStreamSyncCall wrap *gomock.Call
func (*MockEarlyConnectionOpenStreamSyncCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenStreamSyncCall) Do(f func(context.Context) (quic.Stream, error)) *MockEarlyConnectionOpenStreamSyncCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionOpenStreamSyncCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenStreamSyncCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *MockEarlyConnectionOpenStreamSyncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionOpenStreamSyncCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenStreamSyncCall) Return(arg0 quic.Stream, arg1 error) *MockEarlyConnectionOpenStreamSyncCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionOpenUniStreamCall ¶ added in v0.42.0
MockEarlyConnectionOpenUniStreamCall wrap *gomock.Call
func (*MockEarlyConnectionOpenUniStreamCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenUniStreamCall) Do(f func() (quic.SendStream, error)) *MockEarlyConnectionOpenUniStreamCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionOpenUniStreamCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenUniStreamCall) DoAndReturn(f func() (quic.SendStream, error)) *MockEarlyConnectionOpenUniStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionOpenUniStreamCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenUniStreamCall) Return(arg0 quic.SendStream, arg1 error) *MockEarlyConnectionOpenUniStreamCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionOpenUniStreamSyncCall ¶ added in v0.42.0
MockEarlyConnectionOpenUniStreamSyncCall wrap *gomock.Call
func (*MockEarlyConnectionOpenUniStreamSyncCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenUniStreamSyncCall) Do(f func(context.Context) (quic.SendStream, error)) *MockEarlyConnectionOpenUniStreamSyncCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionOpenUniStreamSyncCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenUniStreamSyncCall) DoAndReturn(f func(context.Context) (quic.SendStream, error)) *MockEarlyConnectionOpenUniStreamSyncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionOpenUniStreamSyncCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionOpenUniStreamSyncCall) Return(arg0 quic.SendStream, arg1 error) *MockEarlyConnectionOpenUniStreamSyncCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionReceiveDatagramCall ¶ added in v0.42.0
MockEarlyConnectionReceiveDatagramCall wrap *gomock.Call
func (*MockEarlyConnectionReceiveDatagramCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionReceiveDatagramCall) Do(f func(context.Context) ([]byte, error)) *MockEarlyConnectionReceiveDatagramCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionReceiveDatagramCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionReceiveDatagramCall) DoAndReturn(f func(context.Context) ([]byte, error)) *MockEarlyConnectionReceiveDatagramCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionReceiveDatagramCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionReceiveDatagramCall) Return(arg0 []byte, arg1 error) *MockEarlyConnectionReceiveDatagramCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionRemoteAddrCall ¶ added in v0.42.0
MockEarlyConnectionRemoteAddrCall wrap *gomock.Call
func (*MockEarlyConnectionRemoteAddrCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionRemoteAddrCall) Do(f func() net.Addr) *MockEarlyConnectionRemoteAddrCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionRemoteAddrCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionRemoteAddrCall) DoAndReturn(f func() net.Addr) *MockEarlyConnectionRemoteAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionRemoteAddrCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionRemoteAddrCall) Return(arg0 net.Addr) *MockEarlyConnectionRemoteAddrCall
Return rewrite *gomock.Call.Return
type MockEarlyConnectionSendDatagramCall ¶ added in v0.42.0
MockEarlyConnectionSendDatagramCall wrap *gomock.Call
func (*MockEarlyConnectionSendDatagramCall) Do ¶ added in v0.42.0
func (c *MockEarlyConnectionSendDatagramCall) Do(f func([]byte) error) *MockEarlyConnectionSendDatagramCall
Do rewrite *gomock.Call.Do
func (*MockEarlyConnectionSendDatagramCall) DoAndReturn ¶ added in v0.42.0
func (c *MockEarlyConnectionSendDatagramCall) DoAndReturn(f func([]byte) error) *MockEarlyConnectionSendDatagramCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockEarlyConnectionSendDatagramCall) Return ¶ added in v0.42.0
func (c *MockEarlyConnectionSendDatagramCall) Return(arg0 error) *MockEarlyConnectionSendDatagramCall
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) 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.
type MockStreamCancelReadCall ¶ added in v0.42.0
MockStreamCancelReadCall wrap *gomock.Call
func (*MockStreamCancelReadCall) Do ¶ added in v0.42.0
func (c *MockStreamCancelReadCall) Do(f func(qerr.StreamErrorCode)) *MockStreamCancelReadCall
Do rewrite *gomock.Call.Do
func (*MockStreamCancelReadCall) DoAndReturn ¶ added in v0.42.0
func (c *MockStreamCancelReadCall) DoAndReturn(f func(qerr.StreamErrorCode)) *MockStreamCancelReadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStreamCancelReadCall) Return ¶ added in v0.42.0
func (c *MockStreamCancelReadCall) Return() *MockStreamCancelReadCall
Return rewrite *gomock.Call.Return
type MockStreamCancelWriteCall ¶ added in v0.42.0
MockStreamCancelWriteCall wrap *gomock.Call
func (*MockStreamCancelWriteCall) Do ¶ added in v0.42.0
func (c *MockStreamCancelWriteCall) Do(f func(qerr.StreamErrorCode)) *MockStreamCancelWriteCall
Do rewrite *gomock.Call.Do
func (*MockStreamCancelWriteCall) DoAndReturn ¶ added in v0.42.0
func (c *MockStreamCancelWriteCall) DoAndReturn(f func(qerr.StreamErrorCode)) *MockStreamCancelWriteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStreamCancelWriteCall) Return ¶ added in v0.42.0
func (c *MockStreamCancelWriteCall) Return() *MockStreamCancelWriteCall
Return rewrite *gomock.Call.Return
type MockStreamCloseCall ¶ added in v0.42.0
MockStreamCloseCall wrap *gomock.Call
func (*MockStreamCloseCall) Do ¶ added in v0.42.0
func (c *MockStreamCloseCall) Do(f func() error) *MockStreamCloseCall
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
func (c *MockStreamCloseCall) Return(arg0 error) *MockStreamCloseCall
Return rewrite *gomock.Call.Return
type MockStreamContextCall ¶ added in v0.42.0
MockStreamContextCall wrap *gomock.Call
func (*MockStreamContextCall) Do ¶ added in v0.42.0
func (c *MockStreamContextCall) Do(f func() context.Context) *MockStreamContextCall
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
func (c *MockStreamContextCall) Return(arg0 context.Context) *MockStreamContextCall
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 ¶
func (mr *MockStreamMockRecorder) Close() *MockStreamCloseCall
Close indicates an expected call of Close.
func (*MockStreamMockRecorder) Context ¶
func (mr *MockStreamMockRecorder) Context() *MockStreamContextCall
Context indicates an expected call of Context.
func (*MockStreamMockRecorder) Read ¶
func (mr *MockStreamMockRecorder) Read(arg0 any) *MockStreamReadCall
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 ¶
func (mr *MockStreamMockRecorder) StreamID() *MockStreamStreamIDCall
StreamID indicates an expected call of StreamID.
func (*MockStreamMockRecorder) Write ¶
func (mr *MockStreamMockRecorder) Write(arg0 any) *MockStreamWriteCall
Write indicates an expected call of Write.
type MockStreamReadCall ¶ added in v0.42.0
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
MockStreamSetDeadlineCall wrap *gomock.Call
func (*MockStreamSetDeadlineCall) Do ¶ added in v0.42.0
func (c *MockStreamSetDeadlineCall) Do(f func(time.Time) error) *MockStreamSetDeadlineCall
Do rewrite *gomock.Call.Do
func (*MockStreamSetDeadlineCall) DoAndReturn ¶ added in v0.42.0
func (c *MockStreamSetDeadlineCall) DoAndReturn(f func(time.Time) error) *MockStreamSetDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStreamSetDeadlineCall) Return ¶ added in v0.42.0
func (c *MockStreamSetDeadlineCall) Return(arg0 error) *MockStreamSetDeadlineCall
Return rewrite *gomock.Call.Return
type MockStreamSetReadDeadlineCall ¶ added in v0.42.0
MockStreamSetReadDeadlineCall wrap *gomock.Call
func (*MockStreamSetReadDeadlineCall) Do ¶ added in v0.42.0
func (c *MockStreamSetReadDeadlineCall) Do(f func(time.Time) error) *MockStreamSetReadDeadlineCall
Do rewrite *gomock.Call.Do
func (*MockStreamSetReadDeadlineCall) DoAndReturn ¶ added in v0.42.0
func (c *MockStreamSetReadDeadlineCall) DoAndReturn(f func(time.Time) error) *MockStreamSetReadDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStreamSetReadDeadlineCall) Return ¶ added in v0.42.0
func (c *MockStreamSetReadDeadlineCall) Return(arg0 error) *MockStreamSetReadDeadlineCall
Return rewrite *gomock.Call.Return
type MockStreamSetWriteDeadlineCall ¶ added in v0.42.0
MockStreamSetWriteDeadlineCall wrap *gomock.Call
func (*MockStreamSetWriteDeadlineCall) Do ¶ added in v0.42.0
func (c *MockStreamSetWriteDeadlineCall) Do(f func(time.Time) error) *MockStreamSetWriteDeadlineCall
Do rewrite *gomock.Call.Do
func (*MockStreamSetWriteDeadlineCall) DoAndReturn ¶ added in v0.42.0
func (c *MockStreamSetWriteDeadlineCall) DoAndReturn(f func(time.Time) error) *MockStreamSetWriteDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStreamSetWriteDeadlineCall) Return ¶ added in v0.42.0
func (c *MockStreamSetWriteDeadlineCall) Return(arg0 error) *MockStreamSetWriteDeadlineCall
Return rewrite *gomock.Call.Return
type MockStreamStreamIDCall ¶ added in v0.42.0
MockStreamStreamIDCall wrap *gomock.Call
func (*MockStreamStreamIDCall) Do ¶ added in v0.42.0
func (c *MockStreamStreamIDCall) Do(f func() protocol.StreamID) *MockStreamStreamIDCall
Do rewrite *gomock.Call.Do
func (*MockStreamStreamIDCall) DoAndReturn ¶ added in v0.42.0
func (c *MockStreamStreamIDCall) DoAndReturn(f func() protocol.StreamID) *MockStreamStreamIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockStreamStreamIDCall) Return ¶ added in v0.42.0
func (c *MockStreamStreamIDCall) Return(arg0 protocol.StreamID) *MockStreamStreamIDCall
Return rewrite *gomock.Call.Return
type MockStreamWriteCall ¶ added in v0.42.0
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