mock_stdlib

package
v16.11.10 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 6 Imported by: 0

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

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) Close

func (m *MockConn) Close() error

Close mocks base method.

func (*MockConn) EXPECT

func (m *MockConn) EXPECT() *MockConnMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConn) LocalAddr

func (m *MockConn) LocalAddr() net.Addr

LocalAddr mocks base method.

func (*MockConn) Read

func (m *MockConn) Read(arg0 []byte) (int, error)

Read mocks base method.

func (*MockConn) RemoteAddr

func (m *MockConn) RemoteAddr() net.Addr

RemoteAddr mocks base method.

func (*MockConn) SetDeadline

func (m *MockConn) SetDeadline(arg0 time.Time) error

SetDeadline mocks base method.

func (*MockConn) SetReadDeadline

func (m *MockConn) SetReadDeadline(arg0 time.Time) error

SetReadDeadline mocks base method.

func (*MockConn) SetWriteDeadline

func (m *MockConn) SetWriteDeadline(arg0 time.Time) error

SetWriteDeadline mocks base method.

func (*MockConn) Write

func (m *MockConn) Write(arg0 []byte) (int, error)

Write mocks base method.

type MockConnCloseCall added in v16.8.0

type MockConnCloseCall struct {
	*gomock.Call
}

MockConnCloseCall wrap *gomock.Call

func (*MockConnCloseCall) Do added in v16.8.0

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

Do rewrite *gomock.Call.Do

func (*MockConnCloseCall) DoAndReturn added in v16.8.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnCloseCall) Return added in v16.8.0

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

Return rewrite *gomock.Call.Return

type MockConnLocalAddrCall added in v16.8.0

type MockConnLocalAddrCall struct {
	*gomock.Call
}

MockConnLocalAddrCall wrap *gomock.Call

func (*MockConnLocalAddrCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockConnLocalAddrCall) DoAndReturn added in v16.8.0

func (c *MockConnLocalAddrCall) DoAndReturn(f func() net.Addr) *MockConnLocalAddrCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnLocalAddrCall) Return added in v16.8.0

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

Close indicates an expected call of Close.

func (*MockConnMockRecorder) LocalAddr

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 added in v16.8.0

type MockConnReadCall struct {
	*gomock.Call
}

MockConnReadCall wrap *gomock.Call

func (*MockConnReadCall) Do added in v16.8.0

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

Do rewrite *gomock.Call.Do

func (*MockConnReadCall) DoAndReturn added in v16.8.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnReadCall) Return added in v16.8.0

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

Return rewrite *gomock.Call.Return

type MockConnRemoteAddrCall added in v16.8.0

type MockConnRemoteAddrCall struct {
	*gomock.Call
}

MockConnRemoteAddrCall wrap *gomock.Call

func (*MockConnRemoteAddrCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockConnRemoteAddrCall) DoAndReturn added in v16.8.0

func (c *MockConnRemoteAddrCall) DoAndReturn(f func() net.Addr) *MockConnRemoteAddrCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnRemoteAddrCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockConnSetDeadlineCall added in v16.8.0

type MockConnSetDeadlineCall struct {
	*gomock.Call
}

MockConnSetDeadlineCall wrap *gomock.Call

func (*MockConnSetDeadlineCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockConnSetDeadlineCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnSetDeadlineCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockConnSetReadDeadlineCall added in v16.8.0

type MockConnSetReadDeadlineCall struct {
	*gomock.Call
}

MockConnSetReadDeadlineCall wrap *gomock.Call

func (*MockConnSetReadDeadlineCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockConnSetReadDeadlineCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnSetReadDeadlineCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockConnSetWriteDeadlineCall added in v16.8.0

type MockConnSetWriteDeadlineCall struct {
	*gomock.Call
}

MockConnSetWriteDeadlineCall wrap *gomock.Call

func (*MockConnSetWriteDeadlineCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockConnSetWriteDeadlineCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnSetWriteDeadlineCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockConnWriteCall added in v16.8.0

type MockConnWriteCall struct {
	*gomock.Call
}

MockConnWriteCall wrap *gomock.Call

func (*MockConnWriteCall) Do added in v16.8.0

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

Do rewrite *gomock.Call.Do

func (*MockConnWriteCall) DoAndReturn added in v16.8.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnWriteCall) Return added in v16.8.0

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

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

Header mocks base method.

func (*MockResponseWriterFlusher) Hijack

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 added in v16.8.0

type MockResponseWriterFlusherFlushCall struct {
	*gomock.Call
}

MockResponseWriterFlusherFlushCall wrap *gomock.Call

func (*MockResponseWriterFlusherFlushCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherFlushCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherFlushCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockResponseWriterFlusherHeaderCall added in v16.8.0

type MockResponseWriterFlusherHeaderCall struct {
	*gomock.Call
}

MockResponseWriterFlusherHeaderCall wrap *gomock.Call

func (*MockResponseWriterFlusherHeaderCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherHeaderCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherHeaderCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockResponseWriterFlusherHijackCall added in v16.8.0

type MockResponseWriterFlusherHijackCall struct {
	*gomock.Call
}

MockResponseWriterFlusherHijackCall wrap *gomock.Call

func (*MockResponseWriterFlusherHijackCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherHijackCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherHijackCall) Return added in v16.8.0

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

Flush indicates an expected call of Flush.

func (*MockResponseWriterFlusherMockRecorder) Header

Header indicates an expected call of Header.

func (*MockResponseWriterFlusherMockRecorder) Hijack

Hijack indicates an expected call of Hijack.

func (*MockResponseWriterFlusherMockRecorder) Write

Write indicates an expected call of Write.

func (*MockResponseWriterFlusherMockRecorder) WriteHeader

WriteHeader indicates an expected call of WriteHeader.

type MockResponseWriterFlusherWriteCall added in v16.8.0

type MockResponseWriterFlusherWriteCall struct {
	*gomock.Call
}

MockResponseWriterFlusherWriteCall wrap *gomock.Call

func (*MockResponseWriterFlusherWriteCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherWriteCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherWriteCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockResponseWriterFlusherWriteHeaderCall added in v16.8.0

type MockResponseWriterFlusherWriteHeaderCall struct {
	*gomock.Call
}

MockResponseWriterFlusherWriteHeaderCall wrap *gomock.Call

func (*MockResponseWriterFlusherWriteHeaderCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherWriteHeaderCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherWriteHeaderCall) Return added in v16.8.0

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRoundTripper) RoundTrip

func (m *MockRoundTripper) RoundTrip(arg0 *http.Request) (*http.Response, error)

RoundTrip mocks base method.

type MockRoundTripperMockRecorder

type MockRoundTripperMockRecorder struct {
	// contains filtered or unexported fields
}

MockRoundTripperMockRecorder is the mock recorder for MockRoundTripper.

func (*MockRoundTripperMockRecorder) RoundTrip

RoundTrip indicates an expected call of RoundTrip.

type MockRoundTripperRoundTripCall added in v16.8.0

type MockRoundTripperRoundTripCall struct {
	*gomock.Call
}

MockRoundTripperRoundTripCall wrap *gomock.Call

func (*MockRoundTripperRoundTripCall) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockRoundTripperRoundTripCall) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRoundTripperRoundTripCall) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type ResponseWriterFlusher

type ResponseWriterFlusher interface {
	http.ResponseWriter
	http.Flusher
	http.Hijacker
}

Jump to

Keyboard shortcuts

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