mock_stdlib

package
v17.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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.

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

type MockConnCloseCall struct {
	*gomock.Call
}

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

type MockConnLocalAddrCall struct {
	*gomock.Call
}

MockConnLocalAddrCall wrap *gomock.Call

func (*MockConnLocalAddrCall) Do

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

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

type MockConnReadCall struct {
	*gomock.Call
}

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

type MockConnRemoteAddrCall struct {
	*gomock.Call
}

MockConnRemoteAddrCall wrap *gomock.Call

func (*MockConnRemoteAddrCall) Do

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

Return rewrite *gomock.Call.Return

type MockConnSetDeadlineCall

type MockConnSetDeadlineCall struct {
	*gomock.Call
}

MockConnSetDeadlineCall wrap *gomock.Call

func (*MockConnSetDeadlineCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnSetDeadlineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnSetDeadlineCall) Return

Return rewrite *gomock.Call.Return

type MockConnSetReadDeadlineCall

type MockConnSetReadDeadlineCall struct {
	*gomock.Call
}

MockConnSetReadDeadlineCall wrap *gomock.Call

func (*MockConnSetReadDeadlineCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnSetReadDeadlineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnSetReadDeadlineCall) Return

Return rewrite *gomock.Call.Return

type MockConnSetWriteDeadlineCall

type MockConnSetWriteDeadlineCall struct {
	*gomock.Call
}

MockConnSetWriteDeadlineCall wrap *gomock.Call

func (*MockConnSetWriteDeadlineCall) Do

Do rewrite *gomock.Call.Do

func (*MockConnSetWriteDeadlineCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockConnSetWriteDeadlineCall) Return

Return rewrite *gomock.Call.Return

type MockConnWriteCall

type MockConnWriteCall struct {
	*gomock.Call
}

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 MockReader added in v17.3.0

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

MockReader is a mock of Reader interface.

func NewMockReader added in v17.3.0

func NewMockReader(ctrl *gomock.Controller) *MockReader

NewMockReader creates a new mock instance.

func (*MockReader) EXPECT added in v17.3.0

func (m *MockReader) EXPECT() *MockReaderMockRecorder

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

func (*MockReader) Read added in v17.3.0

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

Read mocks base method.

type MockReaderMockRecorder added in v17.3.0

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

MockReaderMockRecorder is the mock recorder for MockReader.

func (*MockReaderMockRecorder) Read added in v17.3.0

Read indicates an expected call of Read.

type MockReaderReadCall added in v17.3.0

type MockReaderReadCall struct {
	*gomock.Call
}

MockReaderReadCall wrap *gomock.Call

func (*MockReaderReadCall) Do added in v17.3.0

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

Do rewrite *gomock.Call.Do

func (*MockReaderReadCall) DoAndReturn added in v17.3.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockReaderReadCall) Return added in v17.3.0

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

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

type MockResponseWriterFlusherFlushCall struct {
	*gomock.Call
}

MockResponseWriterFlusherFlushCall wrap *gomock.Call

func (*MockResponseWriterFlusherFlushCall) Do

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherFlushCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherFlushCall) Return

Return rewrite *gomock.Call.Return

type MockResponseWriterFlusherHeaderCall

type MockResponseWriterFlusherHeaderCall struct {
	*gomock.Call
}

MockResponseWriterFlusherHeaderCall wrap *gomock.Call

func (*MockResponseWriterFlusherHeaderCall) Do

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherHeaderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherHeaderCall) Return

Return rewrite *gomock.Call.Return

type MockResponseWriterFlusherHijackCall

type MockResponseWriterFlusherHijackCall struct {
	*gomock.Call
}

MockResponseWriterFlusherHijackCall wrap *gomock.Call

func (*MockResponseWriterFlusherHijackCall) Do

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherHijackCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherHijackCall) Return

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

type MockResponseWriterFlusherWriteCall struct {
	*gomock.Call
}

MockResponseWriterFlusherWriteCall wrap *gomock.Call

func (*MockResponseWriterFlusherWriteCall) Do

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherWriteCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherWriteCall) Return

Return rewrite *gomock.Call.Return

type MockResponseWriterFlusherWriteHeaderCall

type MockResponseWriterFlusherWriteHeaderCall struct {
	*gomock.Call
}

MockResponseWriterFlusherWriteHeaderCall wrap *gomock.Call

func (*MockResponseWriterFlusherWriteHeaderCall) Do

Do rewrite *gomock.Call.Do

func (*MockResponseWriterFlusherWriteHeaderCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockResponseWriterFlusherWriteHeaderCall) Return

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

type MockRoundTripperRoundTripCall struct {
	*gomock.Call
}

MockRoundTripperRoundTripCall wrap *gomock.Call

func (*MockRoundTripperRoundTripCall) Do

Do rewrite *gomock.Call.Do

func (*MockRoundTripperRoundTripCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockRoundTripperRoundTripCall) Return

Return rewrite *gomock.Call.Return

type MockWriteCloser added in v17.3.0

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

MockWriteCloser is a mock of WriteCloser interface.

func NewMockWriteCloser added in v17.3.0

func NewMockWriteCloser(ctrl *gomock.Controller) *MockWriteCloser

NewMockWriteCloser creates a new mock instance.

func (*MockWriteCloser) Close added in v17.3.0

func (m *MockWriteCloser) Close() error

Close mocks base method.

func (*MockWriteCloser) EXPECT added in v17.3.0

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

func (*MockWriteCloser) Write added in v17.3.0

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

Write mocks base method.

type MockWriteCloserCloseCall added in v17.3.0

type MockWriteCloserCloseCall struct {
	*gomock.Call
}

MockWriteCloserCloseCall wrap *gomock.Call

func (*MockWriteCloserCloseCall) Do added in v17.3.0

Do rewrite *gomock.Call.Do

func (*MockWriteCloserCloseCall) DoAndReturn added in v17.3.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockWriteCloserCloseCall) Return added in v17.3.0

Return rewrite *gomock.Call.Return

type MockWriteCloserMockRecorder added in v17.3.0

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

MockWriteCloserMockRecorder is the mock recorder for MockWriteCloser.

func (*MockWriteCloserMockRecorder) Close added in v17.3.0

Close indicates an expected call of Close.

func (*MockWriteCloserMockRecorder) Write added in v17.3.0

Write indicates an expected call of Write.

type MockWriteCloserWriteCall added in v17.3.0

type MockWriteCloserWriteCall struct {
	*gomock.Call
}

MockWriteCloserWriteCall wrap *gomock.Call

func (*MockWriteCloserWriteCall) Do added in v17.3.0

Do rewrite *gomock.Call.Do

func (*MockWriteCloserWriteCall) DoAndReturn added in v17.3.0

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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockWriteCloserWriteCall) Return added in v17.3.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