mock_stdlib

package
v17.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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

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