mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 6 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

ResponseAs mocks base method

func (*MockHTTPRequest) GetResponseCookiesAs

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

ResponseCookiesAs mocks base method

func (*MockHTTPRequest) GetResponseHeadersAs

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

ResponseHeadersAs mocks base method

func (*MockHTTPRequest) GetResponseStatusCodeAs

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

ResponseStatusCodeAs 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) WithCustomValidator

func (m *MockHTTPRequest) WithCustomValidator(validate *validator.Validate) request.HTTPRequest

WithCustomValidator 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

WithJsonBody mocks base method

func (*MockHTTPRequest) WithJsonBodyNoEscapeHTML

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

WithJsonBodyNoEscapeHTML 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

AddQueryParameters mocks base method

func (*MockHTTPRequest) WithXml

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

WithXmlBody 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) AddQueryParameters

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

AddQueryParameters indicates an expected call of AddQueryParameters

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

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

ResponseAs indicates an expected call of ResponseAs

func (*MockHTTPRequestMockRecorder) ResponseCookiesAs

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

ResponseCookiesAs indicates an expected call of ResponseCookiesAs

func (*MockHTTPRequestMockRecorder) ResponseHeadersAs

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

ResponseHeadersAs indicates an expected call of ResponseHeadersAs

func (*MockHTTPRequestMockRecorder) ResponseStatusCodeAs

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

ResponseStatusCodeAs indicates an expected call of ResponseStatusCodeAs

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

func (mr *MockHTTPRequestMockRecorder) WithCustomValidator(validate interface{}) *gomock.Call

WithCustomValidator indicates an expected call of WithCustomValidator

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

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

WithJsonBody indicates an expected call of WithJsonBody

func (*MockHTTPRequestMockRecorder) WithJsonBodyNoEscapeHTML

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

WithJsonBodyNoEscapeHTML indicates an expected call of WithJsonBodyNoEscapeHTML

func (*MockHTTPRequestMockRecorder) WithOauth

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

WithOauth indicates an expected call of WithOauth

func (*MockHTTPRequestMockRecorder) WithXmlBody

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

WithXmlBody indicates an expected call of WithXmlBody

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