Documentation ¶
Overview ¶
Package mockquic is a generated GoMock package.
Package mockquic is a generated GoMock package.
Index ¶
- type MockSession
- func (m *MockSession) AcceptStream() (quic_go.Stream, error)
- func (m *MockSession) AcceptUniStream() (quic_go.ReceiveStream, error)
- func (m *MockSession) Close() error
- func (m *MockSession) CloseWithError(arg0 protocol.ApplicationErrorCode, arg1 string) error
- func (m *MockSession) ConnectionState() tls.ConnectionState
- func (m *MockSession) Context() context.Context
- func (m *MockSession) EXPECT() *MockSessionMockRecorder
- func (m *MockSession) LocalAddr() net.Addr
- func (m *MockSession) OpenStream() (quic_go.Stream, error)
- func (m *MockSession) OpenStreamSync() (quic_go.Stream, error)
- func (m *MockSession) OpenUniStream() (quic_go.SendStream, error)
- func (m *MockSession) OpenUniStreamSync() (quic_go.SendStream, error)
- func (m *MockSession) RemoteAddr() net.Addr
- type MockSessionMockRecorder
- func (mr *MockSessionMockRecorder) AcceptStream() *gomock.Call
- func (mr *MockSessionMockRecorder) AcceptUniStream() *gomock.Call
- func (mr *MockSessionMockRecorder) Close() *gomock.Call
- func (mr *MockSessionMockRecorder) CloseWithError(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSessionMockRecorder) ConnectionState() *gomock.Call
- func (mr *MockSessionMockRecorder) Context() *gomock.Call
- func (mr *MockSessionMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockSessionMockRecorder) OpenStream() *gomock.Call
- func (mr *MockSessionMockRecorder) OpenStreamSync() *gomock.Call
- func (mr *MockSessionMockRecorder) OpenUniStream() *gomock.Call
- func (mr *MockSessionMockRecorder) OpenUniStreamSync() *gomock.Call
- func (mr *MockSessionMockRecorder) RemoteAddr() *gomock.Call
- type MockStream
- func (m *MockStream) CancelRead(arg0 protocol.ApplicationErrorCode)
- func (m *MockStream) CancelWrite(arg0 protocol.ApplicationErrorCode)
- 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 MockStreamMockRecorder
- func (mr *MockStreamMockRecorder) CancelRead(arg0 interface{}) *gomock.Call
- func (mr *MockStreamMockRecorder) CancelWrite(arg0 interface{}) *gomock.Call
- func (mr *MockStreamMockRecorder) Close() *gomock.Call
- func (mr *MockStreamMockRecorder) Context() *gomock.Call
- func (mr *MockStreamMockRecorder) Read(arg0 interface{}) *gomock.Call
- func (mr *MockStreamMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockStreamMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockStreamMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockStreamMockRecorder) StreamID() *gomock.Call
- func (mr *MockStreamMockRecorder) Write(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSession ¶
type MockSession struct {
// contains filtered or unexported fields
}
MockSession is a mock of Session interface
func NewMockSession ¶
func NewMockSession(ctrl *gomock.Controller) *MockSession
NewMockSession creates a new mock instance
func (*MockSession) AcceptStream ¶
func (m *MockSession) AcceptStream() (quic_go.Stream, error)
AcceptStream mocks base method
func (*MockSession) AcceptUniStream ¶
func (m *MockSession) AcceptUniStream() (quic_go.ReceiveStream, error)
AcceptUniStream mocks base method
func (*MockSession) CloseWithError ¶
func (m *MockSession) CloseWithError(arg0 protocol.ApplicationErrorCode, arg1 string) error
CloseWithError mocks base method
func (*MockSession) ConnectionState ¶
func (m *MockSession) ConnectionState() tls.ConnectionState
ConnectionState mocks base method
func (*MockSession) Context ¶
func (m *MockSession) Context() context.Context
Context mocks base method
func (*MockSession) EXPECT ¶
func (m *MockSession) EXPECT() *MockSessionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSession) LocalAddr ¶
func (m *MockSession) LocalAddr() net.Addr
LocalAddr mocks base method
func (*MockSession) OpenStream ¶
func (m *MockSession) OpenStream() (quic_go.Stream, error)
OpenStream mocks base method
func (*MockSession) OpenStreamSync ¶
func (m *MockSession) OpenStreamSync() (quic_go.Stream, error)
OpenStreamSync mocks base method
func (*MockSession) OpenUniStream ¶
func (m *MockSession) OpenUniStream() (quic_go.SendStream, error)
OpenUniStream mocks base method
func (*MockSession) OpenUniStreamSync ¶
func (m *MockSession) OpenUniStreamSync() (quic_go.SendStream, error)
OpenUniStreamSync mocks base method
func (*MockSession) RemoteAddr ¶
func (m *MockSession) RemoteAddr() net.Addr
RemoteAddr mocks base method
type MockSessionMockRecorder ¶
type MockSessionMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionMockRecorder is the mock recorder for MockSession
func (*MockSessionMockRecorder) AcceptStream ¶
func (mr *MockSessionMockRecorder) AcceptStream() *gomock.Call
AcceptStream indicates an expected call of AcceptStream
func (*MockSessionMockRecorder) AcceptUniStream ¶
func (mr *MockSessionMockRecorder) AcceptUniStream() *gomock.Call
AcceptUniStream indicates an expected call of AcceptUniStream
func (*MockSessionMockRecorder) Close ¶
func (mr *MockSessionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockSessionMockRecorder) CloseWithError ¶
func (mr *MockSessionMockRecorder) CloseWithError(arg0, arg1 interface{}) *gomock.Call
CloseWithError indicates an expected call of CloseWithError
func (*MockSessionMockRecorder) ConnectionState ¶
func (mr *MockSessionMockRecorder) ConnectionState() *gomock.Call
ConnectionState indicates an expected call of ConnectionState
func (*MockSessionMockRecorder) Context ¶
func (mr *MockSessionMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockSessionMockRecorder) LocalAddr ¶
func (mr *MockSessionMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr
func (*MockSessionMockRecorder) OpenStream ¶
func (mr *MockSessionMockRecorder) OpenStream() *gomock.Call
OpenStream indicates an expected call of OpenStream
func (*MockSessionMockRecorder) OpenStreamSync ¶
func (mr *MockSessionMockRecorder) OpenStreamSync() *gomock.Call
OpenStreamSync indicates an expected call of OpenStreamSync
func (*MockSessionMockRecorder) OpenUniStream ¶
func (mr *MockSessionMockRecorder) OpenUniStream() *gomock.Call
OpenUniStream indicates an expected call of OpenUniStream
func (*MockSessionMockRecorder) OpenUniStreamSync ¶
func (mr *MockSessionMockRecorder) OpenUniStreamSync() *gomock.Call
OpenUniStreamSync indicates an expected call of OpenUniStreamSync
func (*MockSessionMockRecorder) RemoteAddr ¶
func (mr *MockSessionMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr
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 protocol.ApplicationErrorCode)
CancelRead mocks base method
func (*MockStream) CancelWrite ¶
func (m *MockStream) CancelWrite(arg0 protocol.ApplicationErrorCode)
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 MockStreamMockRecorder ¶
type MockStreamMockRecorder struct {
// contains filtered or unexported fields
}
MockStreamMockRecorder is the mock recorder for MockStream
func (*MockStreamMockRecorder) CancelRead ¶
func (mr *MockStreamMockRecorder) CancelRead(arg0 interface{}) *gomock.Call
CancelRead indicates an expected call of CancelRead
func (*MockStreamMockRecorder) CancelWrite ¶
func (mr *MockStreamMockRecorder) CancelWrite(arg0 interface{}) *gomock.Call
CancelWrite indicates an expected call of CancelWrite
func (*MockStreamMockRecorder) Close ¶
func (mr *MockStreamMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockStreamMockRecorder) Context ¶
func (mr *MockStreamMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context
func (*MockStreamMockRecorder) Read ¶
func (mr *MockStreamMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read
func (*MockStreamMockRecorder) SetDeadline ¶
func (mr *MockStreamMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline
func (*MockStreamMockRecorder) SetReadDeadline ¶
func (mr *MockStreamMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline
func (*MockStreamMockRecorder) SetWriteDeadline ¶
func (mr *MockStreamMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline
func (*MockStreamMockRecorder) StreamID ¶
func (mr *MockStreamMockRecorder) StreamID() *gomock.Call
StreamID indicates an expected call of StreamID
func (*MockStreamMockRecorder) Write ¶
func (mr *MockStreamMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write