mockquic

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: github.com/quic-go/quic-go (interfaces: EarlyConnection)

Generated by this command:

mockgen -typed -build_flags=-tags=gomock -package mockquic -destination quic/early_conn_tmp.go github.com/quic-go/quic-go EarlyConnection

Package mockquic is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: github.com/quic-go/quic-go (interfaces: Stream)

Generated by this command:

mockgen -typed -build_flags=-tags=gomock -package mockquic -destination quic/stream.go github.com/quic-go/quic-go Stream

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 EarlyConnectionAcceptStreamCall

type EarlyConnectionAcceptStreamCall struct {
	*gomock.Call
}

EarlyConnectionAcceptStreamCall wrap *gomock.Call

func (*EarlyConnectionAcceptStreamCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionAcceptStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionAcceptStreamCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionAcceptUniStreamCall

type EarlyConnectionAcceptUniStreamCall struct {
	*gomock.Call
}

EarlyConnectionAcceptUniStreamCall wrap *gomock.Call

func (*EarlyConnectionAcceptUniStreamCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionAcceptUniStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionAcceptUniStreamCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionCloseWithErrorCall

type EarlyConnectionCloseWithErrorCall struct {
	*gomock.Call
}

EarlyConnectionCloseWithErrorCall wrap *gomock.Call

func (*EarlyConnectionCloseWithErrorCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionCloseWithErrorCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionCloseWithErrorCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionConnectionStateCall

type EarlyConnectionConnectionStateCall struct {
	*gomock.Call
}

EarlyConnectionConnectionStateCall wrap *gomock.Call

func (*EarlyConnectionConnectionStateCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionConnectionStateCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionConnectionStateCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionContextCall

type EarlyConnectionContextCall struct {
	*gomock.Call
}

EarlyConnectionContextCall wrap *gomock.Call

func (*EarlyConnectionContextCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionContextCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionContextCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionHandshakeCompleteCall

type EarlyConnectionHandshakeCompleteCall struct {
	*gomock.Call
}

EarlyConnectionHandshakeCompleteCall wrap *gomock.Call

func (*EarlyConnectionHandshakeCompleteCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionHandshakeCompleteCall) DoAndReturn

func (c *EarlyConnectionHandshakeCompleteCall) DoAndReturn(f func() <-chan struct{}) *EarlyConnectionHandshakeCompleteCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionHandshakeCompleteCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionLocalAddrCall

type EarlyConnectionLocalAddrCall struct {
	*gomock.Call
}

EarlyConnectionLocalAddrCall wrap *gomock.Call

func (*EarlyConnectionLocalAddrCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionLocalAddrCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionLocalAddrCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionNextConnectionCall

type EarlyConnectionNextConnectionCall struct {
	*gomock.Call
}

EarlyConnectionNextConnectionCall wrap *gomock.Call

func (*EarlyConnectionNextConnectionCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionNextConnectionCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionNextConnectionCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionOpenStreamCall

type EarlyConnectionOpenStreamCall struct {
	*gomock.Call
}

EarlyConnectionOpenStreamCall wrap *gomock.Call

func (*EarlyConnectionOpenStreamCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionOpenStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionOpenStreamCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionOpenStreamSyncCall

type EarlyConnectionOpenStreamSyncCall struct {
	*gomock.Call
}

EarlyConnectionOpenStreamSyncCall wrap *gomock.Call

func (*EarlyConnectionOpenStreamSyncCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionOpenStreamSyncCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionOpenStreamSyncCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionOpenUniStreamCall

type EarlyConnectionOpenUniStreamCall struct {
	*gomock.Call
}

EarlyConnectionOpenUniStreamCall wrap *gomock.Call

func (*EarlyConnectionOpenUniStreamCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionOpenUniStreamCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionOpenUniStreamCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionOpenUniStreamSyncCall

type EarlyConnectionOpenUniStreamSyncCall struct {
	*gomock.Call
}

EarlyConnectionOpenUniStreamSyncCall wrap *gomock.Call

func (*EarlyConnectionOpenUniStreamSyncCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionOpenUniStreamSyncCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionOpenUniStreamSyncCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionReceiveDatagramCall

type EarlyConnectionReceiveDatagramCall struct {
	*gomock.Call
}

EarlyConnectionReceiveDatagramCall wrap *gomock.Call

func (*EarlyConnectionReceiveDatagramCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionReceiveDatagramCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionReceiveDatagramCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionRemoteAddrCall

type EarlyConnectionRemoteAddrCall struct {
	*gomock.Call
}

EarlyConnectionRemoteAddrCall wrap *gomock.Call

func (*EarlyConnectionRemoteAddrCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionRemoteAddrCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionRemoteAddrCall) Return

Return rewrite *gomock.Call.Return

type EarlyConnectionSendDatagramCall

type EarlyConnectionSendDatagramCall struct {
	*gomock.Call
}

EarlyConnectionSendDatagramCall wrap *gomock.Call

func (*EarlyConnectionSendDatagramCall) Do

Do rewrite *gomock.Call.Do

func (*EarlyConnectionSendDatagramCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*EarlyConnectionSendDatagramCall) Return

Return rewrite *gomock.Call.Return

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 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 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 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) *StreamCancelReadCall

CancelRead indicates an expected call of CancelRead.

func (*MockStreamMockRecorder) CancelWrite

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

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

func (mr *MockStreamMockRecorder) Read(arg0 any) *StreamReadCall

Read indicates an expected call of Read.

func (*MockStreamMockRecorder) SetDeadline

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

SetDeadline indicates an expected call of SetDeadline.

func (*MockStreamMockRecorder) SetReadDeadline

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

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockStreamMockRecorder) SetWriteDeadline

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

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockStreamMockRecorder) StreamID

StreamID indicates an expected call of StreamID.

func (*MockStreamMockRecorder) Write

func (mr *MockStreamMockRecorder) Write(arg0 any) *StreamWriteCall

Write indicates an expected call of Write.

type StreamCancelReadCall

type StreamCancelReadCall struct {
	*gomock.Call
}

StreamCancelReadCall wrap *gomock.Call

func (*StreamCancelReadCall) Do

Do rewrite *gomock.Call.Do

func (*StreamCancelReadCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamCancelReadCall) Return

Return rewrite *gomock.Call.Return

type StreamCancelWriteCall

type StreamCancelWriteCall struct {
	*gomock.Call
}

StreamCancelWriteCall wrap *gomock.Call

func (*StreamCancelWriteCall) Do

Do rewrite *gomock.Call.Do

func (*StreamCancelWriteCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamCancelWriteCall) Return

Return rewrite *gomock.Call.Return

type StreamCloseCall

type StreamCloseCall struct {
	*gomock.Call
}

StreamCloseCall wrap *gomock.Call

func (*StreamCloseCall) Do

func (c *StreamCloseCall) Do(f func() error) *StreamCloseCall

Do rewrite *gomock.Call.Do

func (*StreamCloseCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamCloseCall) Return

func (c *StreamCloseCall) Return(arg0 error) *StreamCloseCall

Return rewrite *gomock.Call.Return

type StreamContextCall

type StreamContextCall struct {
	*gomock.Call
}

StreamContextCall wrap *gomock.Call

func (*StreamContextCall) Do

Do rewrite *gomock.Call.Do

func (*StreamContextCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamContextCall) Return

Return rewrite *gomock.Call.Return

type StreamReadCall

type StreamReadCall struct {
	*gomock.Call
}

StreamReadCall wrap *gomock.Call

func (*StreamReadCall) Do

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

Do rewrite *gomock.Call.Do

func (*StreamReadCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamReadCall) Return

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

Return rewrite *gomock.Call.Return

type StreamSetDeadlineCall

type StreamSetDeadlineCall struct {
	*gomock.Call
}

StreamSetDeadlineCall wrap *gomock.Call

func (*StreamSetDeadlineCall) Do

Do rewrite *gomock.Call.Do

func (*StreamSetDeadlineCall) DoAndReturn

func (c *StreamSetDeadlineCall) DoAndReturn(f func(time.Time) error) *StreamSetDeadlineCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamSetDeadlineCall) Return

Return rewrite *gomock.Call.Return

type StreamSetReadDeadlineCall

type StreamSetReadDeadlineCall struct {
	*gomock.Call
}

StreamSetReadDeadlineCall wrap *gomock.Call

func (*StreamSetReadDeadlineCall) Do

Do rewrite *gomock.Call.Do

func (*StreamSetReadDeadlineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamSetReadDeadlineCall) Return

Return rewrite *gomock.Call.Return

type StreamSetWriteDeadlineCall

type StreamSetWriteDeadlineCall struct {
	*gomock.Call
}

StreamSetWriteDeadlineCall wrap *gomock.Call

func (*StreamSetWriteDeadlineCall) Do

Do rewrite *gomock.Call.Do

func (*StreamSetWriteDeadlineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamSetWriteDeadlineCall) Return

Return rewrite *gomock.Call.Return

type StreamStreamIDCall

type StreamStreamIDCall struct {
	*gomock.Call
}

StreamStreamIDCall wrap *gomock.Call

func (*StreamStreamIDCall) Do

Do rewrite *gomock.Call.Do

func (*StreamStreamIDCall) DoAndReturn

func (c *StreamStreamIDCall) DoAndReturn(f func() protocol.StreamID) *StreamStreamIDCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamStreamIDCall) Return

Return rewrite *gomock.Call.Return

type StreamWriteCall

type StreamWriteCall struct {
	*gomock.Call
}

StreamWriteCall wrap *gomock.Call

func (*StreamWriteCall) Do

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

Do rewrite *gomock.Call.Do

func (*StreamWriteCall) DoAndReturn

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*StreamWriteCall) Return

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

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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