mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockHTTPRequest

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

MockHTTPRequest is a mock of HTTPRequest interface.

func NewMockHTTPRequest

func NewMockHTTPRequest(ctrl *gomock.Controller) *MockHTTPRequest

NewMockHTTPRequest creates a new mock instance.

func (*MockHTTPRequest) AddCookies

func (m *MockHTTPRequest) AddCookies(cookies *http.Cookie) request.HTTPRequest

AddCookies mocks base method.

func (*MockHTTPRequest) AddHeaders

func (m *MockHTTPRequest) AddHeaders(key, value string) request.HTTPRequest

AddHeaders mocks base method.

func (*MockHTTPRequest) DELETE

func (m *MockHTTPRequest) DELETE(url string) error

DELETE mocks base method.

func (*MockHTTPRequest) EXPECT

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

func (*MockHTTPRequest) Error

func (m *MockHTTPRequest) Error() error

Error mocks base method.

func (*MockHTTPRequest) GET

func (m *MockHTTPRequest) GET(url string) error

GET mocks base method.

func (*MockHTTPRequest) GetResponseAs

func (m *MockHTTPRequest) GetResponseAs(responseModel interface{}) request.HTTPRequest

GetResponseAs mocks base method.

func (*MockHTTPRequest) GetResponseCookiesAs

func (m *MockHTTPRequest) GetResponseCookiesAs(cookies *[]*http.Cookie) request.HTTPRequest

GetResponseCookiesAs mocks base method.

func (*MockHTTPRequest) GetResponseHeadersAs

func (m *MockHTTPRequest) GetResponseHeadersAs(respHeaders *map[string][]string) request.HTTPRequest

GetResponseHeadersAs mocks base method.

func (*MockHTTPRequest) GetResponseStatusCodeAs

func (m *MockHTTPRequest) GetResponseStatusCodeAs(httpStatusCode *int) request.HTTPRequest

GetResponseStatusCodeAs mocks base method.

func (*MockHTTPRequest) PATCH

func (m *MockHTTPRequest) PATCH(url string) error

PATCH mocks base method.

func (*MockHTTPRequest) POST

func (m *MockHTTPRequest) POST(url string) error

POST mocks base method.

func (*MockHTTPRequest) PUT

func (m *MockHTTPRequest) PUT(url string) error

PUT mocks base method.

func (*MockHTTPRequest) WithBasicAuth

func (m *MockHTTPRequest) WithBasicAuth(username, password string) request.HTTPRequest

WithBasicAuth mocks base method.

func (*MockHTTPRequest) WithContext

func (m *MockHTTPRequest) WithContext(context context.Context) request.HTTPRequest

WithContext mocks base method.

func (*MockHTTPRequest) WithFromURLEncoded

func (m *MockHTTPRequest) WithFromURLEncoded(formData map[string]interface{}) request.HTTPRequest

WithFromURLEncoded mocks base method.

func (*MockHTTPRequest) WithJWTAuth

func (m *MockHTTPRequest) WithJWTAuth(token string) request.HTTPRequest

WithJWTAuth mocks base method.

func (*MockHTTPRequest) WithJson

func (m *MockHTTPRequest) WithJson(requestModel interface{}) request.HTTPRequest

WithJson mocks base method.

func (*MockHTTPRequest) WithOauth

func (m *MockHTTPRequest) WithOauth(token string) request.HTTPRequest

WithOauth mocks base method.

func (*MockHTTPRequest) WithQueryParameters

func (m *MockHTTPRequest) WithQueryParameters(queryParam map[string]string) request.HTTPRequest

WithQueryParameters mocks base method.

func (*MockHTTPRequest) WithXml

func (m *MockHTTPRequest) WithXml(requestModel interface{}) request.HTTPRequest

WithXml mocks base method.

type MockHTTPRequestMockRecorder

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

MockHTTPRequestMockRecorder is the mock recorder for MockHTTPRequest.

func (*MockHTTPRequestMockRecorder) AddCookies

func (mr *MockHTTPRequestMockRecorder) AddCookies(cookies interface{}) *gomock.Call

AddCookies indicates an expected call of AddCookies.

func (*MockHTTPRequestMockRecorder) AddHeaders

func (mr *MockHTTPRequestMockRecorder) AddHeaders(key, value interface{}) *gomock.Call

AddHeaders indicates an expected call of AddHeaders.

func (*MockHTTPRequestMockRecorder) DELETE

func (mr *MockHTTPRequestMockRecorder) DELETE(url interface{}) *gomock.Call

DELETE indicates an expected call of DELETE.

func (*MockHTTPRequestMockRecorder) Error

Error indicates an expected call of Error.

func (*MockHTTPRequestMockRecorder) GET

func (mr *MockHTTPRequestMockRecorder) GET(url interface{}) *gomock.Call

GET indicates an expected call of GET.

func (*MockHTTPRequestMockRecorder) GetResponseAs added in v1.1.0

func (mr *MockHTTPRequestMockRecorder) GetResponseAs(responseModel interface{}) *gomock.Call

GetResponseAs indicates an expected call of GetResponseAs.

func (*MockHTTPRequestMockRecorder) GetResponseCookiesAs added in v1.1.0

func (mr *MockHTTPRequestMockRecorder) GetResponseCookiesAs(cookies interface{}) *gomock.Call

GetResponseCookiesAs indicates an expected call of GetResponseCookiesAs.

func (*MockHTTPRequestMockRecorder) GetResponseHeadersAs added in v1.1.0

func (mr *MockHTTPRequestMockRecorder) GetResponseHeadersAs(respHeaders interface{}) *gomock.Call

GetResponseHeadersAs indicates an expected call of GetResponseHeadersAs.

func (*MockHTTPRequestMockRecorder) GetResponseStatusCodeAs added in v1.1.0

func (mr *MockHTTPRequestMockRecorder) GetResponseStatusCodeAs(httpStatusCode interface{}) *gomock.Call

GetResponseStatusCodeAs indicates an expected call of GetResponseStatusCodeAs.

func (*MockHTTPRequestMockRecorder) PATCH

func (mr *MockHTTPRequestMockRecorder) PATCH(url interface{}) *gomock.Call

PATCH indicates an expected call of PATCH.

func (*MockHTTPRequestMockRecorder) POST

func (mr *MockHTTPRequestMockRecorder) POST(url interface{}) *gomock.Call

POST indicates an expected call of POST.

func (*MockHTTPRequestMockRecorder) PUT

func (mr *MockHTTPRequestMockRecorder) PUT(url interface{}) *gomock.Call

PUT indicates an expected call of PUT.

func (*MockHTTPRequestMockRecorder) WithBasicAuth

func (mr *MockHTTPRequestMockRecorder) WithBasicAuth(username, password interface{}) *gomock.Call

WithBasicAuth indicates an expected call of WithBasicAuth.

func (*MockHTTPRequestMockRecorder) WithContext

func (mr *MockHTTPRequestMockRecorder) WithContext(context interface{}) *gomock.Call

WithContext indicates an expected call of WithContext.

func (*MockHTTPRequestMockRecorder) WithFromURLEncoded

func (mr *MockHTTPRequestMockRecorder) WithFromURLEncoded(formData interface{}) *gomock.Call

WithFromURLEncoded indicates an expected call of WithFromURLEncoded.

func (*MockHTTPRequestMockRecorder) WithJWTAuth

func (mr *MockHTTPRequestMockRecorder) WithJWTAuth(token interface{}) *gomock.Call

WithJWTAuth indicates an expected call of WithJWTAuth.

func (*MockHTTPRequestMockRecorder) WithJson added in v1.1.0

func (mr *MockHTTPRequestMockRecorder) WithJson(requestModel interface{}) *gomock.Call

WithJson indicates an expected call of WithJson.

func (*MockHTTPRequestMockRecorder) WithOauth

func (mr *MockHTTPRequestMockRecorder) WithOauth(token interface{}) *gomock.Call

WithOauth indicates an expected call of WithOauth.

func (*MockHTTPRequestMockRecorder) WithQueryParameters added in v1.1.0

func (mr *MockHTTPRequestMockRecorder) WithQueryParameters(queryParam interface{}) *gomock.Call

WithQueryParameters indicates an expected call of WithQueryParameters.

func (*MockHTTPRequestMockRecorder) WithXml added in v1.1.0

func (mr *MockHTTPRequestMockRecorder) WithXml(requestModel interface{}) *gomock.Call

WithXml indicates an expected call of WithXml.

type MockRestClient

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

MockRestClient is a mock of RestClient interface.

func NewMockRestClient

func NewMockRestClient(ctrl *gomock.Controller) *MockRestClient

NewMockRestClient creates a new mock instance.

func (*MockRestClient) EXPECT

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

func (*MockRestClient) NewRequest

func (m *MockRestClient) NewRequest() request.HTTPRequest

NewRequest mocks base method.

type MockRestClientMockRecorder

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

MockRestClientMockRecorder is the mock recorder for MockRestClient.

func (*MockRestClientMockRecorder) NewRequest

func (mr *MockRestClientMockRecorder) NewRequest() *gomock.Call

NewRequest indicates an expected call of NewRequest.

Jump to

Keyboard shortcuts

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