mock_httputils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_httputils is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHTTPClient

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

MockHTTPClient is a mock of HTTPClient interface.

func NewMockHTTPClient

func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient

NewMockHTTPClient creates a new mock instance.

func (*MockHTTPClient) CloseIdleConnections

func (m *MockHTTPClient) CloseIdleConnections()

CloseIdleConnections mocks base method.

func (*MockHTTPClient) Do

func (m *MockHTTPClient) Do(req *http.Request) (*http.Response, error)

Do mocks base method.

func (*MockHTTPClient) EXPECT

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

func (*MockHTTPClient) Get

func (m *MockHTTPClient) Get(url string) (*http.Response, error)

Get mocks base method.

func (*MockHTTPClient) Head

func (m *MockHTTPClient) Head(url string) (*http.Response, error)

Head mocks base method.

func (*MockHTTPClient) Post

func (m *MockHTTPClient) Post(url, contentType string, body io.Reader) (*http.Response, error)

Post mocks base method.

func (*MockHTTPClient) PostForm

func (m *MockHTTPClient) PostForm(url string, data url.Values) (*http.Response, error)

PostForm mocks base method.

type MockHTTPClientMockRecorder

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

MockHTTPClientMockRecorder is the mock recorder for MockHTTPClient.

func (*MockHTTPClientMockRecorder) CloseIdleConnections

func (mr *MockHTTPClientMockRecorder) CloseIdleConnections() *gomock.Call

CloseIdleConnections indicates an expected call of CloseIdleConnections.

func (*MockHTTPClientMockRecorder) Do

func (mr *MockHTTPClientMockRecorder) Do(req interface{}) *gomock.Call

Do indicates an expected call of Do.

func (*MockHTTPClientMockRecorder) Get

func (mr *MockHTTPClientMockRecorder) Get(url interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockHTTPClientMockRecorder) Head

func (mr *MockHTTPClientMockRecorder) Head(url interface{}) *gomock.Call

Head indicates an expected call of Head.

func (*MockHTTPClientMockRecorder) Post

func (mr *MockHTTPClientMockRecorder) Post(url, contentType, body interface{}) *gomock.Call

Post indicates an expected call of Post.

func (*MockHTTPClientMockRecorder) PostForm

func (mr *MockHTTPClientMockRecorder) PostForm(url, data interface{}) *gomock.Call

PostForm indicates an expected call of PostForm.

type MockHTTPHandler

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

MockHTTPHandler is a mock of HTTPHandler interface.

func NewMockHTTPHandler

func NewMockHTTPHandler(ctrl *gomock.Controller) *MockHTTPHandler

NewMockHTTPHandler creates a new mock instance.

func (*MockHTTPHandler) EXPECT

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

func (*MockHTTPHandler) ServeHTTP

func (m *MockHTTPHandler) ServeHTTP(arg0 http.ResponseWriter, arg1 *http.Request)

ServeHTTP mocks base method.

type MockHTTPHandlerMockRecorder

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

MockHTTPHandlerMockRecorder is the mock recorder for MockHTTPHandler.

func (*MockHTTPHandlerMockRecorder) ServeHTTP

func (mr *MockHTTPHandlerMockRecorder) ServeHTTP(arg0, arg1 interface{}) *gomock.Call

ServeHTTP indicates an expected call of ServeHTTP.

type MockHTTPServer

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

MockHTTPServer is a mock of HTTPServer interface.

func NewMockHTTPServer

func NewMockHTTPServer(ctrl *gomock.Controller) *MockHTTPServer

NewMockHTTPServer creates a new mock instance.

func (*MockHTTPServer) Close

func (m *MockHTTPServer) Close() error

Close mocks base method.

func (*MockHTTPServer) EXPECT

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

func (*MockHTTPServer) ListenAndServe

func (m *MockHTTPServer) ListenAndServe() error

ListenAndServe mocks base method.

func (*MockHTTPServer) ListenAndServeTLS

func (m *MockHTTPServer) ListenAndServeTLS(certFile, keyFile string) error

ListenAndServeTLS mocks base method.

func (*MockHTTPServer) RegisterOnShutdown

func (m *MockHTTPServer) RegisterOnShutdown(f func())

RegisterOnShutdown mocks base method.

func (*MockHTTPServer) Serve

func (m *MockHTTPServer) Serve(l net.Listener) error

Serve mocks base method.

func (*MockHTTPServer) ServeTLS

func (m *MockHTTPServer) ServeTLS(l net.Listener, certFile, keyFile string) error

ServeTLS mocks base method.

func (*MockHTTPServer) SetKeepAlivesEnabled

func (m *MockHTTPServer) SetKeepAlivesEnabled(v bool)

SetKeepAlivesEnabled mocks base method.

func (*MockHTTPServer) Shutdown

func (m *MockHTTPServer) Shutdown(ctx context.Context) error

Shutdown mocks base method.

type MockHTTPServerMockRecorder

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

MockHTTPServerMockRecorder is the mock recorder for MockHTTPServer.

func (*MockHTTPServerMockRecorder) Close

func (mr *MockHTTPServerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockHTTPServerMockRecorder) ListenAndServe

func (mr *MockHTTPServerMockRecorder) ListenAndServe() *gomock.Call

ListenAndServe indicates an expected call of ListenAndServe.

func (*MockHTTPServerMockRecorder) ListenAndServeTLS

func (mr *MockHTTPServerMockRecorder) ListenAndServeTLS(certFile, keyFile interface{}) *gomock.Call

ListenAndServeTLS indicates an expected call of ListenAndServeTLS.

func (*MockHTTPServerMockRecorder) RegisterOnShutdown

func (mr *MockHTTPServerMockRecorder) RegisterOnShutdown(f interface{}) *gomock.Call

RegisterOnShutdown indicates an expected call of RegisterOnShutdown.

func (*MockHTTPServerMockRecorder) Serve

func (mr *MockHTTPServerMockRecorder) Serve(l interface{}) *gomock.Call

Serve indicates an expected call of Serve.

func (*MockHTTPServerMockRecorder) ServeTLS

func (mr *MockHTTPServerMockRecorder) ServeTLS(l, certFile, keyFile interface{}) *gomock.Call

ServeTLS indicates an expected call of ServeTLS.

func (*MockHTTPServerMockRecorder) SetKeepAlivesEnabled

func (mr *MockHTTPServerMockRecorder) SetKeepAlivesEnabled(v interface{}) *gomock.Call

SetKeepAlivesEnabled indicates an expected call of SetKeepAlivesEnabled.

func (*MockHTTPServerMockRecorder) Shutdown

func (mr *MockHTTPServerMockRecorder) Shutdown(ctx interface{}) *gomock.Call

Shutdown indicates an expected call of Shutdown.

Jump to

Keyboard shortcuts

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