Documentation ¶
Overview ¶
Package mock_stdlib contains Go standard library mocks
Package mock_stdlib is a generated GoMock package.
Package mock_stdlib is a generated GoMock package.
Package mock_stdlib is a generated GoMock package.
Index ¶
- type MockConn
- func (m *MockConn) Close() error
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) LocalAddr() net.Addr
- func (m *MockConn) Read(arg0 []byte) (int, error)
- func (m *MockConn) RemoteAddr() net.Addr
- func (m *MockConn) SetDeadline(arg0 time.Time) error
- func (m *MockConn) SetReadDeadline(arg0 time.Time) error
- func (m *MockConn) SetWriteDeadline(arg0 time.Time) error
- func (m *MockConn) Write(arg0 []byte) (int, error)
- type MockConnCloseCall
- type MockConnLocalAddrCall
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Close() *MockConnCloseCall
- func (mr *MockConnMockRecorder) LocalAddr() *MockConnLocalAddrCall
- func (mr *MockConnMockRecorder) Read(arg0 any) *MockConnReadCall
- func (mr *MockConnMockRecorder) RemoteAddr() *MockConnRemoteAddrCall
- func (mr *MockConnMockRecorder) SetDeadline(arg0 any) *MockConnSetDeadlineCall
- func (mr *MockConnMockRecorder) SetReadDeadline(arg0 any) *MockConnSetReadDeadlineCall
- func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 any) *MockConnSetWriteDeadlineCall
- func (mr *MockConnMockRecorder) Write(arg0 any) *MockConnWriteCall
- type MockConnReadCall
- type MockConnRemoteAddrCall
- type MockConnSetDeadlineCall
- type MockConnSetReadDeadlineCall
- type MockConnSetWriteDeadlineCall
- type MockConnWriteCall
- type MockResponseWriterFlusher
- func (m *MockResponseWriterFlusher) EXPECT() *MockResponseWriterFlusherMockRecorder
- func (m *MockResponseWriterFlusher) Flush()
- func (m *MockResponseWriterFlusher) Header() http.Header
- func (m *MockResponseWriterFlusher) Hijack() (net.Conn, *bufio.ReadWriter, error)
- func (m *MockResponseWriterFlusher) Write(arg0 []byte) (int, error)
- func (m *MockResponseWriterFlusher) WriteHeader(arg0 int)
- type MockResponseWriterFlusherFlushCall
- type MockResponseWriterFlusherHeaderCall
- func (c *MockResponseWriterFlusherHeaderCall) Do(f func() http.Header) *MockResponseWriterFlusherHeaderCall
- func (c *MockResponseWriterFlusherHeaderCall) DoAndReturn(f func() http.Header) *MockResponseWriterFlusherHeaderCall
- func (c *MockResponseWriterFlusherHeaderCall) Return(arg0 http.Header) *MockResponseWriterFlusherHeaderCall
- type MockResponseWriterFlusherHijackCall
- func (c *MockResponseWriterFlusherHijackCall) Do(f func() (net.Conn, *bufio.ReadWriter, error)) *MockResponseWriterFlusherHijackCall
- func (c *MockResponseWriterFlusherHijackCall) DoAndReturn(f func() (net.Conn, *bufio.ReadWriter, error)) *MockResponseWriterFlusherHijackCall
- func (c *MockResponseWriterFlusherHijackCall) Return(arg0 net.Conn, arg1 *bufio.ReadWriter, arg2 error) *MockResponseWriterFlusherHijackCall
- type MockResponseWriterFlusherMockRecorder
- func (mr *MockResponseWriterFlusherMockRecorder) Flush() *MockResponseWriterFlusherFlushCall
- func (mr *MockResponseWriterFlusherMockRecorder) Header() *MockResponseWriterFlusherHeaderCall
- func (mr *MockResponseWriterFlusherMockRecorder) Hijack() *MockResponseWriterFlusherHijackCall
- func (mr *MockResponseWriterFlusherMockRecorder) Write(arg0 any) *MockResponseWriterFlusherWriteCall
- func (mr *MockResponseWriterFlusherMockRecorder) WriteHeader(arg0 any) *MockResponseWriterFlusherWriteHeaderCall
- type MockResponseWriterFlusherWriteCall
- func (c *MockResponseWriterFlusherWriteCall) Do(f func([]byte) (int, error)) *MockResponseWriterFlusherWriteCall
- func (c *MockResponseWriterFlusherWriteCall) DoAndReturn(f func([]byte) (int, error)) *MockResponseWriterFlusherWriteCall
- func (c *MockResponseWriterFlusherWriteCall) Return(arg0 int, arg1 error) *MockResponseWriterFlusherWriteCall
- type MockResponseWriterFlusherWriteHeaderCall
- func (c *MockResponseWriterFlusherWriteHeaderCall) Do(f func(int)) *MockResponseWriterFlusherWriteHeaderCall
- func (c *MockResponseWriterFlusherWriteHeaderCall) DoAndReturn(f func(int)) *MockResponseWriterFlusherWriteHeaderCall
- func (c *MockResponseWriterFlusherWriteHeaderCall) Return() *MockResponseWriterFlusherWriteHeaderCall
- type MockRoundTripper
- type MockRoundTripperMockRecorder
- type MockRoundTripperRoundTripCall
- func (c *MockRoundTripperRoundTripCall) Do(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
- func (c *MockRoundTripperRoundTripCall) DoAndReturn(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
- func (c *MockRoundTripperRoundTripCall) Return(arg0 *http.Response, arg1 error) *MockRoundTripperRoundTripCall
- type ResponseWriterFlusher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
MockConn is a mock of Conn interface.
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance.
func (*MockConn) EXPECT ¶
func (m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConn) RemoteAddr ¶
RemoteAddr mocks base method.
func (*MockConn) SetDeadline ¶
SetDeadline mocks base method.
func (*MockConn) SetReadDeadline ¶
SetReadDeadline mocks base method.
func (*MockConn) SetWriteDeadline ¶
SetWriteDeadline mocks base method.
type MockConnCloseCall ¶
MockConnCloseCall wrap *gomock.Call
func (*MockConnCloseCall) Do ¶
func (c *MockConnCloseCall) Do(f func() error) *MockConnCloseCall
Do rewrite *gomock.Call.Do
func (*MockConnCloseCall) DoAndReturn ¶
func (c *MockConnCloseCall) DoAndReturn(f func() error) *MockConnCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnCloseCall) Return ¶
func (c *MockConnCloseCall) Return(arg0 error) *MockConnCloseCall
Return rewrite *gomock.Call.Return
type MockConnLocalAddrCall ¶
MockConnLocalAddrCall wrap *gomock.Call
func (*MockConnLocalAddrCall) Do ¶
func (c *MockConnLocalAddrCall) Do(f func() net.Addr) *MockConnLocalAddrCall
Do rewrite *gomock.Call.Do
func (*MockConnLocalAddrCall) DoAndReturn ¶
func (c *MockConnLocalAddrCall) DoAndReturn(f func() net.Addr) *MockConnLocalAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnLocalAddrCall) Return ¶
func (c *MockConnLocalAddrCall) Return(arg0 net.Addr) *MockConnLocalAddrCall
Return rewrite *gomock.Call.Return
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn.
func (*MockConnMockRecorder) Close ¶
func (mr *MockConnMockRecorder) Close() *MockConnCloseCall
Close indicates an expected call of Close.
func (*MockConnMockRecorder) LocalAddr ¶
func (mr *MockConnMockRecorder) LocalAddr() *MockConnLocalAddrCall
LocalAddr indicates an expected call of LocalAddr.
func (*MockConnMockRecorder) Read ¶
func (mr *MockConnMockRecorder) Read(arg0 any) *MockConnReadCall
Read indicates an expected call of Read.
func (*MockConnMockRecorder) RemoteAddr ¶
func (mr *MockConnMockRecorder) RemoteAddr() *MockConnRemoteAddrCall
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockConnMockRecorder) SetDeadline ¶
func (mr *MockConnMockRecorder) SetDeadline(arg0 any) *MockConnSetDeadlineCall
SetDeadline indicates an expected call of SetDeadline.
func (*MockConnMockRecorder) SetReadDeadline ¶
func (mr *MockConnMockRecorder) SetReadDeadline(arg0 any) *MockConnSetReadDeadlineCall
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockConnMockRecorder) SetWriteDeadline ¶
func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 any) *MockConnSetWriteDeadlineCall
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockConnMockRecorder) Write ¶
func (mr *MockConnMockRecorder) Write(arg0 any) *MockConnWriteCall
Write indicates an expected call of Write.
type MockConnReadCall ¶
MockConnReadCall wrap *gomock.Call
func (*MockConnReadCall) Do ¶
func (c *MockConnReadCall) Do(f func([]byte) (int, error)) *MockConnReadCall
Do rewrite *gomock.Call.Do
func (*MockConnReadCall) DoAndReturn ¶
func (c *MockConnReadCall) DoAndReturn(f func([]byte) (int, error)) *MockConnReadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnReadCall) Return ¶
func (c *MockConnReadCall) Return(arg0 int, arg1 error) *MockConnReadCall
Return rewrite *gomock.Call.Return
type MockConnRemoteAddrCall ¶
MockConnRemoteAddrCall wrap *gomock.Call
func (*MockConnRemoteAddrCall) Do ¶
func (c *MockConnRemoteAddrCall) Do(f func() net.Addr) *MockConnRemoteAddrCall
Do rewrite *gomock.Call.Do
func (*MockConnRemoteAddrCall) DoAndReturn ¶
func (c *MockConnRemoteAddrCall) DoAndReturn(f func() net.Addr) *MockConnRemoteAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnRemoteAddrCall) Return ¶
func (c *MockConnRemoteAddrCall) Return(arg0 net.Addr) *MockConnRemoteAddrCall
Return rewrite *gomock.Call.Return
type MockConnSetDeadlineCall ¶
MockConnSetDeadlineCall wrap *gomock.Call
func (*MockConnSetDeadlineCall) Do ¶
func (c *MockConnSetDeadlineCall) Do(f func(time.Time) error) *MockConnSetDeadlineCall
Do rewrite *gomock.Call.Do
func (*MockConnSetDeadlineCall) DoAndReturn ¶
func (c *MockConnSetDeadlineCall) DoAndReturn(f func(time.Time) error) *MockConnSetDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnSetDeadlineCall) Return ¶
func (c *MockConnSetDeadlineCall) Return(arg0 error) *MockConnSetDeadlineCall
Return rewrite *gomock.Call.Return
type MockConnSetReadDeadlineCall ¶
MockConnSetReadDeadlineCall wrap *gomock.Call
func (*MockConnSetReadDeadlineCall) Do ¶
func (c *MockConnSetReadDeadlineCall) Do(f func(time.Time) error) *MockConnSetReadDeadlineCall
Do rewrite *gomock.Call.Do
func (*MockConnSetReadDeadlineCall) DoAndReturn ¶
func (c *MockConnSetReadDeadlineCall) DoAndReturn(f func(time.Time) error) *MockConnSetReadDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnSetReadDeadlineCall) Return ¶
func (c *MockConnSetReadDeadlineCall) Return(arg0 error) *MockConnSetReadDeadlineCall
Return rewrite *gomock.Call.Return
type MockConnSetWriteDeadlineCall ¶
MockConnSetWriteDeadlineCall wrap *gomock.Call
func (*MockConnSetWriteDeadlineCall) Do ¶
func (c *MockConnSetWriteDeadlineCall) Do(f func(time.Time) error) *MockConnSetWriteDeadlineCall
Do rewrite *gomock.Call.Do
func (*MockConnSetWriteDeadlineCall) DoAndReturn ¶
func (c *MockConnSetWriteDeadlineCall) DoAndReturn(f func(time.Time) error) *MockConnSetWriteDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnSetWriteDeadlineCall) Return ¶
func (c *MockConnSetWriteDeadlineCall) Return(arg0 error) *MockConnSetWriteDeadlineCall
Return rewrite *gomock.Call.Return
type MockConnWriteCall ¶
MockConnWriteCall wrap *gomock.Call
func (*MockConnWriteCall) Do ¶
func (c *MockConnWriteCall) Do(f func([]byte) (int, error)) *MockConnWriteCall
Do rewrite *gomock.Call.Do
func (*MockConnWriteCall) DoAndReturn ¶
func (c *MockConnWriteCall) DoAndReturn(f func([]byte) (int, error)) *MockConnWriteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockConnWriteCall) Return ¶
func (c *MockConnWriteCall) Return(arg0 int, arg1 error) *MockConnWriteCall
Return rewrite *gomock.Call.Return
type MockResponseWriterFlusher ¶
type MockResponseWriterFlusher struct {
// contains filtered or unexported fields
}
MockResponseWriterFlusher is a mock of ResponseWriterFlusher interface.
func NewMockResponseWriterFlusher ¶
func NewMockResponseWriterFlusher(ctrl *gomock.Controller) *MockResponseWriterFlusher
NewMockResponseWriterFlusher creates a new mock instance.
func (*MockResponseWriterFlusher) EXPECT ¶
func (m *MockResponseWriterFlusher) EXPECT() *MockResponseWriterFlusherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResponseWriterFlusher) Flush ¶
func (m *MockResponseWriterFlusher) Flush()
Flush mocks base method.
func (*MockResponseWriterFlusher) Header ¶
func (m *MockResponseWriterFlusher) Header() http.Header
Header mocks base method.
func (*MockResponseWriterFlusher) Hijack ¶
func (m *MockResponseWriterFlusher) Hijack() (net.Conn, *bufio.ReadWriter, error)
Hijack mocks base method.
func (*MockResponseWriterFlusher) Write ¶
func (m *MockResponseWriterFlusher) Write(arg0 []byte) (int, error)
Write mocks base method.
func (*MockResponseWriterFlusher) WriteHeader ¶
func (m *MockResponseWriterFlusher) WriteHeader(arg0 int)
WriteHeader mocks base method.
type MockResponseWriterFlusherFlushCall ¶
MockResponseWriterFlusherFlushCall wrap *gomock.Call
func (*MockResponseWriterFlusherFlushCall) Do ¶
func (c *MockResponseWriterFlusherFlushCall) Do(f func()) *MockResponseWriterFlusherFlushCall
Do rewrite *gomock.Call.Do
func (*MockResponseWriterFlusherFlushCall) DoAndReturn ¶
func (c *MockResponseWriterFlusherFlushCall) DoAndReturn(f func()) *MockResponseWriterFlusherFlushCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResponseWriterFlusherFlushCall) Return ¶
func (c *MockResponseWriterFlusherFlushCall) Return() *MockResponseWriterFlusherFlushCall
Return rewrite *gomock.Call.Return
type MockResponseWriterFlusherHeaderCall ¶
MockResponseWriterFlusherHeaderCall wrap *gomock.Call
func (*MockResponseWriterFlusherHeaderCall) Do ¶
func (c *MockResponseWriterFlusherHeaderCall) Do(f func() http.Header) *MockResponseWriterFlusherHeaderCall
Do rewrite *gomock.Call.Do
func (*MockResponseWriterFlusherHeaderCall) DoAndReturn ¶
func (c *MockResponseWriterFlusherHeaderCall) DoAndReturn(f func() http.Header) *MockResponseWriterFlusherHeaderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResponseWriterFlusherHeaderCall) Return ¶
func (c *MockResponseWriterFlusherHeaderCall) Return(arg0 http.Header) *MockResponseWriterFlusherHeaderCall
Return rewrite *gomock.Call.Return
type MockResponseWriterFlusherHijackCall ¶
MockResponseWriterFlusherHijackCall wrap *gomock.Call
func (*MockResponseWriterFlusherHijackCall) Do ¶
func (c *MockResponseWriterFlusherHijackCall) Do(f func() (net.Conn, *bufio.ReadWriter, error)) *MockResponseWriterFlusherHijackCall
Do rewrite *gomock.Call.Do
func (*MockResponseWriterFlusherHijackCall) DoAndReturn ¶
func (c *MockResponseWriterFlusherHijackCall) DoAndReturn(f func() (net.Conn, *bufio.ReadWriter, error)) *MockResponseWriterFlusherHijackCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResponseWriterFlusherHijackCall) Return ¶
func (c *MockResponseWriterFlusherHijackCall) Return(arg0 net.Conn, arg1 *bufio.ReadWriter, arg2 error) *MockResponseWriterFlusherHijackCall
Return rewrite *gomock.Call.Return
type MockResponseWriterFlusherMockRecorder ¶
type MockResponseWriterFlusherMockRecorder struct {
// contains filtered or unexported fields
}
MockResponseWriterFlusherMockRecorder is the mock recorder for MockResponseWriterFlusher.
func (*MockResponseWriterFlusherMockRecorder) Flush ¶
func (mr *MockResponseWriterFlusherMockRecorder) Flush() *MockResponseWriterFlusherFlushCall
Flush indicates an expected call of Flush.
func (*MockResponseWriterFlusherMockRecorder) Header ¶
func (mr *MockResponseWriterFlusherMockRecorder) Header() *MockResponseWriterFlusherHeaderCall
Header indicates an expected call of Header.
func (*MockResponseWriterFlusherMockRecorder) Hijack ¶
func (mr *MockResponseWriterFlusherMockRecorder) Hijack() *MockResponseWriterFlusherHijackCall
Hijack indicates an expected call of Hijack.
func (*MockResponseWriterFlusherMockRecorder) Write ¶
func (mr *MockResponseWriterFlusherMockRecorder) Write(arg0 any) *MockResponseWriterFlusherWriteCall
Write indicates an expected call of Write.
func (*MockResponseWriterFlusherMockRecorder) WriteHeader ¶
func (mr *MockResponseWriterFlusherMockRecorder) WriteHeader(arg0 any) *MockResponseWriterFlusherWriteHeaderCall
WriteHeader indicates an expected call of WriteHeader.
type MockResponseWriterFlusherWriteCall ¶
MockResponseWriterFlusherWriteCall wrap *gomock.Call
func (*MockResponseWriterFlusherWriteCall) Do ¶
func (c *MockResponseWriterFlusherWriteCall) Do(f func([]byte) (int, error)) *MockResponseWriterFlusherWriteCall
Do rewrite *gomock.Call.Do
func (*MockResponseWriterFlusherWriteCall) DoAndReturn ¶
func (c *MockResponseWriterFlusherWriteCall) DoAndReturn(f func([]byte) (int, error)) *MockResponseWriterFlusherWriteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResponseWriterFlusherWriteCall) Return ¶
func (c *MockResponseWriterFlusherWriteCall) Return(arg0 int, arg1 error) *MockResponseWriterFlusherWriteCall
Return rewrite *gomock.Call.Return
type MockResponseWriterFlusherWriteHeaderCall ¶
MockResponseWriterFlusherWriteHeaderCall wrap *gomock.Call
func (*MockResponseWriterFlusherWriteHeaderCall) Do ¶
func (c *MockResponseWriterFlusherWriteHeaderCall) Do(f func(int)) *MockResponseWriterFlusherWriteHeaderCall
Do rewrite *gomock.Call.Do
func (*MockResponseWriterFlusherWriteHeaderCall) DoAndReturn ¶
func (c *MockResponseWriterFlusherWriteHeaderCall) DoAndReturn(f func(int)) *MockResponseWriterFlusherWriteHeaderCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockResponseWriterFlusherWriteHeaderCall) Return ¶
func (c *MockResponseWriterFlusherWriteHeaderCall) Return() *MockResponseWriterFlusherWriteHeaderCall
Return rewrite *gomock.Call.Return
type MockRoundTripper ¶
type MockRoundTripper struct {
// contains filtered or unexported fields
}
MockRoundTripper is a mock of RoundTripper interface.
func NewMockRoundTripper ¶
func NewMockRoundTripper(ctrl *gomock.Controller) *MockRoundTripper
NewMockRoundTripper creates a new mock instance.
func (*MockRoundTripper) EXPECT ¶
func (m *MockRoundTripper) EXPECT() *MockRoundTripperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRoundTripperMockRecorder ¶
type MockRoundTripperMockRecorder struct {
// contains filtered or unexported fields
}
MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper.
func (*MockRoundTripperMockRecorder) RoundTrip ¶
func (mr *MockRoundTripperMockRecorder) RoundTrip(arg0 any) *MockRoundTripperRoundTripCall
RoundTrip indicates an expected call of RoundTrip.
type MockRoundTripperRoundTripCall ¶
MockRoundTripperRoundTripCall wrap *gomock.Call
func (*MockRoundTripperRoundTripCall) Do ¶
func (c *MockRoundTripperRoundTripCall) Do(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
Do rewrite *gomock.Call.Do
func (*MockRoundTripperRoundTripCall) DoAndReturn ¶
func (c *MockRoundTripperRoundTripCall) DoAndReturn(f func(*http.Request) (*http.Response, error)) *MockRoundTripperRoundTripCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockRoundTripperRoundTripCall) Return ¶
func (c *MockRoundTripperRoundTripCall) Return(arg0 *http.Response, arg1 error) *MockRoundTripperRoundTripCall
Return rewrite *gomock.Call.Return