Documentation
¶
Index ¶
- type Factory
- func (_m *Factory) Accept(contentType string) client.Request
- func (_m *Factory) AcceptJSON() client.Request
- func (_m *Factory) AllowStrayRequests(patterns []string) client.Factory
- func (_m *Factory) AsForm() client.Request
- func (_m *Factory) AssertNotSent(assertion func(client.Request) bool) bool
- func (_m *Factory) AssertNothingSent() bool
- func (_m *Factory) AssertSent(assertion func(client.Request) bool) bool
- func (_m *Factory) AssertSentCount(count int) bool
- func (_m *Factory) BaseUrl(url string) client.Request
- func (_m *Factory) Body() string
- func (_m *Factory) Client(name ...string) client.Request
- func (_m *Factory) ClientName() string
- func (_m *Factory) Clone() client.Request
- func (_m *Factory) Delete(uri string, body io.Reader) (client.Response, error)
- func (_m *Factory) EXPECT() *Factory_Expecter
- func (_m *Factory) Fake(mocks map[string]interface{}) client.Factory
- func (_m *Factory) FlushHeaders() client.Request
- func (_m *Factory) Get(uri string) (client.Response, error)
- func (_m *Factory) Head(uri string) (client.Response, error)
- func (_m *Factory) Header(key string) string
- func (_m *Factory) Headers() http.Header
- func (_m *Factory) HttpClient() *http.Client
- func (_m *Factory) Input(key string) interface{}
- func (_m *Factory) Method() string
- func (_m *Factory) Options(uri string) (client.Response, error)
- func (_m *Factory) Patch(uri string, body io.Reader) (client.Response, error)
- func (_m *Factory) Post(uri string, body io.Reader) (client.Response, error)
- func (_m *Factory) PreventStrayRequests() client.Factory
- func (_m *Factory) Put(uri string, body io.Reader) (client.Response, error)
- func (_m *Factory) ReplaceHeaders(headers map[string]string) client.Request
- func (_m *Factory) Reset()
- func (_m *Factory) Response() client.FakeResponse
- func (_m *Factory) Sequence() client.FakeSequence
- func (_m *Factory) Url() string
- func (_m *Factory) WithBasicAuth(username string, password string) client.Request
- func (_m *Factory) WithContext(ctx context.Context) client.Request
- func (_m *Factory) WithCookie(cookie *http.Cookie) client.Request
- func (_m *Factory) WithCookies(cookies []*http.Cookie) client.Request
- func (_m *Factory) WithHeader(key string, value string) client.Request
- func (_m *Factory) WithHeaders(headers map[string]string) client.Request
- func (_m *Factory) WithQueryParameter(key string, value string) client.Request
- func (_m *Factory) WithQueryParameters(params map[string]string) client.Request
- func (_m *Factory) WithQueryString(query string) client.Request
- func (_m *Factory) WithToken(token string, ttype ...string) client.Request
- func (_m *Factory) WithUrlParameter(key string, value string) client.Request
- func (_m *Factory) WithUrlParameters(params map[string]string) client.Request
- func (_m *Factory) WithoutHeader(key string) client.Request
- func (_m *Factory) WithoutToken() client.Request
- type Factory_AcceptJSON_Call
- type Factory_Accept_Call
- type Factory_AllowStrayRequests_Call
- func (_c *Factory_AllowStrayRequests_Call) Return(_a0 client.Factory) *Factory_AllowStrayRequests_Call
- func (_c *Factory_AllowStrayRequests_Call) Run(run func(patterns []string)) *Factory_AllowStrayRequests_Call
- func (_c *Factory_AllowStrayRequests_Call) RunAndReturn(run func([]string) client.Factory) *Factory_AllowStrayRequests_Call
- type Factory_AsForm_Call
- type Factory_AssertNotSent_Call
- func (_c *Factory_AssertNotSent_Call) Return(_a0 bool) *Factory_AssertNotSent_Call
- func (_c *Factory_AssertNotSent_Call) Run(run func(assertion func(client.Request) bool)) *Factory_AssertNotSent_Call
- func (_c *Factory_AssertNotSent_Call) RunAndReturn(run func(func(client.Request) bool) bool) *Factory_AssertNotSent_Call
- type Factory_AssertNothingSent_Call
- type Factory_AssertSentCount_Call
- type Factory_AssertSent_Call
- func (_c *Factory_AssertSent_Call) Return(_a0 bool) *Factory_AssertSent_Call
- func (_c *Factory_AssertSent_Call) Run(run func(assertion func(client.Request) bool)) *Factory_AssertSent_Call
- func (_c *Factory_AssertSent_Call) RunAndReturn(run func(func(client.Request) bool) bool) *Factory_AssertSent_Call
- type Factory_BaseUrl_Call
- type Factory_Body_Call
- type Factory_ClientName_Call
- type Factory_Client_Call
- type Factory_Clone_Call
- type Factory_Delete_Call
- func (_c *Factory_Delete_Call) Return(_a0 client.Response, _a1 error) *Factory_Delete_Call
- func (_c *Factory_Delete_Call) Run(run func(uri string, body io.Reader)) *Factory_Delete_Call
- func (_c *Factory_Delete_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Factory_Delete_Call
- type Factory_Expecter
- func (_e *Factory_Expecter) Accept(contentType interface{}) *Factory_Accept_Call
- func (_e *Factory_Expecter) AcceptJSON() *Factory_AcceptJSON_Call
- func (_e *Factory_Expecter) AllowStrayRequests(patterns interface{}) *Factory_AllowStrayRequests_Call
- func (_e *Factory_Expecter) AsForm() *Factory_AsForm_Call
- func (_e *Factory_Expecter) AssertNotSent(assertion interface{}) *Factory_AssertNotSent_Call
- func (_e *Factory_Expecter) AssertNothingSent() *Factory_AssertNothingSent_Call
- func (_e *Factory_Expecter) AssertSent(assertion interface{}) *Factory_AssertSent_Call
- func (_e *Factory_Expecter) AssertSentCount(count interface{}) *Factory_AssertSentCount_Call
- func (_e *Factory_Expecter) BaseUrl(url interface{}) *Factory_BaseUrl_Call
- func (_e *Factory_Expecter) Body() *Factory_Body_Call
- func (_e *Factory_Expecter) Client(name ...interface{}) *Factory_Client_Call
- func (_e *Factory_Expecter) ClientName() *Factory_ClientName_Call
- func (_e *Factory_Expecter) Clone() *Factory_Clone_Call
- func (_e *Factory_Expecter) Delete(uri interface{}, body interface{}) *Factory_Delete_Call
- func (_e *Factory_Expecter) Fake(mocks interface{}) *Factory_Fake_Call
- func (_e *Factory_Expecter) FlushHeaders() *Factory_FlushHeaders_Call
- func (_e *Factory_Expecter) Get(uri interface{}) *Factory_Get_Call
- func (_e *Factory_Expecter) Head(uri interface{}) *Factory_Head_Call
- func (_e *Factory_Expecter) Header(key interface{}) *Factory_Header_Call
- func (_e *Factory_Expecter) Headers() *Factory_Headers_Call
- func (_e *Factory_Expecter) HttpClient() *Factory_HttpClient_Call
- func (_e *Factory_Expecter) Input(key interface{}) *Factory_Input_Call
- func (_e *Factory_Expecter) Method() *Factory_Method_Call
- func (_e *Factory_Expecter) Options(uri interface{}) *Factory_Options_Call
- func (_e *Factory_Expecter) Patch(uri interface{}, body interface{}) *Factory_Patch_Call
- func (_e *Factory_Expecter) Post(uri interface{}, body interface{}) *Factory_Post_Call
- func (_e *Factory_Expecter) PreventStrayRequests() *Factory_PreventStrayRequests_Call
- func (_e *Factory_Expecter) Put(uri interface{}, body interface{}) *Factory_Put_Call
- func (_e *Factory_Expecter) ReplaceHeaders(headers interface{}) *Factory_ReplaceHeaders_Call
- func (_e *Factory_Expecter) Reset() *Factory_Reset_Call
- func (_e *Factory_Expecter) Response() *Factory_Response_Call
- func (_e *Factory_Expecter) Sequence() *Factory_Sequence_Call
- func (_e *Factory_Expecter) Url() *Factory_Url_Call
- func (_e *Factory_Expecter) WithBasicAuth(username interface{}, password interface{}) *Factory_WithBasicAuth_Call
- func (_e *Factory_Expecter) WithContext(ctx interface{}) *Factory_WithContext_Call
- func (_e *Factory_Expecter) WithCookie(cookie interface{}) *Factory_WithCookie_Call
- func (_e *Factory_Expecter) WithCookies(cookies interface{}) *Factory_WithCookies_Call
- func (_e *Factory_Expecter) WithHeader(key interface{}, value interface{}) *Factory_WithHeader_Call
- func (_e *Factory_Expecter) WithHeaders(headers interface{}) *Factory_WithHeaders_Call
- func (_e *Factory_Expecter) WithQueryParameter(key interface{}, value interface{}) *Factory_WithQueryParameter_Call
- func (_e *Factory_Expecter) WithQueryParameters(params interface{}) *Factory_WithQueryParameters_Call
- func (_e *Factory_Expecter) WithQueryString(query interface{}) *Factory_WithQueryString_Call
- func (_e *Factory_Expecter) WithToken(token interface{}, ttype ...interface{}) *Factory_WithToken_Call
- func (_e *Factory_Expecter) WithUrlParameter(key interface{}, value interface{}) *Factory_WithUrlParameter_Call
- func (_e *Factory_Expecter) WithUrlParameters(params interface{}) *Factory_WithUrlParameters_Call
- func (_e *Factory_Expecter) WithoutHeader(key interface{}) *Factory_WithoutHeader_Call
- func (_e *Factory_Expecter) WithoutToken() *Factory_WithoutToken_Call
- type Factory_Fake_Call
- type Factory_FlushHeaders_Call
- type Factory_Get_Call
- type Factory_Head_Call
- type Factory_Header_Call
- type Factory_Headers_Call
- type Factory_HttpClient_Call
- type Factory_Input_Call
- type Factory_Method_Call
- type Factory_Options_Call
- type Factory_Patch_Call
- type Factory_Post_Call
- type Factory_PreventStrayRequests_Call
- func (_c *Factory_PreventStrayRequests_Call) Return(_a0 client.Factory) *Factory_PreventStrayRequests_Call
- func (_c *Factory_PreventStrayRequests_Call) Run(run func()) *Factory_PreventStrayRequests_Call
- func (_c *Factory_PreventStrayRequests_Call) RunAndReturn(run func() client.Factory) *Factory_PreventStrayRequests_Call
- type Factory_Put_Call
- type Factory_ReplaceHeaders_Call
- func (_c *Factory_ReplaceHeaders_Call) Return(_a0 client.Request) *Factory_ReplaceHeaders_Call
- func (_c *Factory_ReplaceHeaders_Call) Run(run func(headers map[string]string)) *Factory_ReplaceHeaders_Call
- func (_c *Factory_ReplaceHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Factory_ReplaceHeaders_Call
- type Factory_Reset_Call
- type Factory_Response_Call
- type Factory_Sequence_Call
- type Factory_Url_Call
- type Factory_WithBasicAuth_Call
- func (_c *Factory_WithBasicAuth_Call) Return(_a0 client.Request) *Factory_WithBasicAuth_Call
- func (_c *Factory_WithBasicAuth_Call) Run(run func(username string, password string)) *Factory_WithBasicAuth_Call
- func (_c *Factory_WithBasicAuth_Call) RunAndReturn(run func(string, string) client.Request) *Factory_WithBasicAuth_Call
- type Factory_WithContext_Call
- func (_c *Factory_WithContext_Call) Return(_a0 client.Request) *Factory_WithContext_Call
- func (_c *Factory_WithContext_Call) Run(run func(ctx context.Context)) *Factory_WithContext_Call
- func (_c *Factory_WithContext_Call) RunAndReturn(run func(context.Context) client.Request) *Factory_WithContext_Call
- type Factory_WithCookie_Call
- type Factory_WithCookies_Call
- func (_c *Factory_WithCookies_Call) Return(_a0 client.Request) *Factory_WithCookies_Call
- func (_c *Factory_WithCookies_Call) Run(run func(cookies []*http.Cookie)) *Factory_WithCookies_Call
- func (_c *Factory_WithCookies_Call) RunAndReturn(run func([]*http.Cookie) client.Request) *Factory_WithCookies_Call
- type Factory_WithHeader_Call
- func (_c *Factory_WithHeader_Call) Return(_a0 client.Request) *Factory_WithHeader_Call
- func (_c *Factory_WithHeader_Call) Run(run func(key string, value string)) *Factory_WithHeader_Call
- func (_c *Factory_WithHeader_Call) RunAndReturn(run func(string, string) client.Request) *Factory_WithHeader_Call
- type Factory_WithHeaders_Call
- func (_c *Factory_WithHeaders_Call) Return(_a0 client.Request) *Factory_WithHeaders_Call
- func (_c *Factory_WithHeaders_Call) Run(run func(headers map[string]string)) *Factory_WithHeaders_Call
- func (_c *Factory_WithHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Factory_WithHeaders_Call
- type Factory_WithQueryParameter_Call
- func (_c *Factory_WithQueryParameter_Call) Return(_a0 client.Request) *Factory_WithQueryParameter_Call
- func (_c *Factory_WithQueryParameter_Call) Run(run func(key string, value string)) *Factory_WithQueryParameter_Call
- func (_c *Factory_WithQueryParameter_Call) RunAndReturn(run func(string, string) client.Request) *Factory_WithQueryParameter_Call
- type Factory_WithQueryParameters_Call
- func (_c *Factory_WithQueryParameters_Call) Return(_a0 client.Request) *Factory_WithQueryParameters_Call
- func (_c *Factory_WithQueryParameters_Call) Run(run func(params map[string]string)) *Factory_WithQueryParameters_Call
- func (_c *Factory_WithQueryParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Factory_WithQueryParameters_Call
- type Factory_WithQueryString_Call
- func (_c *Factory_WithQueryString_Call) Return(_a0 client.Request) *Factory_WithQueryString_Call
- func (_c *Factory_WithQueryString_Call) Run(run func(query string)) *Factory_WithQueryString_Call
- func (_c *Factory_WithQueryString_Call) RunAndReturn(run func(string) client.Request) *Factory_WithQueryString_Call
- type Factory_WithToken_Call
- func (_c *Factory_WithToken_Call) Return(_a0 client.Request) *Factory_WithToken_Call
- func (_c *Factory_WithToken_Call) Run(run func(token string, ttype ...string)) *Factory_WithToken_Call
- func (_c *Factory_WithToken_Call) RunAndReturn(run func(string, ...string) client.Request) *Factory_WithToken_Call
- type Factory_WithUrlParameter_Call
- func (_c *Factory_WithUrlParameter_Call) Return(_a0 client.Request) *Factory_WithUrlParameter_Call
- func (_c *Factory_WithUrlParameter_Call) Run(run func(key string, value string)) *Factory_WithUrlParameter_Call
- func (_c *Factory_WithUrlParameter_Call) RunAndReturn(run func(string, string) client.Request) *Factory_WithUrlParameter_Call
- type Factory_WithUrlParameters_Call
- func (_c *Factory_WithUrlParameters_Call) Return(_a0 client.Request) *Factory_WithUrlParameters_Call
- func (_c *Factory_WithUrlParameters_Call) Run(run func(params map[string]string)) *Factory_WithUrlParameters_Call
- func (_c *Factory_WithUrlParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Factory_WithUrlParameters_Call
- type Factory_WithoutHeader_Call
- type Factory_WithoutToken_Call
- type FakeResponse
- func (_m *FakeResponse) EXPECT() *FakeResponse_Expecter
- func (_m *FakeResponse) File(status int, path string) client.Response
- func (_m *FakeResponse) Json(status int, obj interface{}) client.Response
- func (_m *FakeResponse) Make(status int, body string, header http.Header) client.Response
- func (_m *FakeResponse) OK() client.Response
- func (_m *FakeResponse) Status(status int) client.Response
- func (_m *FakeResponse) String(status int, body string) client.Response
- type FakeResponse_Expecter
- func (_e *FakeResponse_Expecter) File(status interface{}, path interface{}) *FakeResponse_File_Call
- func (_e *FakeResponse_Expecter) Json(status interface{}, obj interface{}) *FakeResponse_Json_Call
- func (_e *FakeResponse_Expecter) Make(status interface{}, body interface{}, header interface{}) *FakeResponse_Make_Call
- func (_e *FakeResponse_Expecter) OK() *FakeResponse_OK_Call
- func (_e *FakeResponse_Expecter) Status(status interface{}) *FakeResponse_Status_Call
- func (_e *FakeResponse_Expecter) String(status interface{}, body interface{}) *FakeResponse_String_Call
- type FakeResponse_File_Call
- type FakeResponse_Json_Call
- func (_c *FakeResponse_Json_Call) Return(_a0 client.Response) *FakeResponse_Json_Call
- func (_c *FakeResponse_Json_Call) Run(run func(status int, obj interface{})) *FakeResponse_Json_Call
- func (_c *FakeResponse_Json_Call) RunAndReturn(run func(int, interface{}) client.Response) *FakeResponse_Json_Call
- type FakeResponse_Make_Call
- func (_c *FakeResponse_Make_Call) Return(_a0 client.Response) *FakeResponse_Make_Call
- func (_c *FakeResponse_Make_Call) Run(run func(status int, body string, header http.Header)) *FakeResponse_Make_Call
- func (_c *FakeResponse_Make_Call) RunAndReturn(run func(int, string, http.Header) client.Response) *FakeResponse_Make_Call
- type FakeResponse_OK_Call
- type FakeResponse_Status_Call
- type FakeResponse_String_Call
- func (_c *FakeResponse_String_Call) Return(_a0 client.Response) *FakeResponse_String_Call
- func (_c *FakeResponse_String_Call) Run(run func(status int, body string)) *FakeResponse_String_Call
- func (_c *FakeResponse_String_Call) RunAndReturn(run func(int, string) client.Response) *FakeResponse_String_Call
- type FakeSequence
- func (_m *FakeSequence) EXPECT() *FakeSequence_Expecter
- func (_m *FakeSequence) Push(response client.Response, count ...int) client.FakeSequence
- func (_m *FakeSequence) PushStatus(status int, count ...int) client.FakeSequence
- func (_m *FakeSequence) PushString(status int, body string, count ...int) client.FakeSequence
- func (_m *FakeSequence) WhenEmpty(response client.Response) client.FakeSequence
- type FakeSequence_Expecter
- func (_e *FakeSequence_Expecter) Push(response interface{}, count ...interface{}) *FakeSequence_Push_Call
- func (_e *FakeSequence_Expecter) PushStatus(status interface{}, count ...interface{}) *FakeSequence_PushStatus_Call
- func (_e *FakeSequence_Expecter) PushString(status interface{}, body interface{}, count ...interface{}) *FakeSequence_PushString_Call
- func (_e *FakeSequence_Expecter) WhenEmpty(response interface{}) *FakeSequence_WhenEmpty_Call
- type FakeSequence_PushStatus_Call
- func (_c *FakeSequence_PushStatus_Call) Return(_a0 client.FakeSequence) *FakeSequence_PushStatus_Call
- func (_c *FakeSequence_PushStatus_Call) Run(run func(status int, count ...int)) *FakeSequence_PushStatus_Call
- func (_c *FakeSequence_PushStatus_Call) RunAndReturn(run func(int, ...int) client.FakeSequence) *FakeSequence_PushStatus_Call
- type FakeSequence_PushString_Call
- func (_c *FakeSequence_PushString_Call) Return(_a0 client.FakeSequence) *FakeSequence_PushString_Call
- func (_c *FakeSequence_PushString_Call) Run(run func(status int, body string, count ...int)) *FakeSequence_PushString_Call
- func (_c *FakeSequence_PushString_Call) RunAndReturn(run func(int, string, ...int) client.FakeSequence) *FakeSequence_PushString_Call
- type FakeSequence_Push_Call
- func (_c *FakeSequence_Push_Call) Return(_a0 client.FakeSequence) *FakeSequence_Push_Call
- func (_c *FakeSequence_Push_Call) Run(run func(response client.Response, count ...int)) *FakeSequence_Push_Call
- func (_c *FakeSequence_Push_Call) RunAndReturn(run func(client.Response, ...int) client.FakeSequence) *FakeSequence_Push_Call
- type FakeSequence_WhenEmpty_Call
- func (_c *FakeSequence_WhenEmpty_Call) Return(_a0 client.FakeSequence) *FakeSequence_WhenEmpty_Call
- func (_c *FakeSequence_WhenEmpty_Call) Run(run func(response client.Response)) *FakeSequence_WhenEmpty_Call
- func (_c *FakeSequence_WhenEmpty_Call) RunAndReturn(run func(client.Response) client.FakeSequence) *FakeSequence_WhenEmpty_Call
- type Request
- func (_m *Request) Accept(contentType string) client.Request
- func (_m *Request) AcceptJSON() client.Request
- func (_m *Request) AsForm() client.Request
- func (_m *Request) BaseUrl(url string) client.Request
- func (_m *Request) Body() string
- func (_m *Request) ClientName() string
- func (_m *Request) Clone() client.Request
- func (_m *Request) Delete(uri string, body io.Reader) (client.Response, error)
- func (_m *Request) EXPECT() *Request_Expecter
- func (_m *Request) FlushHeaders() client.Request
- func (_m *Request) Get(uri string) (client.Response, error)
- func (_m *Request) Head(uri string) (client.Response, error)
- func (_m *Request) Header(key string) string
- func (_m *Request) Headers() http.Header
- func (_m *Request) HttpClient() *http.Client
- func (_m *Request) Input(key string) interface{}
- func (_m *Request) Method() string
- func (_m *Request) Options(uri string) (client.Response, error)
- func (_m *Request) Patch(uri string, body io.Reader) (client.Response, error)
- func (_m *Request) Post(uri string, body io.Reader) (client.Response, error)
- func (_m *Request) Put(uri string, body io.Reader) (client.Response, error)
- func (_m *Request) ReplaceHeaders(headers map[string]string) client.Request
- func (_m *Request) Url() string
- func (_m *Request) WithBasicAuth(username string, password string) client.Request
- func (_m *Request) WithContext(ctx context.Context) client.Request
- func (_m *Request) WithCookie(cookie *http.Cookie) client.Request
- func (_m *Request) WithCookies(cookies []*http.Cookie) client.Request
- func (_m *Request) WithHeader(key string, value string) client.Request
- func (_m *Request) WithHeaders(headers map[string]string) client.Request
- func (_m *Request) WithQueryParameter(key string, value string) client.Request
- func (_m *Request) WithQueryParameters(params map[string]string) client.Request
- func (_m *Request) WithQueryString(query string) client.Request
- func (_m *Request) WithToken(token string, ttype ...string) client.Request
- func (_m *Request) WithUrlParameter(key string, value string) client.Request
- func (_m *Request) WithUrlParameters(params map[string]string) client.Request
- func (_m *Request) WithoutHeader(key string) client.Request
- func (_m *Request) WithoutToken() client.Request
- type Request_AcceptJSON_Call
- type Request_Accept_Call
- type Request_AsForm_Call
- type Request_BaseUrl_Call
- type Request_Body_Call
- type Request_ClientName_Call
- type Request_Clone_Call
- type Request_Delete_Call
- func (_c *Request_Delete_Call) Return(_a0 client.Response, _a1 error) *Request_Delete_Call
- func (_c *Request_Delete_Call) Run(run func(uri string, body io.Reader)) *Request_Delete_Call
- func (_c *Request_Delete_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Delete_Call
- type Request_Expecter
- func (_e *Request_Expecter) Accept(contentType interface{}) *Request_Accept_Call
- func (_e *Request_Expecter) AcceptJSON() *Request_AcceptJSON_Call
- func (_e *Request_Expecter) AsForm() *Request_AsForm_Call
- func (_e *Request_Expecter) BaseUrl(url interface{}) *Request_BaseUrl_Call
- func (_e *Request_Expecter) Body() *Request_Body_Call
- func (_e *Request_Expecter) ClientName() *Request_ClientName_Call
- func (_e *Request_Expecter) Clone() *Request_Clone_Call
- func (_e *Request_Expecter) Delete(uri interface{}, body interface{}) *Request_Delete_Call
- func (_e *Request_Expecter) FlushHeaders() *Request_FlushHeaders_Call
- func (_e *Request_Expecter) Get(uri interface{}) *Request_Get_Call
- func (_e *Request_Expecter) Head(uri interface{}) *Request_Head_Call
- func (_e *Request_Expecter) Header(key interface{}) *Request_Header_Call
- func (_e *Request_Expecter) Headers() *Request_Headers_Call
- func (_e *Request_Expecter) HttpClient() *Request_HttpClient_Call
- func (_e *Request_Expecter) Input(key interface{}) *Request_Input_Call
- func (_e *Request_Expecter) Method() *Request_Method_Call
- func (_e *Request_Expecter) Options(uri interface{}) *Request_Options_Call
- func (_e *Request_Expecter) Patch(uri interface{}, body interface{}) *Request_Patch_Call
- func (_e *Request_Expecter) Post(uri interface{}, body interface{}) *Request_Post_Call
- func (_e *Request_Expecter) Put(uri interface{}, body interface{}) *Request_Put_Call
- func (_e *Request_Expecter) ReplaceHeaders(headers interface{}) *Request_ReplaceHeaders_Call
- func (_e *Request_Expecter) Url() *Request_Url_Call
- func (_e *Request_Expecter) WithBasicAuth(username interface{}, password interface{}) *Request_WithBasicAuth_Call
- func (_e *Request_Expecter) WithContext(ctx interface{}) *Request_WithContext_Call
- func (_e *Request_Expecter) WithCookie(cookie interface{}) *Request_WithCookie_Call
- func (_e *Request_Expecter) WithCookies(cookies interface{}) *Request_WithCookies_Call
- func (_e *Request_Expecter) WithHeader(key interface{}, value interface{}) *Request_WithHeader_Call
- func (_e *Request_Expecter) WithHeaders(headers interface{}) *Request_WithHeaders_Call
- func (_e *Request_Expecter) WithQueryParameter(key interface{}, value interface{}) *Request_WithQueryParameter_Call
- func (_e *Request_Expecter) WithQueryParameters(params interface{}) *Request_WithQueryParameters_Call
- func (_e *Request_Expecter) WithQueryString(query interface{}) *Request_WithQueryString_Call
- func (_e *Request_Expecter) WithToken(token interface{}, ttype ...interface{}) *Request_WithToken_Call
- func (_e *Request_Expecter) WithUrlParameter(key interface{}, value interface{}) *Request_WithUrlParameter_Call
- func (_e *Request_Expecter) WithUrlParameters(params interface{}) *Request_WithUrlParameters_Call
- func (_e *Request_Expecter) WithoutHeader(key interface{}) *Request_WithoutHeader_Call
- func (_e *Request_Expecter) WithoutToken() *Request_WithoutToken_Call
- type Request_FlushHeaders_Call
- type Request_Get_Call
- type Request_Head_Call
- type Request_Header_Call
- type Request_Headers_Call
- type Request_HttpClient_Call
- type Request_Input_Call
- type Request_Method_Call
- type Request_Options_Call
- type Request_Patch_Call
- type Request_Post_Call
- type Request_Put_Call
- type Request_ReplaceHeaders_Call
- func (_c *Request_ReplaceHeaders_Call) Return(_a0 client.Request) *Request_ReplaceHeaders_Call
- func (_c *Request_ReplaceHeaders_Call) Run(run func(headers map[string]string)) *Request_ReplaceHeaders_Call
- func (_c *Request_ReplaceHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_ReplaceHeaders_Call
- type Request_Url_Call
- type Request_WithBasicAuth_Call
- func (_c *Request_WithBasicAuth_Call) Return(_a0 client.Request) *Request_WithBasicAuth_Call
- func (_c *Request_WithBasicAuth_Call) Run(run func(username string, password string)) *Request_WithBasicAuth_Call
- func (_c *Request_WithBasicAuth_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithBasicAuth_Call
- type Request_WithContext_Call
- func (_c *Request_WithContext_Call) Return(_a0 client.Request) *Request_WithContext_Call
- func (_c *Request_WithContext_Call) Run(run func(ctx context.Context)) *Request_WithContext_Call
- func (_c *Request_WithContext_Call) RunAndReturn(run func(context.Context) client.Request) *Request_WithContext_Call
- type Request_WithCookie_Call
- type Request_WithCookies_Call
- func (_c *Request_WithCookies_Call) Return(_a0 client.Request) *Request_WithCookies_Call
- func (_c *Request_WithCookies_Call) Run(run func(cookies []*http.Cookie)) *Request_WithCookies_Call
- func (_c *Request_WithCookies_Call) RunAndReturn(run func([]*http.Cookie) client.Request) *Request_WithCookies_Call
- type Request_WithHeader_Call
- func (_c *Request_WithHeader_Call) Return(_a0 client.Request) *Request_WithHeader_Call
- func (_c *Request_WithHeader_Call) Run(run func(key string, value string)) *Request_WithHeader_Call
- func (_c *Request_WithHeader_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithHeader_Call
- type Request_WithHeaders_Call
- func (_c *Request_WithHeaders_Call) Return(_a0 client.Request) *Request_WithHeaders_Call
- func (_c *Request_WithHeaders_Call) Run(run func(headers map[string]string)) *Request_WithHeaders_Call
- func (_c *Request_WithHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithHeaders_Call
- type Request_WithQueryParameter_Call
- func (_c *Request_WithQueryParameter_Call) Return(_a0 client.Request) *Request_WithQueryParameter_Call
- func (_c *Request_WithQueryParameter_Call) Run(run func(key string, value string)) *Request_WithQueryParameter_Call
- func (_c *Request_WithQueryParameter_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithQueryParameter_Call
- type Request_WithQueryParameters_Call
- func (_c *Request_WithQueryParameters_Call) Return(_a0 client.Request) *Request_WithQueryParameters_Call
- func (_c *Request_WithQueryParameters_Call) Run(run func(params map[string]string)) *Request_WithQueryParameters_Call
- func (_c *Request_WithQueryParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithQueryParameters_Call
- type Request_WithQueryString_Call
- func (_c *Request_WithQueryString_Call) Return(_a0 client.Request) *Request_WithQueryString_Call
- func (_c *Request_WithQueryString_Call) Run(run func(query string)) *Request_WithQueryString_Call
- func (_c *Request_WithQueryString_Call) RunAndReturn(run func(string) client.Request) *Request_WithQueryString_Call
- type Request_WithToken_Call
- func (_c *Request_WithToken_Call) Return(_a0 client.Request) *Request_WithToken_Call
- func (_c *Request_WithToken_Call) Run(run func(token string, ttype ...string)) *Request_WithToken_Call
- func (_c *Request_WithToken_Call) RunAndReturn(run func(string, ...string) client.Request) *Request_WithToken_Call
- type Request_WithUrlParameter_Call
- func (_c *Request_WithUrlParameter_Call) Return(_a0 client.Request) *Request_WithUrlParameter_Call
- func (_c *Request_WithUrlParameter_Call) Run(run func(key string, value string)) *Request_WithUrlParameter_Call
- func (_c *Request_WithUrlParameter_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithUrlParameter_Call
- type Request_WithUrlParameters_Call
- func (_c *Request_WithUrlParameters_Call) Return(_a0 client.Request) *Request_WithUrlParameters_Call
- func (_c *Request_WithUrlParameters_Call) Run(run func(params map[string]string)) *Request_WithUrlParameters_Call
- func (_c *Request_WithUrlParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithUrlParameters_Call
- type Request_WithoutHeader_Call
- type Request_WithoutToken_Call
- type Response
- func (_m *Response) Accepted() bool
- func (_m *Response) BadRequest() bool
- func (_m *Response) Bind(value interface{}) error
- func (_m *Response) Body() (string, error)
- func (_m *Response) ClientError() bool
- func (_m *Response) Conflict() bool
- func (_m *Response) Cookie(name string) *http.Cookie
- func (_m *Response) Cookies() []*http.Cookie
- func (_m *Response) Created() bool
- func (_m *Response) EXPECT() *Response_Expecter
- func (_m *Response) Failed() bool
- func (_m *Response) Forbidden() bool
- func (_m *Response) Found() bool
- func (_m *Response) Header(name string) string
- func (_m *Response) Headers() http.Header
- func (_m *Response) Json() (map[string]interface{}, error)
- func (_m *Response) MovedPermanently() bool
- func (_m *Response) NoContent() bool
- func (_m *Response) NotFound() bool
- func (_m *Response) OK() bool
- func (_m *Response) Origin() *http.Response
- func (_m *Response) PaymentRequired() bool
- func (_m *Response) Redirect() bool
- func (_m *Response) RequestTimeout() bool
- func (_m *Response) ServerError() bool
- func (_m *Response) Status() int
- func (_m *Response) Stream() (io.ReadCloser, error)
- func (_m *Response) Successful() bool
- func (_m *Response) TooManyRequests() bool
- func (_m *Response) Unauthorized() bool
- func (_m *Response) UnprocessableEntity() bool
- type Response_Accepted_Call
- type Response_BadRequest_Call
- type Response_Bind_Call
- type Response_Body_Call
- type Response_ClientError_Call
- type Response_Conflict_Call
- type Response_Cookie_Call
- type Response_Cookies_Call
- type Response_Created_Call
- type Response_Expecter
- func (_e *Response_Expecter) Accepted() *Response_Accepted_Call
- func (_e *Response_Expecter) BadRequest() *Response_BadRequest_Call
- func (_e *Response_Expecter) Bind(value interface{}) *Response_Bind_Call
- func (_e *Response_Expecter) Body() *Response_Body_Call
- func (_e *Response_Expecter) ClientError() *Response_ClientError_Call
- func (_e *Response_Expecter) Conflict() *Response_Conflict_Call
- func (_e *Response_Expecter) Cookie(name interface{}) *Response_Cookie_Call
- func (_e *Response_Expecter) Cookies() *Response_Cookies_Call
- func (_e *Response_Expecter) Created() *Response_Created_Call
- func (_e *Response_Expecter) Failed() *Response_Failed_Call
- func (_e *Response_Expecter) Forbidden() *Response_Forbidden_Call
- func (_e *Response_Expecter) Found() *Response_Found_Call
- func (_e *Response_Expecter) Header(name interface{}) *Response_Header_Call
- func (_e *Response_Expecter) Headers() *Response_Headers_Call
- func (_e *Response_Expecter) Json() *Response_Json_Call
- func (_e *Response_Expecter) MovedPermanently() *Response_MovedPermanently_Call
- func (_e *Response_Expecter) NoContent() *Response_NoContent_Call
- func (_e *Response_Expecter) NotFound() *Response_NotFound_Call
- func (_e *Response_Expecter) OK() *Response_OK_Call
- func (_e *Response_Expecter) Origin() *Response_Origin_Call
- func (_e *Response_Expecter) PaymentRequired() *Response_PaymentRequired_Call
- func (_e *Response_Expecter) Redirect() *Response_Redirect_Call
- func (_e *Response_Expecter) RequestTimeout() *Response_RequestTimeout_Call
- func (_e *Response_Expecter) ServerError() *Response_ServerError_Call
- func (_e *Response_Expecter) Status() *Response_Status_Call
- func (_e *Response_Expecter) Stream() *Response_Stream_Call
- func (_e *Response_Expecter) Successful() *Response_Successful_Call
- func (_e *Response_Expecter) TooManyRequests() *Response_TooManyRequests_Call
- func (_e *Response_Expecter) Unauthorized() *Response_Unauthorized_Call
- func (_e *Response_Expecter) UnprocessableEntity() *Response_UnprocessableEntity_Call
- type Response_Failed_Call
- type Response_Forbidden_Call
- type Response_Found_Call
- type Response_Header_Call
- type Response_Headers_Call
- type Response_Json_Call
- type Response_MovedPermanently_Call
- type Response_NoContent_Call
- type Response_NotFound_Call
- type Response_OK_Call
- type Response_Origin_Call
- type Response_PaymentRequired_Call
- type Response_Redirect_Call
- type Response_RequestTimeout_Call
- type Response_ServerError_Call
- type Response_Status_Call
- type Response_Stream_Call
- type Response_Successful_Call
- type Response_TooManyRequests_Call
- type Response_Unauthorized_Call
- type Response_UnprocessableEntity_Call
- func (_c *Response_UnprocessableEntity_Call) Return(_a0 bool) *Response_UnprocessableEntity_Call
- func (_c *Response_UnprocessableEntity_Call) Run(run func()) *Response_UnprocessableEntity_Call
- func (_c *Response_UnprocessableEntity_Call) RunAndReturn(run func() bool) *Response_UnprocessableEntity_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶ added in v1.17.0
Factory is an autogenerated mock type for the Factory type
func NewFactory ¶ added in v1.17.0
NewFactory creates a new instance of Factory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Factory) Accept ¶ added in v1.17.0
Accept provides a mock function with given fields: contentType
func (*Factory) AcceptJSON ¶ added in v1.17.0
AcceptJSON provides a mock function with no fields
func (*Factory) AllowStrayRequests ¶ added in v1.17.0
AllowStrayRequests provides a mock function with given fields: patterns
func (*Factory) AssertNotSent ¶ added in v1.17.0
AssertNotSent provides a mock function with given fields: assertion
func (*Factory) AssertNothingSent ¶ added in v1.17.0
AssertNothingSent provides a mock function with no fields
func (*Factory) AssertSent ¶ added in v1.17.0
AssertSent provides a mock function with given fields: assertion
func (*Factory) AssertSentCount ¶ added in v1.17.0
AssertSentCount provides a mock function with given fields: count
func (*Factory) ClientName ¶ added in v1.17.0
ClientName provides a mock function with no fields
func (*Factory) Delete ¶ added in v1.17.0
Delete provides a mock function with given fields: uri, body
func (*Factory) EXPECT ¶ added in v1.17.0
func (_m *Factory) EXPECT() *Factory_Expecter
func (*Factory) FlushHeaders ¶ added in v1.17.0
FlushHeaders provides a mock function with no fields
func (*Factory) HttpClient ¶ added in v1.17.0
HttpClient provides a mock function with no fields
func (*Factory) Patch ¶ added in v1.17.0
Patch provides a mock function with given fields: uri, body
func (*Factory) PreventStrayRequests ¶ added in v1.17.0
PreventStrayRequests provides a mock function with no fields
func (*Factory) ReplaceHeaders ¶ added in v1.17.0
ReplaceHeaders provides a mock function with given fields: headers
func (*Factory) Reset ¶ added in v1.17.0
func (_m *Factory) Reset()
Reset provides a mock function with no fields
func (*Factory) Response ¶ added in v1.17.0
func (_m *Factory) Response() client.FakeResponse
Response provides a mock function with no fields
func (*Factory) Sequence ¶ added in v1.17.0
func (_m *Factory) Sequence() client.FakeSequence
Sequence provides a mock function with no fields
func (*Factory) WithBasicAuth ¶ added in v1.17.0
WithBasicAuth provides a mock function with given fields: username, password
func (*Factory) WithContext ¶ added in v1.17.0
WithContext provides a mock function with given fields: ctx
func (*Factory) WithCookie ¶ added in v1.17.0
WithCookie provides a mock function with given fields: cookie
func (*Factory) WithCookies ¶ added in v1.17.0
WithCookies provides a mock function with given fields: cookies
func (*Factory) WithHeader ¶ added in v1.17.0
WithHeader provides a mock function with given fields: key, value
func (*Factory) WithHeaders ¶ added in v1.17.0
WithHeaders provides a mock function with given fields: headers
func (*Factory) WithQueryParameter ¶ added in v1.17.0
WithQueryParameter provides a mock function with given fields: key, value
func (*Factory) WithQueryParameters ¶ added in v1.17.0
WithQueryParameters provides a mock function with given fields: params
func (*Factory) WithQueryString ¶ added in v1.17.0
WithQueryString provides a mock function with given fields: query
func (*Factory) WithToken ¶ added in v1.17.0
WithToken provides a mock function with given fields: token, ttype
func (*Factory) WithUrlParameter ¶ added in v1.17.0
WithUrlParameter provides a mock function with given fields: key, value
func (*Factory) WithUrlParameters ¶ added in v1.17.0
WithUrlParameters provides a mock function with given fields: params
func (*Factory) WithoutHeader ¶ added in v1.17.0
WithoutHeader provides a mock function with given fields: key
func (*Factory) WithoutToken ¶ added in v1.17.0
WithoutToken provides a mock function with no fields
type Factory_AcceptJSON_Call ¶ added in v1.17.0
Factory_AcceptJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AcceptJSON'
func (*Factory_AcceptJSON_Call) Return ¶ added in v1.17.0
func (_c *Factory_AcceptJSON_Call) Return(_a0 client.Request) *Factory_AcceptJSON_Call
func (*Factory_AcceptJSON_Call) Run ¶ added in v1.17.0
func (_c *Factory_AcceptJSON_Call) Run(run func()) *Factory_AcceptJSON_Call
func (*Factory_AcceptJSON_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_AcceptJSON_Call) RunAndReturn(run func() client.Request) *Factory_AcceptJSON_Call
type Factory_Accept_Call ¶ added in v1.17.0
Factory_Accept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Accept'
func (*Factory_Accept_Call) Return ¶ added in v1.17.0
func (_c *Factory_Accept_Call) Return(_a0 client.Request) *Factory_Accept_Call
func (*Factory_Accept_Call) Run ¶ added in v1.17.0
func (_c *Factory_Accept_Call) Run(run func(contentType string)) *Factory_Accept_Call
func (*Factory_Accept_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Accept_Call) RunAndReturn(run func(string) client.Request) *Factory_Accept_Call
type Factory_AllowStrayRequests_Call ¶ added in v1.17.0
Factory_AllowStrayRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowStrayRequests'
func (*Factory_AllowStrayRequests_Call) Return ¶ added in v1.17.0
func (_c *Factory_AllowStrayRequests_Call) Return(_a0 client.Factory) *Factory_AllowStrayRequests_Call
func (*Factory_AllowStrayRequests_Call) Run ¶ added in v1.17.0
func (_c *Factory_AllowStrayRequests_Call) Run(run func(patterns []string)) *Factory_AllowStrayRequests_Call
func (*Factory_AllowStrayRequests_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_AllowStrayRequests_Call) RunAndReturn(run func([]string) client.Factory) *Factory_AllowStrayRequests_Call
type Factory_AsForm_Call ¶ added in v1.17.0
Factory_AsForm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsForm'
func (*Factory_AsForm_Call) Return ¶ added in v1.17.0
func (_c *Factory_AsForm_Call) Return(_a0 client.Request) *Factory_AsForm_Call
func (*Factory_AsForm_Call) Run ¶ added in v1.17.0
func (_c *Factory_AsForm_Call) Run(run func()) *Factory_AsForm_Call
func (*Factory_AsForm_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_AsForm_Call) RunAndReturn(run func() client.Request) *Factory_AsForm_Call
type Factory_AssertNotSent_Call ¶ added in v1.17.0
Factory_AssertNotSent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssertNotSent'
func (*Factory_AssertNotSent_Call) Return ¶ added in v1.17.0
func (_c *Factory_AssertNotSent_Call) Return(_a0 bool) *Factory_AssertNotSent_Call
func (*Factory_AssertNotSent_Call) Run ¶ added in v1.17.0
func (_c *Factory_AssertNotSent_Call) Run(run func(assertion func(client.Request) bool)) *Factory_AssertNotSent_Call
func (*Factory_AssertNotSent_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_AssertNotSent_Call) RunAndReturn(run func(func(client.Request) bool) bool) *Factory_AssertNotSent_Call
type Factory_AssertNothingSent_Call ¶ added in v1.17.0
Factory_AssertNothingSent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssertNothingSent'
func (*Factory_AssertNothingSent_Call) Return ¶ added in v1.17.0
func (_c *Factory_AssertNothingSent_Call) Return(_a0 bool) *Factory_AssertNothingSent_Call
func (*Factory_AssertNothingSent_Call) Run ¶ added in v1.17.0
func (_c *Factory_AssertNothingSent_Call) Run(run func()) *Factory_AssertNothingSent_Call
func (*Factory_AssertNothingSent_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_AssertNothingSent_Call) RunAndReturn(run func() bool) *Factory_AssertNothingSent_Call
type Factory_AssertSentCount_Call ¶ added in v1.17.0
Factory_AssertSentCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssertSentCount'
func (*Factory_AssertSentCount_Call) Return ¶ added in v1.17.0
func (_c *Factory_AssertSentCount_Call) Return(_a0 bool) *Factory_AssertSentCount_Call
func (*Factory_AssertSentCount_Call) Run ¶ added in v1.17.0
func (_c *Factory_AssertSentCount_Call) Run(run func(count int)) *Factory_AssertSentCount_Call
func (*Factory_AssertSentCount_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_AssertSentCount_Call) RunAndReturn(run func(int) bool) *Factory_AssertSentCount_Call
type Factory_AssertSent_Call ¶ added in v1.17.0
Factory_AssertSent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssertSent'
func (*Factory_AssertSent_Call) Return ¶ added in v1.17.0
func (_c *Factory_AssertSent_Call) Return(_a0 bool) *Factory_AssertSent_Call
func (*Factory_AssertSent_Call) Run ¶ added in v1.17.0
func (_c *Factory_AssertSent_Call) Run(run func(assertion func(client.Request) bool)) *Factory_AssertSent_Call
func (*Factory_AssertSent_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_AssertSent_Call) RunAndReturn(run func(func(client.Request) bool) bool) *Factory_AssertSent_Call
type Factory_BaseUrl_Call ¶ added in v1.17.0
Factory_BaseUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BaseUrl'
func (*Factory_BaseUrl_Call) Return ¶ added in v1.17.0
func (_c *Factory_BaseUrl_Call) Return(_a0 client.Request) *Factory_BaseUrl_Call
func (*Factory_BaseUrl_Call) Run ¶ added in v1.17.0
func (_c *Factory_BaseUrl_Call) Run(run func(url string)) *Factory_BaseUrl_Call
func (*Factory_BaseUrl_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_BaseUrl_Call) RunAndReturn(run func(string) client.Request) *Factory_BaseUrl_Call
type Factory_Body_Call ¶ added in v1.17.0
Factory_Body_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Body'
func (*Factory_Body_Call) Return ¶ added in v1.17.0
func (_c *Factory_Body_Call) Return(_a0 string) *Factory_Body_Call
func (*Factory_Body_Call) Run ¶ added in v1.17.0
func (_c *Factory_Body_Call) Run(run func()) *Factory_Body_Call
func (*Factory_Body_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Body_Call) RunAndReturn(run func() string) *Factory_Body_Call
type Factory_ClientName_Call ¶ added in v1.17.0
Factory_ClientName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClientName'
func (*Factory_ClientName_Call) Return ¶ added in v1.17.0
func (_c *Factory_ClientName_Call) Return(_a0 string) *Factory_ClientName_Call
func (*Factory_ClientName_Call) Run ¶ added in v1.17.0
func (_c *Factory_ClientName_Call) Run(run func()) *Factory_ClientName_Call
func (*Factory_ClientName_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_ClientName_Call) RunAndReturn(run func() string) *Factory_ClientName_Call
type Factory_Client_Call ¶ added in v1.17.0
Factory_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'
func (*Factory_Client_Call) Return ¶ added in v1.17.0
func (_c *Factory_Client_Call) Return(_a0 client.Request) *Factory_Client_Call
func (*Factory_Client_Call) Run ¶ added in v1.17.0
func (_c *Factory_Client_Call) Run(run func(name ...string)) *Factory_Client_Call
func (*Factory_Client_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Client_Call) RunAndReturn(run func(...string) client.Request) *Factory_Client_Call
type Factory_Clone_Call ¶ added in v1.17.0
Factory_Clone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clone'
func (*Factory_Clone_Call) Return ¶ added in v1.17.0
func (_c *Factory_Clone_Call) Return(_a0 client.Request) *Factory_Clone_Call
func (*Factory_Clone_Call) Run ¶ added in v1.17.0
func (_c *Factory_Clone_Call) Run(run func()) *Factory_Clone_Call
func (*Factory_Clone_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Clone_Call) RunAndReturn(run func() client.Request) *Factory_Clone_Call
type Factory_Delete_Call ¶ added in v1.17.0
Factory_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Factory_Delete_Call) Return ¶ added in v1.17.0
func (_c *Factory_Delete_Call) Return(_a0 client.Response, _a1 error) *Factory_Delete_Call
func (*Factory_Delete_Call) Run ¶ added in v1.17.0
func (_c *Factory_Delete_Call) Run(run func(uri string, body io.Reader)) *Factory_Delete_Call
func (*Factory_Delete_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Delete_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Factory_Delete_Call
type Factory_Expecter ¶ added in v1.17.0
type Factory_Expecter struct {
// contains filtered or unexported fields
}
func (*Factory_Expecter) Accept ¶ added in v1.17.0
func (_e *Factory_Expecter) Accept(contentType interface{}) *Factory_Accept_Call
Accept is a helper method to define mock.On call
- contentType string
func (*Factory_Expecter) AcceptJSON ¶ added in v1.17.0
func (_e *Factory_Expecter) AcceptJSON() *Factory_AcceptJSON_Call
AcceptJSON is a helper method to define mock.On call
func (*Factory_Expecter) AllowStrayRequests ¶ added in v1.17.0
func (_e *Factory_Expecter) AllowStrayRequests(patterns interface{}) *Factory_AllowStrayRequests_Call
AllowStrayRequests is a helper method to define mock.On call
- patterns []string
func (*Factory_Expecter) AsForm ¶ added in v1.17.0
func (_e *Factory_Expecter) AsForm() *Factory_AsForm_Call
AsForm is a helper method to define mock.On call
func (*Factory_Expecter) AssertNotSent ¶ added in v1.17.0
func (_e *Factory_Expecter) AssertNotSent(assertion interface{}) *Factory_AssertNotSent_Call
AssertNotSent is a helper method to define mock.On call
- assertion func(client.Request) bool
func (*Factory_Expecter) AssertNothingSent ¶ added in v1.17.0
func (_e *Factory_Expecter) AssertNothingSent() *Factory_AssertNothingSent_Call
AssertNothingSent is a helper method to define mock.On call
func (*Factory_Expecter) AssertSent ¶ added in v1.17.0
func (_e *Factory_Expecter) AssertSent(assertion interface{}) *Factory_AssertSent_Call
AssertSent is a helper method to define mock.On call
- assertion func(client.Request) bool
func (*Factory_Expecter) AssertSentCount ¶ added in v1.17.0
func (_e *Factory_Expecter) AssertSentCount(count interface{}) *Factory_AssertSentCount_Call
AssertSentCount is a helper method to define mock.On call
- count int
func (*Factory_Expecter) BaseUrl ¶ added in v1.17.0
func (_e *Factory_Expecter) BaseUrl(url interface{}) *Factory_BaseUrl_Call
BaseUrl is a helper method to define mock.On call
- url string
func (*Factory_Expecter) Body ¶ added in v1.17.0
func (_e *Factory_Expecter) Body() *Factory_Body_Call
Body is a helper method to define mock.On call
func (*Factory_Expecter) Client ¶ added in v1.17.0
func (_e *Factory_Expecter) Client(name ...interface{}) *Factory_Client_Call
Client is a helper method to define mock.On call
- name ...string
func (*Factory_Expecter) ClientName ¶ added in v1.17.0
func (_e *Factory_Expecter) ClientName() *Factory_ClientName_Call
ClientName is a helper method to define mock.On call
func (*Factory_Expecter) Clone ¶ added in v1.17.0
func (_e *Factory_Expecter) Clone() *Factory_Clone_Call
Clone is a helper method to define mock.On call
func (*Factory_Expecter) Delete ¶ added in v1.17.0
func (_e *Factory_Expecter) Delete(uri interface{}, body interface{}) *Factory_Delete_Call
Delete is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Factory_Expecter) Fake ¶ added in v1.17.0
func (_e *Factory_Expecter) Fake(mocks interface{}) *Factory_Fake_Call
Fake is a helper method to define mock.On call
- mocks map[string]interface{}
func (*Factory_Expecter) FlushHeaders ¶ added in v1.17.0
func (_e *Factory_Expecter) FlushHeaders() *Factory_FlushHeaders_Call
FlushHeaders is a helper method to define mock.On call
func (*Factory_Expecter) Get ¶ added in v1.17.0
func (_e *Factory_Expecter) Get(uri interface{}) *Factory_Get_Call
Get is a helper method to define mock.On call
- uri string
func (*Factory_Expecter) Head ¶ added in v1.17.0
func (_e *Factory_Expecter) Head(uri interface{}) *Factory_Head_Call
Head is a helper method to define mock.On call
- uri string
func (*Factory_Expecter) Header ¶ added in v1.17.0
func (_e *Factory_Expecter) Header(key interface{}) *Factory_Header_Call
Header is a helper method to define mock.On call
- key string
func (*Factory_Expecter) Headers ¶ added in v1.17.0
func (_e *Factory_Expecter) Headers() *Factory_Headers_Call
Headers is a helper method to define mock.On call
func (*Factory_Expecter) HttpClient ¶ added in v1.17.0
func (_e *Factory_Expecter) HttpClient() *Factory_HttpClient_Call
HttpClient is a helper method to define mock.On call
func (*Factory_Expecter) Input ¶ added in v1.17.0
func (_e *Factory_Expecter) Input(key interface{}) *Factory_Input_Call
Input is a helper method to define mock.On call
- key string
func (*Factory_Expecter) Method ¶ added in v1.17.0
func (_e *Factory_Expecter) Method() *Factory_Method_Call
Method is a helper method to define mock.On call
func (*Factory_Expecter) Options ¶ added in v1.17.0
func (_e *Factory_Expecter) Options(uri interface{}) *Factory_Options_Call
Options is a helper method to define mock.On call
- uri string
func (*Factory_Expecter) Patch ¶ added in v1.17.0
func (_e *Factory_Expecter) Patch(uri interface{}, body interface{}) *Factory_Patch_Call
Patch is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Factory_Expecter) Post ¶ added in v1.17.0
func (_e *Factory_Expecter) Post(uri interface{}, body interface{}) *Factory_Post_Call
Post is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Factory_Expecter) PreventStrayRequests ¶ added in v1.17.0
func (_e *Factory_Expecter) PreventStrayRequests() *Factory_PreventStrayRequests_Call
PreventStrayRequests is a helper method to define mock.On call
func (*Factory_Expecter) Put ¶ added in v1.17.0
func (_e *Factory_Expecter) Put(uri interface{}, body interface{}) *Factory_Put_Call
Put is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Factory_Expecter) ReplaceHeaders ¶ added in v1.17.0
func (_e *Factory_Expecter) ReplaceHeaders(headers interface{}) *Factory_ReplaceHeaders_Call
ReplaceHeaders is a helper method to define mock.On call
- headers map[string]string
func (*Factory_Expecter) Reset ¶ added in v1.17.0
func (_e *Factory_Expecter) Reset() *Factory_Reset_Call
Reset is a helper method to define mock.On call
func (*Factory_Expecter) Response ¶ added in v1.17.0
func (_e *Factory_Expecter) Response() *Factory_Response_Call
Response is a helper method to define mock.On call
func (*Factory_Expecter) Sequence ¶ added in v1.17.0
func (_e *Factory_Expecter) Sequence() *Factory_Sequence_Call
Sequence is a helper method to define mock.On call
func (*Factory_Expecter) Url ¶ added in v1.17.0
func (_e *Factory_Expecter) Url() *Factory_Url_Call
Url is a helper method to define mock.On call
func (*Factory_Expecter) WithBasicAuth ¶ added in v1.17.0
func (_e *Factory_Expecter) WithBasicAuth(username interface{}, password interface{}) *Factory_WithBasicAuth_Call
WithBasicAuth is a helper method to define mock.On call
- username string
- password string
func (*Factory_Expecter) WithContext ¶ added in v1.17.0
func (_e *Factory_Expecter) WithContext(ctx interface{}) *Factory_WithContext_Call
WithContext is a helper method to define mock.On call
- ctx context.Context
func (*Factory_Expecter) WithCookie ¶ added in v1.17.0
func (_e *Factory_Expecter) WithCookie(cookie interface{}) *Factory_WithCookie_Call
WithCookie is a helper method to define mock.On call
- cookie *http.Cookie
func (*Factory_Expecter) WithCookies ¶ added in v1.17.0
func (_e *Factory_Expecter) WithCookies(cookies interface{}) *Factory_WithCookies_Call
WithCookies is a helper method to define mock.On call
- cookies []*http.Cookie
func (*Factory_Expecter) WithHeader ¶ added in v1.17.0
func (_e *Factory_Expecter) WithHeader(key interface{}, value interface{}) *Factory_WithHeader_Call
WithHeader is a helper method to define mock.On call
- key string
- value string
func (*Factory_Expecter) WithHeaders ¶ added in v1.17.0
func (_e *Factory_Expecter) WithHeaders(headers interface{}) *Factory_WithHeaders_Call
WithHeaders is a helper method to define mock.On call
- headers map[string]string
func (*Factory_Expecter) WithQueryParameter ¶ added in v1.17.0
func (_e *Factory_Expecter) WithQueryParameter(key interface{}, value interface{}) *Factory_WithQueryParameter_Call
WithQueryParameter is a helper method to define mock.On call
- key string
- value string
func (*Factory_Expecter) WithQueryParameters ¶ added in v1.17.0
func (_e *Factory_Expecter) WithQueryParameters(params interface{}) *Factory_WithQueryParameters_Call
WithQueryParameters is a helper method to define mock.On call
- params map[string]string
func (*Factory_Expecter) WithQueryString ¶ added in v1.17.0
func (_e *Factory_Expecter) WithQueryString(query interface{}) *Factory_WithQueryString_Call
WithQueryString is a helper method to define mock.On call
- query string
func (*Factory_Expecter) WithToken ¶ added in v1.17.0
func (_e *Factory_Expecter) WithToken(token interface{}, ttype ...interface{}) *Factory_WithToken_Call
WithToken is a helper method to define mock.On call
- token string
- ttype ...string
func (*Factory_Expecter) WithUrlParameter ¶ added in v1.17.0
func (_e *Factory_Expecter) WithUrlParameter(key interface{}, value interface{}) *Factory_WithUrlParameter_Call
WithUrlParameter is a helper method to define mock.On call
- key string
- value string
func (*Factory_Expecter) WithUrlParameters ¶ added in v1.17.0
func (_e *Factory_Expecter) WithUrlParameters(params interface{}) *Factory_WithUrlParameters_Call
WithUrlParameters is a helper method to define mock.On call
- params map[string]string
func (*Factory_Expecter) WithoutHeader ¶ added in v1.17.0
func (_e *Factory_Expecter) WithoutHeader(key interface{}) *Factory_WithoutHeader_Call
WithoutHeader is a helper method to define mock.On call
- key string
func (*Factory_Expecter) WithoutToken ¶ added in v1.17.0
func (_e *Factory_Expecter) WithoutToken() *Factory_WithoutToken_Call
WithoutToken is a helper method to define mock.On call
type Factory_Fake_Call ¶ added in v1.17.0
Factory_Fake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fake'
func (*Factory_Fake_Call) Return ¶ added in v1.17.0
func (_c *Factory_Fake_Call) Return(_a0 client.Factory) *Factory_Fake_Call
func (*Factory_Fake_Call) Run ¶ added in v1.17.0
func (_c *Factory_Fake_Call) Run(run func(mocks map[string]interface{})) *Factory_Fake_Call
func (*Factory_Fake_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Fake_Call) RunAndReturn(run func(map[string]interface{}) client.Factory) *Factory_Fake_Call
type Factory_FlushHeaders_Call ¶ added in v1.17.0
Factory_FlushHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlushHeaders'
func (*Factory_FlushHeaders_Call) Return ¶ added in v1.17.0
func (_c *Factory_FlushHeaders_Call) Return(_a0 client.Request) *Factory_FlushHeaders_Call
func (*Factory_FlushHeaders_Call) Run ¶ added in v1.17.0
func (_c *Factory_FlushHeaders_Call) Run(run func()) *Factory_FlushHeaders_Call
func (*Factory_FlushHeaders_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_FlushHeaders_Call) RunAndReturn(run func() client.Request) *Factory_FlushHeaders_Call
type Factory_Get_Call ¶ added in v1.17.0
Factory_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Factory_Get_Call) Return ¶ added in v1.17.0
func (_c *Factory_Get_Call) Return(_a0 client.Response, _a1 error) *Factory_Get_Call
func (*Factory_Get_Call) Run ¶ added in v1.17.0
func (_c *Factory_Get_Call) Run(run func(uri string)) *Factory_Get_Call
func (*Factory_Get_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Get_Call) RunAndReturn(run func(string) (client.Response, error)) *Factory_Get_Call
type Factory_Head_Call ¶ added in v1.17.0
Factory_Head_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Head'
func (*Factory_Head_Call) Return ¶ added in v1.17.0
func (_c *Factory_Head_Call) Return(_a0 client.Response, _a1 error) *Factory_Head_Call
func (*Factory_Head_Call) Run ¶ added in v1.17.0
func (_c *Factory_Head_Call) Run(run func(uri string)) *Factory_Head_Call
func (*Factory_Head_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Head_Call) RunAndReturn(run func(string) (client.Response, error)) *Factory_Head_Call
type Factory_Header_Call ¶ added in v1.17.0
Factory_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*Factory_Header_Call) Return ¶ added in v1.17.0
func (_c *Factory_Header_Call) Return(_a0 string) *Factory_Header_Call
func (*Factory_Header_Call) Run ¶ added in v1.17.0
func (_c *Factory_Header_Call) Run(run func(key string)) *Factory_Header_Call
func (*Factory_Header_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Header_Call) RunAndReturn(run func(string) string) *Factory_Header_Call
type Factory_Headers_Call ¶ added in v1.17.0
Factory_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'
func (*Factory_Headers_Call) Return ¶ added in v1.17.0
func (_c *Factory_Headers_Call) Return(_a0 http.Header) *Factory_Headers_Call
func (*Factory_Headers_Call) Run ¶ added in v1.17.0
func (_c *Factory_Headers_Call) Run(run func()) *Factory_Headers_Call
func (*Factory_Headers_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Headers_Call) RunAndReturn(run func() http.Header) *Factory_Headers_Call
type Factory_HttpClient_Call ¶ added in v1.17.0
Factory_HttpClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HttpClient'
func (*Factory_HttpClient_Call) Return ¶ added in v1.17.0
func (_c *Factory_HttpClient_Call) Return(_a0 *http.Client) *Factory_HttpClient_Call
func (*Factory_HttpClient_Call) Run ¶ added in v1.17.0
func (_c *Factory_HttpClient_Call) Run(run func()) *Factory_HttpClient_Call
func (*Factory_HttpClient_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_HttpClient_Call) RunAndReturn(run func() *http.Client) *Factory_HttpClient_Call
type Factory_Input_Call ¶ added in v1.17.0
Factory_Input_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Input'
func (*Factory_Input_Call) Return ¶ added in v1.17.0
func (_c *Factory_Input_Call) Return(_a0 interface{}) *Factory_Input_Call
func (*Factory_Input_Call) Run ¶ added in v1.17.0
func (_c *Factory_Input_Call) Run(run func(key string)) *Factory_Input_Call
func (*Factory_Input_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Input_Call) RunAndReturn(run func(string) interface{}) *Factory_Input_Call
type Factory_Method_Call ¶ added in v1.17.0
Factory_Method_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Method'
func (*Factory_Method_Call) Return ¶ added in v1.17.0
func (_c *Factory_Method_Call) Return(_a0 string) *Factory_Method_Call
func (*Factory_Method_Call) Run ¶ added in v1.17.0
func (_c *Factory_Method_Call) Run(run func()) *Factory_Method_Call
func (*Factory_Method_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Method_Call) RunAndReturn(run func() string) *Factory_Method_Call
type Factory_Options_Call ¶ added in v1.17.0
Factory_Options_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Options'
func (*Factory_Options_Call) Return ¶ added in v1.17.0
func (_c *Factory_Options_Call) Return(_a0 client.Response, _a1 error) *Factory_Options_Call
func (*Factory_Options_Call) Run ¶ added in v1.17.0
func (_c *Factory_Options_Call) Run(run func(uri string)) *Factory_Options_Call
func (*Factory_Options_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Options_Call) RunAndReturn(run func(string) (client.Response, error)) *Factory_Options_Call
type Factory_Patch_Call ¶ added in v1.17.0
Factory_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*Factory_Patch_Call) Return ¶ added in v1.17.0
func (_c *Factory_Patch_Call) Return(_a0 client.Response, _a1 error) *Factory_Patch_Call
func (*Factory_Patch_Call) Run ¶ added in v1.17.0
func (_c *Factory_Patch_Call) Run(run func(uri string, body io.Reader)) *Factory_Patch_Call
func (*Factory_Patch_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Patch_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Factory_Patch_Call
type Factory_Post_Call ¶ added in v1.17.0
Factory_Post_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Post'
func (*Factory_Post_Call) Return ¶ added in v1.17.0
func (_c *Factory_Post_Call) Return(_a0 client.Response, _a1 error) *Factory_Post_Call
func (*Factory_Post_Call) Run ¶ added in v1.17.0
func (_c *Factory_Post_Call) Run(run func(uri string, body io.Reader)) *Factory_Post_Call
func (*Factory_Post_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Post_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Factory_Post_Call
type Factory_PreventStrayRequests_Call ¶ added in v1.17.0
Factory_PreventStrayRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PreventStrayRequests'
func (*Factory_PreventStrayRequests_Call) Return ¶ added in v1.17.0
func (_c *Factory_PreventStrayRequests_Call) Return(_a0 client.Factory) *Factory_PreventStrayRequests_Call
func (*Factory_PreventStrayRequests_Call) Run ¶ added in v1.17.0
func (_c *Factory_PreventStrayRequests_Call) Run(run func()) *Factory_PreventStrayRequests_Call
func (*Factory_PreventStrayRequests_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_PreventStrayRequests_Call) RunAndReturn(run func() client.Factory) *Factory_PreventStrayRequests_Call
type Factory_Put_Call ¶ added in v1.17.0
Factory_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*Factory_Put_Call) Return ¶ added in v1.17.0
func (_c *Factory_Put_Call) Return(_a0 client.Response, _a1 error) *Factory_Put_Call
func (*Factory_Put_Call) Run ¶ added in v1.17.0
func (_c *Factory_Put_Call) Run(run func(uri string, body io.Reader)) *Factory_Put_Call
func (*Factory_Put_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Put_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Factory_Put_Call
type Factory_ReplaceHeaders_Call ¶ added in v1.17.0
Factory_ReplaceHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplaceHeaders'
func (*Factory_ReplaceHeaders_Call) Return ¶ added in v1.17.0
func (_c *Factory_ReplaceHeaders_Call) Return(_a0 client.Request) *Factory_ReplaceHeaders_Call
func (*Factory_ReplaceHeaders_Call) Run ¶ added in v1.17.0
func (_c *Factory_ReplaceHeaders_Call) Run(run func(headers map[string]string)) *Factory_ReplaceHeaders_Call
func (*Factory_ReplaceHeaders_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_ReplaceHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Factory_ReplaceHeaders_Call
type Factory_Reset_Call ¶ added in v1.17.0
Factory_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'
func (*Factory_Reset_Call) Return ¶ added in v1.17.0
func (_c *Factory_Reset_Call) Return() *Factory_Reset_Call
func (*Factory_Reset_Call) Run ¶ added in v1.17.0
func (_c *Factory_Reset_Call) Run(run func()) *Factory_Reset_Call
func (*Factory_Reset_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Reset_Call) RunAndReturn(run func()) *Factory_Reset_Call
type Factory_Response_Call ¶ added in v1.17.0
Factory_Response_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Response'
func (*Factory_Response_Call) Return ¶ added in v1.17.0
func (_c *Factory_Response_Call) Return(_a0 client.FakeResponse) *Factory_Response_Call
func (*Factory_Response_Call) Run ¶ added in v1.17.0
func (_c *Factory_Response_Call) Run(run func()) *Factory_Response_Call
func (*Factory_Response_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Response_Call) RunAndReturn(run func() client.FakeResponse) *Factory_Response_Call
type Factory_Sequence_Call ¶ added in v1.17.0
Factory_Sequence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sequence'
func (*Factory_Sequence_Call) Return ¶ added in v1.17.0
func (_c *Factory_Sequence_Call) Return(_a0 client.FakeSequence) *Factory_Sequence_Call
func (*Factory_Sequence_Call) Run ¶ added in v1.17.0
func (_c *Factory_Sequence_Call) Run(run func()) *Factory_Sequence_Call
func (*Factory_Sequence_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Sequence_Call) RunAndReturn(run func() client.FakeSequence) *Factory_Sequence_Call
type Factory_Url_Call ¶ added in v1.17.0
Factory_Url_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Url'
func (*Factory_Url_Call) Return ¶ added in v1.17.0
func (_c *Factory_Url_Call) Return(_a0 string) *Factory_Url_Call
func (*Factory_Url_Call) Run ¶ added in v1.17.0
func (_c *Factory_Url_Call) Run(run func()) *Factory_Url_Call
func (*Factory_Url_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_Url_Call) RunAndReturn(run func() string) *Factory_Url_Call
type Factory_WithBasicAuth_Call ¶ added in v1.17.0
Factory_WithBasicAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithBasicAuth'
func (*Factory_WithBasicAuth_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithBasicAuth_Call) Return(_a0 client.Request) *Factory_WithBasicAuth_Call
func (*Factory_WithBasicAuth_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithBasicAuth_Call) Run(run func(username string, password string)) *Factory_WithBasicAuth_Call
func (*Factory_WithBasicAuth_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithBasicAuth_Call) RunAndReturn(run func(string, string) client.Request) *Factory_WithBasicAuth_Call
type Factory_WithContext_Call ¶ added in v1.17.0
Factory_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'
func (*Factory_WithContext_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithContext_Call) Return(_a0 client.Request) *Factory_WithContext_Call
func (*Factory_WithContext_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithContext_Call) Run(run func(ctx context.Context)) *Factory_WithContext_Call
func (*Factory_WithContext_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithContext_Call) RunAndReturn(run func(context.Context) client.Request) *Factory_WithContext_Call
type Factory_WithCookie_Call ¶ added in v1.17.0
Factory_WithCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithCookie'
func (*Factory_WithCookie_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithCookie_Call) Return(_a0 client.Request) *Factory_WithCookie_Call
func (*Factory_WithCookie_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithCookie_Call) Run(run func(cookie *http.Cookie)) *Factory_WithCookie_Call
func (*Factory_WithCookie_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithCookie_Call) RunAndReturn(run func(*http.Cookie) client.Request) *Factory_WithCookie_Call
type Factory_WithCookies_Call ¶ added in v1.17.0
Factory_WithCookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithCookies'
func (*Factory_WithCookies_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithCookies_Call) Return(_a0 client.Request) *Factory_WithCookies_Call
func (*Factory_WithCookies_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithCookies_Call) Run(run func(cookies []*http.Cookie)) *Factory_WithCookies_Call
func (*Factory_WithCookies_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithCookies_Call) RunAndReturn(run func([]*http.Cookie) client.Request) *Factory_WithCookies_Call
type Factory_WithHeader_Call ¶ added in v1.17.0
Factory_WithHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithHeader'
func (*Factory_WithHeader_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithHeader_Call) Return(_a0 client.Request) *Factory_WithHeader_Call
func (*Factory_WithHeader_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithHeader_Call) Run(run func(key string, value string)) *Factory_WithHeader_Call
func (*Factory_WithHeader_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithHeader_Call) RunAndReturn(run func(string, string) client.Request) *Factory_WithHeader_Call
type Factory_WithHeaders_Call ¶ added in v1.17.0
Factory_WithHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithHeaders'
func (*Factory_WithHeaders_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithHeaders_Call) Return(_a0 client.Request) *Factory_WithHeaders_Call
func (*Factory_WithHeaders_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithHeaders_Call) Run(run func(headers map[string]string)) *Factory_WithHeaders_Call
func (*Factory_WithHeaders_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Factory_WithHeaders_Call
type Factory_WithQueryParameter_Call ¶ added in v1.17.0
Factory_WithQueryParameter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryParameter'
func (*Factory_WithQueryParameter_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithQueryParameter_Call) Return(_a0 client.Request) *Factory_WithQueryParameter_Call
func (*Factory_WithQueryParameter_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithQueryParameter_Call) Run(run func(key string, value string)) *Factory_WithQueryParameter_Call
func (*Factory_WithQueryParameter_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithQueryParameter_Call) RunAndReturn(run func(string, string) client.Request) *Factory_WithQueryParameter_Call
type Factory_WithQueryParameters_Call ¶ added in v1.17.0
Factory_WithQueryParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryParameters'
func (*Factory_WithQueryParameters_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithQueryParameters_Call) Return(_a0 client.Request) *Factory_WithQueryParameters_Call
func (*Factory_WithQueryParameters_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithQueryParameters_Call) Run(run func(params map[string]string)) *Factory_WithQueryParameters_Call
func (*Factory_WithQueryParameters_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithQueryParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Factory_WithQueryParameters_Call
type Factory_WithQueryString_Call ¶ added in v1.17.0
Factory_WithQueryString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryString'
func (*Factory_WithQueryString_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithQueryString_Call) Return(_a0 client.Request) *Factory_WithQueryString_Call
func (*Factory_WithQueryString_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithQueryString_Call) Run(run func(query string)) *Factory_WithQueryString_Call
func (*Factory_WithQueryString_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithQueryString_Call) RunAndReturn(run func(string) client.Request) *Factory_WithQueryString_Call
type Factory_WithToken_Call ¶ added in v1.17.0
Factory_WithToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithToken'
func (*Factory_WithToken_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithToken_Call) Return(_a0 client.Request) *Factory_WithToken_Call
func (*Factory_WithToken_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithToken_Call) Run(run func(token string, ttype ...string)) *Factory_WithToken_Call
func (*Factory_WithToken_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithToken_Call) RunAndReturn(run func(string, ...string) client.Request) *Factory_WithToken_Call
type Factory_WithUrlParameter_Call ¶ added in v1.17.0
Factory_WithUrlParameter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithUrlParameter'
func (*Factory_WithUrlParameter_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithUrlParameter_Call) Return(_a0 client.Request) *Factory_WithUrlParameter_Call
func (*Factory_WithUrlParameter_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithUrlParameter_Call) Run(run func(key string, value string)) *Factory_WithUrlParameter_Call
func (*Factory_WithUrlParameter_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithUrlParameter_Call) RunAndReturn(run func(string, string) client.Request) *Factory_WithUrlParameter_Call
type Factory_WithUrlParameters_Call ¶ added in v1.17.0
Factory_WithUrlParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithUrlParameters'
func (*Factory_WithUrlParameters_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithUrlParameters_Call) Return(_a0 client.Request) *Factory_WithUrlParameters_Call
func (*Factory_WithUrlParameters_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithUrlParameters_Call) Run(run func(params map[string]string)) *Factory_WithUrlParameters_Call
func (*Factory_WithUrlParameters_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithUrlParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Factory_WithUrlParameters_Call
type Factory_WithoutHeader_Call ¶ added in v1.17.0
Factory_WithoutHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutHeader'
func (*Factory_WithoutHeader_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithoutHeader_Call) Return(_a0 client.Request) *Factory_WithoutHeader_Call
func (*Factory_WithoutHeader_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithoutHeader_Call) Run(run func(key string)) *Factory_WithoutHeader_Call
func (*Factory_WithoutHeader_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithoutHeader_Call) RunAndReturn(run func(string) client.Request) *Factory_WithoutHeader_Call
type Factory_WithoutToken_Call ¶ added in v1.17.0
Factory_WithoutToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutToken'
func (*Factory_WithoutToken_Call) Return ¶ added in v1.17.0
func (_c *Factory_WithoutToken_Call) Return(_a0 client.Request) *Factory_WithoutToken_Call
func (*Factory_WithoutToken_Call) Run ¶ added in v1.17.0
func (_c *Factory_WithoutToken_Call) Run(run func()) *Factory_WithoutToken_Call
func (*Factory_WithoutToken_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Factory_WithoutToken_Call) RunAndReturn(run func() client.Request) *Factory_WithoutToken_Call
type FakeResponse ¶ added in v1.17.0
FakeResponse is an autogenerated mock type for the FakeResponse type
func NewFakeResponse ¶ added in v1.17.0
func NewFakeResponse(t interface {
mock.TestingT
Cleanup(func())
}) *FakeResponse
NewFakeResponse creates a new instance of FakeResponse. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FakeResponse) EXPECT ¶ added in v1.17.0
func (_m *FakeResponse) EXPECT() *FakeResponse_Expecter
func (*FakeResponse) File ¶ added in v1.17.0
func (_m *FakeResponse) File(status int, path string) client.Response
File provides a mock function with given fields: status, path
func (*FakeResponse) Json ¶ added in v1.17.0
func (_m *FakeResponse) Json(status int, obj interface{}) client.Response
Json provides a mock function with given fields: status, obj
func (*FakeResponse) Make ¶ added in v1.17.0
Make provides a mock function with given fields: status, body, header
func (*FakeResponse) OK ¶ added in v1.17.0
func (_m *FakeResponse) OK() client.Response
OK provides a mock function with no fields
type FakeResponse_Expecter ¶ added in v1.17.0
type FakeResponse_Expecter struct {
// contains filtered or unexported fields
}
func (*FakeResponse_Expecter) File ¶ added in v1.17.0
func (_e *FakeResponse_Expecter) File(status interface{}, path interface{}) *FakeResponse_File_Call
File is a helper method to define mock.On call
- status int
- path string
func (*FakeResponse_Expecter) Json ¶ added in v1.17.0
func (_e *FakeResponse_Expecter) Json(status interface{}, obj interface{}) *FakeResponse_Json_Call
Json is a helper method to define mock.On call
- status int
- obj interface{}
func (*FakeResponse_Expecter) Make ¶ added in v1.17.0
func (_e *FakeResponse_Expecter) Make(status interface{}, body interface{}, header interface{}) *FakeResponse_Make_Call
Make is a helper method to define mock.On call
- status int
- body string
- header http.Header
func (*FakeResponse_Expecter) OK ¶ added in v1.17.0
func (_e *FakeResponse_Expecter) OK() *FakeResponse_OK_Call
OK is a helper method to define mock.On call
func (*FakeResponse_Expecter) Status ¶ added in v1.17.0
func (_e *FakeResponse_Expecter) Status(status interface{}) *FakeResponse_Status_Call
Status is a helper method to define mock.On call
- status int
func (*FakeResponse_Expecter) String ¶ added in v1.17.0
func (_e *FakeResponse_Expecter) String(status interface{}, body interface{}) *FakeResponse_String_Call
String is a helper method to define mock.On call
- status int
- body string
type FakeResponse_File_Call ¶ added in v1.17.0
FakeResponse_File_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'File'
func (*FakeResponse_File_Call) Return ¶ added in v1.17.0
func (_c *FakeResponse_File_Call) Return(_a0 client.Response) *FakeResponse_File_Call
func (*FakeResponse_File_Call) Run ¶ added in v1.17.0
func (_c *FakeResponse_File_Call) Run(run func(status int, path string)) *FakeResponse_File_Call
func (*FakeResponse_File_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeResponse_File_Call) RunAndReturn(run func(int, string) client.Response) *FakeResponse_File_Call
type FakeResponse_Json_Call ¶ added in v1.17.0
FakeResponse_Json_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Json'
func (*FakeResponse_Json_Call) Return ¶ added in v1.17.0
func (_c *FakeResponse_Json_Call) Return(_a0 client.Response) *FakeResponse_Json_Call
func (*FakeResponse_Json_Call) Run ¶ added in v1.17.0
func (_c *FakeResponse_Json_Call) Run(run func(status int, obj interface{})) *FakeResponse_Json_Call
func (*FakeResponse_Json_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeResponse_Json_Call) RunAndReturn(run func(int, interface{}) client.Response) *FakeResponse_Json_Call
type FakeResponse_Make_Call ¶ added in v1.17.0
FakeResponse_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'
func (*FakeResponse_Make_Call) Return ¶ added in v1.17.0
func (_c *FakeResponse_Make_Call) Return(_a0 client.Response) *FakeResponse_Make_Call
func (*FakeResponse_Make_Call) Run ¶ added in v1.17.0
func (_c *FakeResponse_Make_Call) Run(run func(status int, body string, header http.Header)) *FakeResponse_Make_Call
func (*FakeResponse_Make_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeResponse_Make_Call) RunAndReturn(run func(int, string, http.Header) client.Response) *FakeResponse_Make_Call
type FakeResponse_OK_Call ¶ added in v1.17.0
FakeResponse_OK_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OK'
func (*FakeResponse_OK_Call) Return ¶ added in v1.17.0
func (_c *FakeResponse_OK_Call) Return(_a0 client.Response) *FakeResponse_OK_Call
func (*FakeResponse_OK_Call) Run ¶ added in v1.17.0
func (_c *FakeResponse_OK_Call) Run(run func()) *FakeResponse_OK_Call
func (*FakeResponse_OK_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeResponse_OK_Call) RunAndReturn(run func() client.Response) *FakeResponse_OK_Call
type FakeResponse_Status_Call ¶ added in v1.17.0
FakeResponse_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*FakeResponse_Status_Call) Return ¶ added in v1.17.0
func (_c *FakeResponse_Status_Call) Return(_a0 client.Response) *FakeResponse_Status_Call
func (*FakeResponse_Status_Call) Run ¶ added in v1.17.0
func (_c *FakeResponse_Status_Call) Run(run func(status int)) *FakeResponse_Status_Call
func (*FakeResponse_Status_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeResponse_Status_Call) RunAndReturn(run func(int) client.Response) *FakeResponse_Status_Call
type FakeResponse_String_Call ¶ added in v1.17.0
FakeResponse_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*FakeResponse_String_Call) Return ¶ added in v1.17.0
func (_c *FakeResponse_String_Call) Return(_a0 client.Response) *FakeResponse_String_Call
func (*FakeResponse_String_Call) Run ¶ added in v1.17.0
func (_c *FakeResponse_String_Call) Run(run func(status int, body string)) *FakeResponse_String_Call
func (*FakeResponse_String_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeResponse_String_Call) RunAndReturn(run func(int, string) client.Response) *FakeResponse_String_Call
type FakeSequence ¶ added in v1.17.0
FakeSequence is an autogenerated mock type for the FakeSequence type
func NewFakeSequence ¶ added in v1.17.0
func NewFakeSequence(t interface {
mock.TestingT
Cleanup(func())
}) *FakeSequence
NewFakeSequence creates a new instance of FakeSequence. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FakeSequence) EXPECT ¶ added in v1.17.0
func (_m *FakeSequence) EXPECT() *FakeSequence_Expecter
func (*FakeSequence) Push ¶ added in v1.17.0
func (_m *FakeSequence) Push(response client.Response, count ...int) client.FakeSequence
Push provides a mock function with given fields: response, count
func (*FakeSequence) PushStatus ¶ added in v1.17.0
func (_m *FakeSequence) PushStatus(status int, count ...int) client.FakeSequence
PushStatus provides a mock function with given fields: status, count
func (*FakeSequence) PushString ¶ added in v1.17.0
func (_m *FakeSequence) PushString(status int, body string, count ...int) client.FakeSequence
PushString provides a mock function with given fields: status, body, count
func (*FakeSequence) WhenEmpty ¶ added in v1.17.0
func (_m *FakeSequence) WhenEmpty(response client.Response) client.FakeSequence
WhenEmpty provides a mock function with given fields: response
type FakeSequence_Expecter ¶ added in v1.17.0
type FakeSequence_Expecter struct {
// contains filtered or unexported fields
}
func (*FakeSequence_Expecter) Push ¶ added in v1.17.0
func (_e *FakeSequence_Expecter) Push(response interface{}, count ...interface{}) *FakeSequence_Push_Call
Push is a helper method to define mock.On call
- response client.Response
- count ...int
func (*FakeSequence_Expecter) PushStatus ¶ added in v1.17.0
func (_e *FakeSequence_Expecter) PushStatus(status interface{}, count ...interface{}) *FakeSequence_PushStatus_Call
PushStatus is a helper method to define mock.On call
- status int
- count ...int
func (*FakeSequence_Expecter) PushString ¶ added in v1.17.0
func (_e *FakeSequence_Expecter) PushString(status interface{}, body interface{}, count ...interface{}) *FakeSequence_PushString_Call
PushString is a helper method to define mock.On call
- status int
- body string
- count ...int
func (*FakeSequence_Expecter) WhenEmpty ¶ added in v1.17.0
func (_e *FakeSequence_Expecter) WhenEmpty(response interface{}) *FakeSequence_WhenEmpty_Call
WhenEmpty is a helper method to define mock.On call
- response client.Response
type FakeSequence_PushStatus_Call ¶ added in v1.17.0
FakeSequence_PushStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushStatus'
func (*FakeSequence_PushStatus_Call) Return ¶ added in v1.17.0
func (_c *FakeSequence_PushStatus_Call) Return(_a0 client.FakeSequence) *FakeSequence_PushStatus_Call
func (*FakeSequence_PushStatus_Call) Run ¶ added in v1.17.0
func (_c *FakeSequence_PushStatus_Call) Run(run func(status int, count ...int)) *FakeSequence_PushStatus_Call
func (*FakeSequence_PushStatus_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeSequence_PushStatus_Call) RunAndReturn(run func(int, ...int) client.FakeSequence) *FakeSequence_PushStatus_Call
type FakeSequence_PushString_Call ¶ added in v1.17.0
FakeSequence_PushString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushString'
func (*FakeSequence_PushString_Call) Return ¶ added in v1.17.0
func (_c *FakeSequence_PushString_Call) Return(_a0 client.FakeSequence) *FakeSequence_PushString_Call
func (*FakeSequence_PushString_Call) Run ¶ added in v1.17.0
func (_c *FakeSequence_PushString_Call) Run(run func(status int, body string, count ...int)) *FakeSequence_PushString_Call
func (*FakeSequence_PushString_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeSequence_PushString_Call) RunAndReturn(run func(int, string, ...int) client.FakeSequence) *FakeSequence_PushString_Call
type FakeSequence_Push_Call ¶ added in v1.17.0
FakeSequence_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'
func (*FakeSequence_Push_Call) Return ¶ added in v1.17.0
func (_c *FakeSequence_Push_Call) Return(_a0 client.FakeSequence) *FakeSequence_Push_Call
func (*FakeSequence_Push_Call) Run ¶ added in v1.17.0
func (_c *FakeSequence_Push_Call) Run(run func(response client.Response, count ...int)) *FakeSequence_Push_Call
func (*FakeSequence_Push_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeSequence_Push_Call) RunAndReturn(run func(client.Response, ...int) client.FakeSequence) *FakeSequence_Push_Call
type FakeSequence_WhenEmpty_Call ¶ added in v1.17.0
FakeSequence_WhenEmpty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhenEmpty'
func (*FakeSequence_WhenEmpty_Call) Return ¶ added in v1.17.0
func (_c *FakeSequence_WhenEmpty_Call) Return(_a0 client.FakeSequence) *FakeSequence_WhenEmpty_Call
func (*FakeSequence_WhenEmpty_Call) Run ¶ added in v1.17.0
func (_c *FakeSequence_WhenEmpty_Call) Run(run func(response client.Response)) *FakeSequence_WhenEmpty_Call
func (*FakeSequence_WhenEmpty_Call) RunAndReturn ¶ added in v1.17.0
func (_c *FakeSequence_WhenEmpty_Call) RunAndReturn(run func(client.Response) client.FakeSequence) *FakeSequence_WhenEmpty_Call
type Request ¶
Request is an autogenerated mock type for the Request type
func NewRequest ¶
NewRequest creates a new instance of Request. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Request) AcceptJSON ¶
AcceptJSON provides a mock function with no fields
func (*Request) ClientName ¶ added in v1.17.0
ClientName provides a mock function with no fields
func (*Request) EXPECT ¶
func (_m *Request) EXPECT() *Request_Expecter
func (*Request) FlushHeaders ¶
FlushHeaders provides a mock function with no fields
func (*Request) HttpClient ¶ added in v1.17.0
HttpClient provides a mock function with no fields
func (*Request) ReplaceHeaders ¶
ReplaceHeaders provides a mock function with given fields: headers
func (*Request) WithBasicAuth ¶
WithBasicAuth provides a mock function with given fields: username, password
func (*Request) WithContext ¶
WithContext provides a mock function with given fields: ctx
func (*Request) WithCookie ¶
WithCookie provides a mock function with given fields: cookie
func (*Request) WithCookies ¶
WithCookies provides a mock function with given fields: cookies
func (*Request) WithHeader ¶
WithHeader provides a mock function with given fields: key, value
func (*Request) WithHeaders ¶
WithHeaders provides a mock function with given fields: headers
func (*Request) WithQueryParameter ¶
WithQueryParameter provides a mock function with given fields: key, value
func (*Request) WithQueryParameters ¶
WithQueryParameters provides a mock function with given fields: params
func (*Request) WithQueryString ¶
WithQueryString provides a mock function with given fields: query
func (*Request) WithUrlParameter ¶
WithUrlParameter provides a mock function with given fields: key, value
func (*Request) WithUrlParameters ¶
WithUrlParameters provides a mock function with given fields: params
func (*Request) WithoutHeader ¶
WithoutHeader provides a mock function with given fields: key
func (*Request) WithoutToken ¶
WithoutToken provides a mock function with no fields
type Request_AcceptJSON_Call ¶
Request_AcceptJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AcceptJSON'
func (*Request_AcceptJSON_Call) Return ¶
func (_c *Request_AcceptJSON_Call) Return(_a0 client.Request) *Request_AcceptJSON_Call
func (*Request_AcceptJSON_Call) Run ¶
func (_c *Request_AcceptJSON_Call) Run(run func()) *Request_AcceptJSON_Call
func (*Request_AcceptJSON_Call) RunAndReturn ¶
func (_c *Request_AcceptJSON_Call) RunAndReturn(run func() client.Request) *Request_AcceptJSON_Call
type Request_Accept_Call ¶
Request_Accept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Accept'
func (*Request_Accept_Call) Return ¶
func (_c *Request_Accept_Call) Return(_a0 client.Request) *Request_Accept_Call
func (*Request_Accept_Call) Run ¶
func (_c *Request_Accept_Call) Run(run func(contentType string)) *Request_Accept_Call
func (*Request_Accept_Call) RunAndReturn ¶
func (_c *Request_Accept_Call) RunAndReturn(run func(string) client.Request) *Request_Accept_Call
type Request_AsForm_Call ¶
Request_AsForm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsForm'
func (*Request_AsForm_Call) Return ¶
func (_c *Request_AsForm_Call) Return(_a0 client.Request) *Request_AsForm_Call
func (*Request_AsForm_Call) Run ¶
func (_c *Request_AsForm_Call) Run(run func()) *Request_AsForm_Call
func (*Request_AsForm_Call) RunAndReturn ¶
func (_c *Request_AsForm_Call) RunAndReturn(run func() client.Request) *Request_AsForm_Call
type Request_BaseUrl_Call ¶ added in v1.17.0
Request_BaseUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BaseUrl'
func (*Request_BaseUrl_Call) Return ¶ added in v1.17.0
func (_c *Request_BaseUrl_Call) Return(_a0 client.Request) *Request_BaseUrl_Call
func (*Request_BaseUrl_Call) Run ¶ added in v1.17.0
func (_c *Request_BaseUrl_Call) Run(run func(url string)) *Request_BaseUrl_Call
func (*Request_BaseUrl_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Request_BaseUrl_Call) RunAndReturn(run func(string) client.Request) *Request_BaseUrl_Call
type Request_Body_Call ¶ added in v1.17.0
Request_Body_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Body'
func (*Request_Body_Call) Return ¶ added in v1.17.0
func (_c *Request_Body_Call) Return(_a0 string) *Request_Body_Call
func (*Request_Body_Call) Run ¶ added in v1.17.0
func (_c *Request_Body_Call) Run(run func()) *Request_Body_Call
func (*Request_Body_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Request_Body_Call) RunAndReturn(run func() string) *Request_Body_Call
type Request_ClientName_Call ¶ added in v1.17.0
Request_ClientName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClientName'
func (*Request_ClientName_Call) Return ¶ added in v1.17.0
func (_c *Request_ClientName_Call) Return(_a0 string) *Request_ClientName_Call
func (*Request_ClientName_Call) Run ¶ added in v1.17.0
func (_c *Request_ClientName_Call) Run(run func()) *Request_ClientName_Call
func (*Request_ClientName_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Request_ClientName_Call) RunAndReturn(run func() string) *Request_ClientName_Call
type Request_Clone_Call ¶
Request_Clone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clone'
func (*Request_Clone_Call) Return ¶
func (_c *Request_Clone_Call) Return(_a0 client.Request) *Request_Clone_Call
func (*Request_Clone_Call) Run ¶
func (_c *Request_Clone_Call) Run(run func()) *Request_Clone_Call
func (*Request_Clone_Call) RunAndReturn ¶
func (_c *Request_Clone_Call) RunAndReturn(run func() client.Request) *Request_Clone_Call
type Request_Delete_Call ¶
Request_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Request_Delete_Call) Return ¶
func (_c *Request_Delete_Call) Return(_a0 client.Response, _a1 error) *Request_Delete_Call
func (*Request_Delete_Call) Run ¶
func (_c *Request_Delete_Call) Run(run func(uri string, body io.Reader)) *Request_Delete_Call
func (*Request_Delete_Call) RunAndReturn ¶
func (_c *Request_Delete_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Delete_Call
type Request_Expecter ¶
type Request_Expecter struct {
// contains filtered or unexported fields
}
func (*Request_Expecter) Accept ¶
func (_e *Request_Expecter) Accept(contentType interface{}) *Request_Accept_Call
Accept is a helper method to define mock.On call
- contentType string
func (*Request_Expecter) AcceptJSON ¶
func (_e *Request_Expecter) AcceptJSON() *Request_AcceptJSON_Call
AcceptJSON is a helper method to define mock.On call
func (*Request_Expecter) AsForm ¶
func (_e *Request_Expecter) AsForm() *Request_AsForm_Call
AsForm is a helper method to define mock.On call
func (*Request_Expecter) BaseUrl ¶ added in v1.17.0
func (_e *Request_Expecter) BaseUrl(url interface{}) *Request_BaseUrl_Call
BaseUrl is a helper method to define mock.On call
- url string
func (*Request_Expecter) Body ¶ added in v1.17.0
func (_e *Request_Expecter) Body() *Request_Body_Call
Body is a helper method to define mock.On call
func (*Request_Expecter) ClientName ¶ added in v1.17.0
func (_e *Request_Expecter) ClientName() *Request_ClientName_Call
ClientName is a helper method to define mock.On call
func (*Request_Expecter) Clone ¶
func (_e *Request_Expecter) Clone() *Request_Clone_Call
Clone is a helper method to define mock.On call
func (*Request_Expecter) Delete ¶
func (_e *Request_Expecter) Delete(uri interface{}, body interface{}) *Request_Delete_Call
Delete is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Request_Expecter) FlushHeaders ¶
func (_e *Request_Expecter) FlushHeaders() *Request_FlushHeaders_Call
FlushHeaders is a helper method to define mock.On call
func (*Request_Expecter) Get ¶
func (_e *Request_Expecter) Get(uri interface{}) *Request_Get_Call
Get is a helper method to define mock.On call
- uri string
func (*Request_Expecter) Head ¶
func (_e *Request_Expecter) Head(uri interface{}) *Request_Head_Call
Head is a helper method to define mock.On call
- uri string
func (*Request_Expecter) Header ¶ added in v1.17.0
func (_e *Request_Expecter) Header(key interface{}) *Request_Header_Call
Header is a helper method to define mock.On call
- key string
func (*Request_Expecter) Headers ¶ added in v1.17.0
func (_e *Request_Expecter) Headers() *Request_Headers_Call
Headers is a helper method to define mock.On call
func (*Request_Expecter) HttpClient ¶ added in v1.17.0
func (_e *Request_Expecter) HttpClient() *Request_HttpClient_Call
HttpClient is a helper method to define mock.On call
func (*Request_Expecter) Input ¶ added in v1.17.0
func (_e *Request_Expecter) Input(key interface{}) *Request_Input_Call
Input is a helper method to define mock.On call
- key string
func (*Request_Expecter) Method ¶ added in v1.17.0
func (_e *Request_Expecter) Method() *Request_Method_Call
Method is a helper method to define mock.On call
func (*Request_Expecter) Options ¶
func (_e *Request_Expecter) Options(uri interface{}) *Request_Options_Call
Options is a helper method to define mock.On call
- uri string
func (*Request_Expecter) Patch ¶
func (_e *Request_Expecter) Patch(uri interface{}, body interface{}) *Request_Patch_Call
Patch is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Request_Expecter) Post ¶
func (_e *Request_Expecter) Post(uri interface{}, body interface{}) *Request_Post_Call
Post is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Request_Expecter) Put ¶
func (_e *Request_Expecter) Put(uri interface{}, body interface{}) *Request_Put_Call
Put is a helper method to define mock.On call
- uri string
- body io.Reader
func (*Request_Expecter) ReplaceHeaders ¶
func (_e *Request_Expecter) ReplaceHeaders(headers interface{}) *Request_ReplaceHeaders_Call
ReplaceHeaders is a helper method to define mock.On call
- headers map[string]string
func (*Request_Expecter) Url ¶ added in v1.17.0
func (_e *Request_Expecter) Url() *Request_Url_Call
Url is a helper method to define mock.On call
func (*Request_Expecter) WithBasicAuth ¶
func (_e *Request_Expecter) WithBasicAuth(username interface{}, password interface{}) *Request_WithBasicAuth_Call
WithBasicAuth is a helper method to define mock.On call
- username string
- password string
func (*Request_Expecter) WithContext ¶
func (_e *Request_Expecter) WithContext(ctx interface{}) *Request_WithContext_Call
WithContext is a helper method to define mock.On call
- ctx context.Context
func (*Request_Expecter) WithCookie ¶
func (_e *Request_Expecter) WithCookie(cookie interface{}) *Request_WithCookie_Call
WithCookie is a helper method to define mock.On call
- cookie *http.Cookie
func (*Request_Expecter) WithCookies ¶
func (_e *Request_Expecter) WithCookies(cookies interface{}) *Request_WithCookies_Call
WithCookies is a helper method to define mock.On call
- cookies []*http.Cookie
func (*Request_Expecter) WithHeader ¶
func (_e *Request_Expecter) WithHeader(key interface{}, value interface{}) *Request_WithHeader_Call
WithHeader is a helper method to define mock.On call
- key string
- value string
func (*Request_Expecter) WithHeaders ¶
func (_e *Request_Expecter) WithHeaders(headers interface{}) *Request_WithHeaders_Call
WithHeaders is a helper method to define mock.On call
- headers map[string]string
func (*Request_Expecter) WithQueryParameter ¶
func (_e *Request_Expecter) WithQueryParameter(key interface{}, value interface{}) *Request_WithQueryParameter_Call
WithQueryParameter is a helper method to define mock.On call
- key string
- value string
func (*Request_Expecter) WithQueryParameters ¶
func (_e *Request_Expecter) WithQueryParameters(params interface{}) *Request_WithQueryParameters_Call
WithQueryParameters is a helper method to define mock.On call
- params map[string]string
func (*Request_Expecter) WithQueryString ¶
func (_e *Request_Expecter) WithQueryString(query interface{}) *Request_WithQueryString_Call
WithQueryString is a helper method to define mock.On call
- query string
func (*Request_Expecter) WithToken ¶
func (_e *Request_Expecter) WithToken(token interface{}, ttype ...interface{}) *Request_WithToken_Call
WithToken is a helper method to define mock.On call
- token string
- ttype ...string
func (*Request_Expecter) WithUrlParameter ¶
func (_e *Request_Expecter) WithUrlParameter(key interface{}, value interface{}) *Request_WithUrlParameter_Call
WithUrlParameter is a helper method to define mock.On call
- key string
- value string
func (*Request_Expecter) WithUrlParameters ¶
func (_e *Request_Expecter) WithUrlParameters(params interface{}) *Request_WithUrlParameters_Call
WithUrlParameters is a helper method to define mock.On call
- params map[string]string
func (*Request_Expecter) WithoutHeader ¶
func (_e *Request_Expecter) WithoutHeader(key interface{}) *Request_WithoutHeader_Call
WithoutHeader is a helper method to define mock.On call
- key string
func (*Request_Expecter) WithoutToken ¶
func (_e *Request_Expecter) WithoutToken() *Request_WithoutToken_Call
WithoutToken is a helper method to define mock.On call
type Request_FlushHeaders_Call ¶
Request_FlushHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlushHeaders'
func (*Request_FlushHeaders_Call) Return ¶
func (_c *Request_FlushHeaders_Call) Return(_a0 client.Request) *Request_FlushHeaders_Call
func (*Request_FlushHeaders_Call) Run ¶
func (_c *Request_FlushHeaders_Call) Run(run func()) *Request_FlushHeaders_Call
func (*Request_FlushHeaders_Call) RunAndReturn ¶
func (_c *Request_FlushHeaders_Call) RunAndReturn(run func() client.Request) *Request_FlushHeaders_Call
type Request_Get_Call ¶
Request_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Request_Get_Call) Return ¶
func (_c *Request_Get_Call) Return(_a0 client.Response, _a1 error) *Request_Get_Call
func (*Request_Get_Call) Run ¶
func (_c *Request_Get_Call) Run(run func(uri string)) *Request_Get_Call
func (*Request_Get_Call) RunAndReturn ¶
func (_c *Request_Get_Call) RunAndReturn(run func(string) (client.Response, error)) *Request_Get_Call
type Request_Head_Call ¶
Request_Head_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Head'
func (*Request_Head_Call) Return ¶
func (_c *Request_Head_Call) Return(_a0 client.Response, _a1 error) *Request_Head_Call
func (*Request_Head_Call) Run ¶
func (_c *Request_Head_Call) Run(run func(uri string)) *Request_Head_Call
func (*Request_Head_Call) RunAndReturn ¶
func (_c *Request_Head_Call) RunAndReturn(run func(string) (client.Response, error)) *Request_Head_Call
type Request_Header_Call ¶ added in v1.17.0
Request_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*Request_Header_Call) Return ¶ added in v1.17.0
func (_c *Request_Header_Call) Return(_a0 string) *Request_Header_Call
func (*Request_Header_Call) Run ¶ added in v1.17.0
func (_c *Request_Header_Call) Run(run func(key string)) *Request_Header_Call
func (*Request_Header_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Request_Header_Call) RunAndReturn(run func(string) string) *Request_Header_Call
type Request_Headers_Call ¶ added in v1.17.0
Request_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'
func (*Request_Headers_Call) Return ¶ added in v1.17.0
func (_c *Request_Headers_Call) Return(_a0 http.Header) *Request_Headers_Call
func (*Request_Headers_Call) Run ¶ added in v1.17.0
func (_c *Request_Headers_Call) Run(run func()) *Request_Headers_Call
func (*Request_Headers_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Request_Headers_Call) RunAndReturn(run func() http.Header) *Request_Headers_Call
type Request_HttpClient_Call ¶ added in v1.17.0
Request_HttpClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HttpClient'
func (*Request_HttpClient_Call) Return ¶ added in v1.17.0
func (_c *Request_HttpClient_Call) Return(_a0 *http.Client) *Request_HttpClient_Call
func (*Request_HttpClient_Call) Run ¶ added in v1.17.0
func (_c *Request_HttpClient_Call) Run(run func()) *Request_HttpClient_Call
func (*Request_HttpClient_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Request_HttpClient_Call) RunAndReturn(run func() *http.Client) *Request_HttpClient_Call
type Request_Input_Call ¶ added in v1.17.0
Request_Input_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Input'
func (*Request_Input_Call) Return ¶ added in v1.17.0
func (_c *Request_Input_Call) Return(_a0 interface{}) *Request_Input_Call
func (*Request_Input_Call) Run ¶ added in v1.17.0
func (_c *Request_Input_Call) Run(run func(key string)) *Request_Input_Call
func (*Request_Input_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Request_Input_Call) RunAndReturn(run func(string) interface{}) *Request_Input_Call
type Request_Method_Call ¶ added in v1.17.0
Request_Method_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Method'
func (*Request_Method_Call) Return ¶ added in v1.17.0
func (_c *Request_Method_Call) Return(_a0 string) *Request_Method_Call
func (*Request_Method_Call) Run ¶ added in v1.17.0
func (_c *Request_Method_Call) Run(run func()) *Request_Method_Call
func (*Request_Method_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Request_Method_Call) RunAndReturn(run func() string) *Request_Method_Call
type Request_Options_Call ¶
Request_Options_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Options'
func (*Request_Options_Call) Return ¶
func (_c *Request_Options_Call) Return(_a0 client.Response, _a1 error) *Request_Options_Call
func (*Request_Options_Call) Run ¶
func (_c *Request_Options_Call) Run(run func(uri string)) *Request_Options_Call
func (*Request_Options_Call) RunAndReturn ¶
func (_c *Request_Options_Call) RunAndReturn(run func(string) (client.Response, error)) *Request_Options_Call
type Request_Patch_Call ¶
Request_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*Request_Patch_Call) Return ¶
func (_c *Request_Patch_Call) Return(_a0 client.Response, _a1 error) *Request_Patch_Call
func (*Request_Patch_Call) Run ¶
func (_c *Request_Patch_Call) Run(run func(uri string, body io.Reader)) *Request_Patch_Call
func (*Request_Patch_Call) RunAndReturn ¶
func (_c *Request_Patch_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Patch_Call
type Request_Post_Call ¶
Request_Post_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Post'
func (*Request_Post_Call) Return ¶
func (_c *Request_Post_Call) Return(_a0 client.Response, _a1 error) *Request_Post_Call
func (*Request_Post_Call) Run ¶
func (_c *Request_Post_Call) Run(run func(uri string, body io.Reader)) *Request_Post_Call
func (*Request_Post_Call) RunAndReturn ¶
func (_c *Request_Post_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Post_Call
type Request_Put_Call ¶
Request_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*Request_Put_Call) Return ¶
func (_c *Request_Put_Call) Return(_a0 client.Response, _a1 error) *Request_Put_Call
func (*Request_Put_Call) Run ¶
func (_c *Request_Put_Call) Run(run func(uri string, body io.Reader)) *Request_Put_Call
func (*Request_Put_Call) RunAndReturn ¶
func (_c *Request_Put_Call) RunAndReturn(run func(string, io.Reader) (client.Response, error)) *Request_Put_Call
type Request_ReplaceHeaders_Call ¶
Request_ReplaceHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplaceHeaders'
func (*Request_ReplaceHeaders_Call) Return ¶
func (_c *Request_ReplaceHeaders_Call) Return(_a0 client.Request) *Request_ReplaceHeaders_Call
func (*Request_ReplaceHeaders_Call) Run ¶
func (_c *Request_ReplaceHeaders_Call) Run(run func(headers map[string]string)) *Request_ReplaceHeaders_Call
func (*Request_ReplaceHeaders_Call) RunAndReturn ¶
func (_c *Request_ReplaceHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_ReplaceHeaders_Call
type Request_Url_Call ¶ added in v1.17.0
Request_Url_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Url'
func (*Request_Url_Call) Return ¶ added in v1.17.0
func (_c *Request_Url_Call) Return(_a0 string) *Request_Url_Call
func (*Request_Url_Call) Run ¶ added in v1.17.0
func (_c *Request_Url_Call) Run(run func()) *Request_Url_Call
func (*Request_Url_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Request_Url_Call) RunAndReturn(run func() string) *Request_Url_Call
type Request_WithBasicAuth_Call ¶
Request_WithBasicAuth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithBasicAuth'
func (*Request_WithBasicAuth_Call) Return ¶
func (_c *Request_WithBasicAuth_Call) Return(_a0 client.Request) *Request_WithBasicAuth_Call
func (*Request_WithBasicAuth_Call) Run ¶
func (_c *Request_WithBasicAuth_Call) Run(run func(username string, password string)) *Request_WithBasicAuth_Call
func (*Request_WithBasicAuth_Call) RunAndReturn ¶
func (_c *Request_WithBasicAuth_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithBasicAuth_Call
type Request_WithContext_Call ¶
Request_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'
func (*Request_WithContext_Call) Return ¶
func (_c *Request_WithContext_Call) Return(_a0 client.Request) *Request_WithContext_Call
func (*Request_WithContext_Call) Run ¶
func (_c *Request_WithContext_Call) Run(run func(ctx context.Context)) *Request_WithContext_Call
func (*Request_WithContext_Call) RunAndReturn ¶
func (_c *Request_WithContext_Call) RunAndReturn(run func(context.Context) client.Request) *Request_WithContext_Call
type Request_WithCookie_Call ¶
Request_WithCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithCookie'
func (*Request_WithCookie_Call) Return ¶
func (_c *Request_WithCookie_Call) Return(_a0 client.Request) *Request_WithCookie_Call
func (*Request_WithCookie_Call) Run ¶
func (_c *Request_WithCookie_Call) Run(run func(cookie *http.Cookie)) *Request_WithCookie_Call
func (*Request_WithCookie_Call) RunAndReturn ¶
func (_c *Request_WithCookie_Call) RunAndReturn(run func(*http.Cookie) client.Request) *Request_WithCookie_Call
type Request_WithCookies_Call ¶
Request_WithCookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithCookies'
func (*Request_WithCookies_Call) Return ¶
func (_c *Request_WithCookies_Call) Return(_a0 client.Request) *Request_WithCookies_Call
func (*Request_WithCookies_Call) Run ¶
func (_c *Request_WithCookies_Call) Run(run func(cookies []*http.Cookie)) *Request_WithCookies_Call
func (*Request_WithCookies_Call) RunAndReturn ¶
func (_c *Request_WithCookies_Call) RunAndReturn(run func([]*http.Cookie) client.Request) *Request_WithCookies_Call
type Request_WithHeader_Call ¶
Request_WithHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithHeader'
func (*Request_WithHeader_Call) Return ¶
func (_c *Request_WithHeader_Call) Return(_a0 client.Request) *Request_WithHeader_Call
func (*Request_WithHeader_Call) Run ¶
func (_c *Request_WithHeader_Call) Run(run func(key string, value string)) *Request_WithHeader_Call
func (*Request_WithHeader_Call) RunAndReturn ¶
func (_c *Request_WithHeader_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithHeader_Call
type Request_WithHeaders_Call ¶
Request_WithHeaders_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithHeaders'
func (*Request_WithHeaders_Call) Return ¶
func (_c *Request_WithHeaders_Call) Return(_a0 client.Request) *Request_WithHeaders_Call
func (*Request_WithHeaders_Call) Run ¶
func (_c *Request_WithHeaders_Call) Run(run func(headers map[string]string)) *Request_WithHeaders_Call
func (*Request_WithHeaders_Call) RunAndReturn ¶
func (_c *Request_WithHeaders_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithHeaders_Call
type Request_WithQueryParameter_Call ¶
Request_WithQueryParameter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryParameter'
func (*Request_WithQueryParameter_Call) Return ¶
func (_c *Request_WithQueryParameter_Call) Return(_a0 client.Request) *Request_WithQueryParameter_Call
func (*Request_WithQueryParameter_Call) Run ¶
func (_c *Request_WithQueryParameter_Call) Run(run func(key string, value string)) *Request_WithQueryParameter_Call
func (*Request_WithQueryParameter_Call) RunAndReturn ¶
func (_c *Request_WithQueryParameter_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithQueryParameter_Call
type Request_WithQueryParameters_Call ¶
Request_WithQueryParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryParameters'
func (*Request_WithQueryParameters_Call) Return ¶
func (_c *Request_WithQueryParameters_Call) Return(_a0 client.Request) *Request_WithQueryParameters_Call
func (*Request_WithQueryParameters_Call) Run ¶
func (_c *Request_WithQueryParameters_Call) Run(run func(params map[string]string)) *Request_WithQueryParameters_Call
func (*Request_WithQueryParameters_Call) RunAndReturn ¶
func (_c *Request_WithQueryParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithQueryParameters_Call
type Request_WithQueryString_Call ¶
Request_WithQueryString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithQueryString'
func (*Request_WithQueryString_Call) Return ¶
func (_c *Request_WithQueryString_Call) Return(_a0 client.Request) *Request_WithQueryString_Call
func (*Request_WithQueryString_Call) Run ¶
func (_c *Request_WithQueryString_Call) Run(run func(query string)) *Request_WithQueryString_Call
func (*Request_WithQueryString_Call) RunAndReturn ¶
func (_c *Request_WithQueryString_Call) RunAndReturn(run func(string) client.Request) *Request_WithQueryString_Call
type Request_WithToken_Call ¶
Request_WithToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithToken'
func (*Request_WithToken_Call) Return ¶
func (_c *Request_WithToken_Call) Return(_a0 client.Request) *Request_WithToken_Call
func (*Request_WithToken_Call) Run ¶
func (_c *Request_WithToken_Call) Run(run func(token string, ttype ...string)) *Request_WithToken_Call
func (*Request_WithToken_Call) RunAndReturn ¶
func (_c *Request_WithToken_Call) RunAndReturn(run func(string, ...string) client.Request) *Request_WithToken_Call
type Request_WithUrlParameter_Call ¶
Request_WithUrlParameter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithUrlParameter'
func (*Request_WithUrlParameter_Call) Return ¶
func (_c *Request_WithUrlParameter_Call) Return(_a0 client.Request) *Request_WithUrlParameter_Call
func (*Request_WithUrlParameter_Call) Run ¶
func (_c *Request_WithUrlParameter_Call) Run(run func(key string, value string)) *Request_WithUrlParameter_Call
func (*Request_WithUrlParameter_Call) RunAndReturn ¶
func (_c *Request_WithUrlParameter_Call) RunAndReturn(run func(string, string) client.Request) *Request_WithUrlParameter_Call
type Request_WithUrlParameters_Call ¶
Request_WithUrlParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithUrlParameters'
func (*Request_WithUrlParameters_Call) Return ¶
func (_c *Request_WithUrlParameters_Call) Return(_a0 client.Request) *Request_WithUrlParameters_Call
func (*Request_WithUrlParameters_Call) Run ¶
func (_c *Request_WithUrlParameters_Call) Run(run func(params map[string]string)) *Request_WithUrlParameters_Call
func (*Request_WithUrlParameters_Call) RunAndReturn ¶
func (_c *Request_WithUrlParameters_Call) RunAndReturn(run func(map[string]string) client.Request) *Request_WithUrlParameters_Call
type Request_WithoutHeader_Call ¶
Request_WithoutHeader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutHeader'
func (*Request_WithoutHeader_Call) Return ¶
func (_c *Request_WithoutHeader_Call) Return(_a0 client.Request) *Request_WithoutHeader_Call
func (*Request_WithoutHeader_Call) Run ¶
func (_c *Request_WithoutHeader_Call) Run(run func(key string)) *Request_WithoutHeader_Call
func (*Request_WithoutHeader_Call) RunAndReturn ¶
func (_c *Request_WithoutHeader_Call) RunAndReturn(run func(string) client.Request) *Request_WithoutHeader_Call
type Request_WithoutToken_Call ¶
Request_WithoutToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutToken'
func (*Request_WithoutToken_Call) Return ¶
func (_c *Request_WithoutToken_Call) Return(_a0 client.Request) *Request_WithoutToken_Call
func (*Request_WithoutToken_Call) Run ¶
func (_c *Request_WithoutToken_Call) Run(run func()) *Request_WithoutToken_Call
func (*Request_WithoutToken_Call) RunAndReturn ¶
func (_c *Request_WithoutToken_Call) RunAndReturn(run func() client.Request) *Request_WithoutToken_Call
type Response ¶
Response is an autogenerated mock type for the Response type
func NewResponse ¶
NewResponse creates a new instance of Response. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Response) BadRequest ¶
BadRequest provides a mock function with no fields
func (*Response) ClientError ¶
ClientError provides a mock function with no fields
func (*Response) EXPECT ¶
func (_m *Response) EXPECT() *Response_Expecter
func (*Response) MovedPermanently ¶
MovedPermanently provides a mock function with no fields
func (*Response) PaymentRequired ¶
PaymentRequired provides a mock function with no fields
func (*Response) RequestTimeout ¶
RequestTimeout provides a mock function with no fields
func (*Response) ServerError ¶
ServerError provides a mock function with no fields
func (*Response) Stream ¶ added in v1.17.0
func (_m *Response) Stream() (io.ReadCloser, error)
Stream provides a mock function with no fields
func (*Response) Successful ¶
Successful provides a mock function with no fields
func (*Response) TooManyRequests ¶
TooManyRequests provides a mock function with no fields
func (*Response) Unauthorized ¶
Unauthorized provides a mock function with no fields
func (*Response) UnprocessableEntity ¶
UnprocessableEntity provides a mock function with no fields
type Response_Accepted_Call ¶
Response_Accepted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Accepted'
func (*Response_Accepted_Call) Return ¶
func (_c *Response_Accepted_Call) Return(_a0 bool) *Response_Accepted_Call
func (*Response_Accepted_Call) Run ¶
func (_c *Response_Accepted_Call) Run(run func()) *Response_Accepted_Call
func (*Response_Accepted_Call) RunAndReturn ¶
func (_c *Response_Accepted_Call) RunAndReturn(run func() bool) *Response_Accepted_Call
type Response_BadRequest_Call ¶
Response_BadRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BadRequest'
func (*Response_BadRequest_Call) Return ¶
func (_c *Response_BadRequest_Call) Return(_a0 bool) *Response_BadRequest_Call
func (*Response_BadRequest_Call) Run ¶
func (_c *Response_BadRequest_Call) Run(run func()) *Response_BadRequest_Call
func (*Response_BadRequest_Call) RunAndReturn ¶
func (_c *Response_BadRequest_Call) RunAndReturn(run func() bool) *Response_BadRequest_Call
type Response_Bind_Call ¶ added in v1.17.0
Response_Bind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Bind'
func (*Response_Bind_Call) Return ¶ added in v1.17.0
func (_c *Response_Bind_Call) Return(_a0 error) *Response_Bind_Call
func (*Response_Bind_Call) Run ¶ added in v1.17.0
func (_c *Response_Bind_Call) Run(run func(value interface{})) *Response_Bind_Call
func (*Response_Bind_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Response_Bind_Call) RunAndReturn(run func(interface{}) error) *Response_Bind_Call
type Response_Body_Call ¶
Response_Body_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Body'
func (*Response_Body_Call) Return ¶
func (_c *Response_Body_Call) Return(_a0 string, _a1 error) *Response_Body_Call
func (*Response_Body_Call) Run ¶
func (_c *Response_Body_Call) Run(run func()) *Response_Body_Call
func (*Response_Body_Call) RunAndReturn ¶
func (_c *Response_Body_Call) RunAndReturn(run func() (string, error)) *Response_Body_Call
type Response_ClientError_Call ¶
Response_ClientError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClientError'
func (*Response_ClientError_Call) Return ¶
func (_c *Response_ClientError_Call) Return(_a0 bool) *Response_ClientError_Call
func (*Response_ClientError_Call) Run ¶
func (_c *Response_ClientError_Call) Run(run func()) *Response_ClientError_Call
func (*Response_ClientError_Call) RunAndReturn ¶
func (_c *Response_ClientError_Call) RunAndReturn(run func() bool) *Response_ClientError_Call
type Response_Conflict_Call ¶
Response_Conflict_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Conflict'
func (*Response_Conflict_Call) Return ¶
func (_c *Response_Conflict_Call) Return(_a0 bool) *Response_Conflict_Call
func (*Response_Conflict_Call) Run ¶
func (_c *Response_Conflict_Call) Run(run func()) *Response_Conflict_Call
func (*Response_Conflict_Call) RunAndReturn ¶
func (_c *Response_Conflict_Call) RunAndReturn(run func() bool) *Response_Conflict_Call
type Response_Cookie_Call ¶
Response_Cookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookie'
func (*Response_Cookie_Call) Return ¶
func (_c *Response_Cookie_Call) Return(_a0 *http.Cookie) *Response_Cookie_Call
func (*Response_Cookie_Call) Run ¶
func (_c *Response_Cookie_Call) Run(run func(name string)) *Response_Cookie_Call
func (*Response_Cookie_Call) RunAndReturn ¶
func (_c *Response_Cookie_Call) RunAndReturn(run func(string) *http.Cookie) *Response_Cookie_Call
type Response_Cookies_Call ¶
Response_Cookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookies'
func (*Response_Cookies_Call) Return ¶
func (_c *Response_Cookies_Call) Return(_a0 []*http.Cookie) *Response_Cookies_Call
func (*Response_Cookies_Call) Run ¶
func (_c *Response_Cookies_Call) Run(run func()) *Response_Cookies_Call
func (*Response_Cookies_Call) RunAndReturn ¶
func (_c *Response_Cookies_Call) RunAndReturn(run func() []*http.Cookie) *Response_Cookies_Call
type Response_Created_Call ¶
Response_Created_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Created'
func (*Response_Created_Call) Return ¶
func (_c *Response_Created_Call) Return(_a0 bool) *Response_Created_Call
func (*Response_Created_Call) Run ¶
func (_c *Response_Created_Call) Run(run func()) *Response_Created_Call
func (*Response_Created_Call) RunAndReturn ¶
func (_c *Response_Created_Call) RunAndReturn(run func() bool) *Response_Created_Call
type Response_Expecter ¶
type Response_Expecter struct {
// contains filtered or unexported fields
}
func (*Response_Expecter) Accepted ¶
func (_e *Response_Expecter) Accepted() *Response_Accepted_Call
Accepted is a helper method to define mock.On call
func (*Response_Expecter) BadRequest ¶
func (_e *Response_Expecter) BadRequest() *Response_BadRequest_Call
BadRequest is a helper method to define mock.On call
func (*Response_Expecter) Bind ¶ added in v1.17.0
func (_e *Response_Expecter) Bind(value interface{}) *Response_Bind_Call
Bind is a helper method to define mock.On call
- value interface{}
func (*Response_Expecter) Body ¶
func (_e *Response_Expecter) Body() *Response_Body_Call
Body is a helper method to define mock.On call
func (*Response_Expecter) ClientError ¶
func (_e *Response_Expecter) ClientError() *Response_ClientError_Call
ClientError is a helper method to define mock.On call
func (*Response_Expecter) Conflict ¶
func (_e *Response_Expecter) Conflict() *Response_Conflict_Call
Conflict is a helper method to define mock.On call
func (*Response_Expecter) Cookie ¶
func (_e *Response_Expecter) Cookie(name interface{}) *Response_Cookie_Call
Cookie is a helper method to define mock.On call
- name string
func (*Response_Expecter) Cookies ¶
func (_e *Response_Expecter) Cookies() *Response_Cookies_Call
Cookies is a helper method to define mock.On call
func (*Response_Expecter) Created ¶
func (_e *Response_Expecter) Created() *Response_Created_Call
Created is a helper method to define mock.On call
func (*Response_Expecter) Failed ¶
func (_e *Response_Expecter) Failed() *Response_Failed_Call
Failed is a helper method to define mock.On call
func (*Response_Expecter) Forbidden ¶
func (_e *Response_Expecter) Forbidden() *Response_Forbidden_Call
Forbidden is a helper method to define mock.On call
func (*Response_Expecter) Found ¶
func (_e *Response_Expecter) Found() *Response_Found_Call
Found is a helper method to define mock.On call
func (*Response_Expecter) Header ¶
func (_e *Response_Expecter) Header(name interface{}) *Response_Header_Call
Header is a helper method to define mock.On call
- name string
func (*Response_Expecter) Headers ¶
func (_e *Response_Expecter) Headers() *Response_Headers_Call
Headers is a helper method to define mock.On call
func (*Response_Expecter) Json ¶
func (_e *Response_Expecter) Json() *Response_Json_Call
Json is a helper method to define mock.On call
func (*Response_Expecter) MovedPermanently ¶
func (_e *Response_Expecter) MovedPermanently() *Response_MovedPermanently_Call
MovedPermanently is a helper method to define mock.On call
func (*Response_Expecter) NoContent ¶
func (_e *Response_Expecter) NoContent() *Response_NoContent_Call
NoContent is a helper method to define mock.On call
func (*Response_Expecter) NotFound ¶
func (_e *Response_Expecter) NotFound() *Response_NotFound_Call
NotFound is a helper method to define mock.On call
func (*Response_Expecter) OK ¶
func (_e *Response_Expecter) OK() *Response_OK_Call
OK is a helper method to define mock.On call
func (*Response_Expecter) Origin ¶ added in v1.17.0
func (_e *Response_Expecter) Origin() *Response_Origin_Call
Origin is a helper method to define mock.On call
func (*Response_Expecter) PaymentRequired ¶
func (_e *Response_Expecter) PaymentRequired() *Response_PaymentRequired_Call
PaymentRequired is a helper method to define mock.On call
func (*Response_Expecter) Redirect ¶
func (_e *Response_Expecter) Redirect() *Response_Redirect_Call
Redirect is a helper method to define mock.On call
func (*Response_Expecter) RequestTimeout ¶
func (_e *Response_Expecter) RequestTimeout() *Response_RequestTimeout_Call
RequestTimeout is a helper method to define mock.On call
func (*Response_Expecter) ServerError ¶
func (_e *Response_Expecter) ServerError() *Response_ServerError_Call
ServerError is a helper method to define mock.On call
func (*Response_Expecter) Status ¶
func (_e *Response_Expecter) Status() *Response_Status_Call
Status is a helper method to define mock.On call
func (*Response_Expecter) Stream ¶ added in v1.17.0
func (_e *Response_Expecter) Stream() *Response_Stream_Call
Stream is a helper method to define mock.On call
func (*Response_Expecter) Successful ¶
func (_e *Response_Expecter) Successful() *Response_Successful_Call
Successful is a helper method to define mock.On call
func (*Response_Expecter) TooManyRequests ¶
func (_e *Response_Expecter) TooManyRequests() *Response_TooManyRequests_Call
TooManyRequests is a helper method to define mock.On call
func (*Response_Expecter) Unauthorized ¶
func (_e *Response_Expecter) Unauthorized() *Response_Unauthorized_Call
Unauthorized is a helper method to define mock.On call
func (*Response_Expecter) UnprocessableEntity ¶
func (_e *Response_Expecter) UnprocessableEntity() *Response_UnprocessableEntity_Call
UnprocessableEntity is a helper method to define mock.On call
type Response_Failed_Call ¶
Response_Failed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Failed'
func (*Response_Failed_Call) Return ¶
func (_c *Response_Failed_Call) Return(_a0 bool) *Response_Failed_Call
func (*Response_Failed_Call) Run ¶
func (_c *Response_Failed_Call) Run(run func()) *Response_Failed_Call
func (*Response_Failed_Call) RunAndReturn ¶
func (_c *Response_Failed_Call) RunAndReturn(run func() bool) *Response_Failed_Call
type Response_Forbidden_Call ¶
Response_Forbidden_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Forbidden'
func (*Response_Forbidden_Call) Return ¶
func (_c *Response_Forbidden_Call) Return(_a0 bool) *Response_Forbidden_Call
func (*Response_Forbidden_Call) Run ¶
func (_c *Response_Forbidden_Call) Run(run func()) *Response_Forbidden_Call
func (*Response_Forbidden_Call) RunAndReturn ¶
func (_c *Response_Forbidden_Call) RunAndReturn(run func() bool) *Response_Forbidden_Call
type Response_Found_Call ¶
Response_Found_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Found'
func (*Response_Found_Call) Return ¶
func (_c *Response_Found_Call) Return(_a0 bool) *Response_Found_Call
func (*Response_Found_Call) Run ¶
func (_c *Response_Found_Call) Run(run func()) *Response_Found_Call
func (*Response_Found_Call) RunAndReturn ¶
func (_c *Response_Found_Call) RunAndReturn(run func() bool) *Response_Found_Call
type Response_Header_Call ¶
Response_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*Response_Header_Call) Return ¶
func (_c *Response_Header_Call) Return(_a0 string) *Response_Header_Call
func (*Response_Header_Call) Run ¶
func (_c *Response_Header_Call) Run(run func(name string)) *Response_Header_Call
func (*Response_Header_Call) RunAndReturn ¶
func (_c *Response_Header_Call) RunAndReturn(run func(string) string) *Response_Header_Call
type Response_Headers_Call ¶
Response_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'
func (*Response_Headers_Call) Return ¶
func (_c *Response_Headers_Call) Return(_a0 http.Header) *Response_Headers_Call
func (*Response_Headers_Call) Run ¶
func (_c *Response_Headers_Call) Run(run func()) *Response_Headers_Call
func (*Response_Headers_Call) RunAndReturn ¶
func (_c *Response_Headers_Call) RunAndReturn(run func() http.Header) *Response_Headers_Call
type Response_Json_Call ¶
Response_Json_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Json'
func (*Response_Json_Call) Return ¶
func (_c *Response_Json_Call) Return(_a0 map[string]interface{}, _a1 error) *Response_Json_Call
func (*Response_Json_Call) Run ¶
func (_c *Response_Json_Call) Run(run func()) *Response_Json_Call
func (*Response_Json_Call) RunAndReturn ¶
func (_c *Response_Json_Call) RunAndReturn(run func() (map[string]interface{}, error)) *Response_Json_Call
type Response_MovedPermanently_Call ¶
Response_MovedPermanently_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MovedPermanently'
func (*Response_MovedPermanently_Call) Return ¶
func (_c *Response_MovedPermanently_Call) Return(_a0 bool) *Response_MovedPermanently_Call
func (*Response_MovedPermanently_Call) Run ¶
func (_c *Response_MovedPermanently_Call) Run(run func()) *Response_MovedPermanently_Call
func (*Response_MovedPermanently_Call) RunAndReturn ¶
func (_c *Response_MovedPermanently_Call) RunAndReturn(run func() bool) *Response_MovedPermanently_Call
type Response_NoContent_Call ¶
Response_NoContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NoContent'
func (*Response_NoContent_Call) Return ¶
func (_c *Response_NoContent_Call) Return(_a0 bool) *Response_NoContent_Call
func (*Response_NoContent_Call) Run ¶
func (_c *Response_NoContent_Call) Run(run func()) *Response_NoContent_Call
func (*Response_NoContent_Call) RunAndReturn ¶
func (_c *Response_NoContent_Call) RunAndReturn(run func() bool) *Response_NoContent_Call
type Response_NotFound_Call ¶
Response_NotFound_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NotFound'
func (*Response_NotFound_Call) Return ¶
func (_c *Response_NotFound_Call) Return(_a0 bool) *Response_NotFound_Call
func (*Response_NotFound_Call) Run ¶
func (_c *Response_NotFound_Call) Run(run func()) *Response_NotFound_Call
func (*Response_NotFound_Call) RunAndReturn ¶
func (_c *Response_NotFound_Call) RunAndReturn(run func() bool) *Response_NotFound_Call
type Response_OK_Call ¶
Response_OK_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OK'
func (*Response_OK_Call) Return ¶
func (_c *Response_OK_Call) Return(_a0 bool) *Response_OK_Call
func (*Response_OK_Call) Run ¶
func (_c *Response_OK_Call) Run(run func()) *Response_OK_Call
func (*Response_OK_Call) RunAndReturn ¶
func (_c *Response_OK_Call) RunAndReturn(run func() bool) *Response_OK_Call
type Response_Origin_Call ¶ added in v1.17.0
Response_Origin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Origin'
func (*Response_Origin_Call) Return ¶ added in v1.17.0
func (_c *Response_Origin_Call) Return(_a0 *http.Response) *Response_Origin_Call
func (*Response_Origin_Call) Run ¶ added in v1.17.0
func (_c *Response_Origin_Call) Run(run func()) *Response_Origin_Call
func (*Response_Origin_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Response_Origin_Call) RunAndReturn(run func() *http.Response) *Response_Origin_Call
type Response_PaymentRequired_Call ¶
Response_PaymentRequired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PaymentRequired'
func (*Response_PaymentRequired_Call) Return ¶
func (_c *Response_PaymentRequired_Call) Return(_a0 bool) *Response_PaymentRequired_Call
func (*Response_PaymentRequired_Call) Run ¶
func (_c *Response_PaymentRequired_Call) Run(run func()) *Response_PaymentRequired_Call
func (*Response_PaymentRequired_Call) RunAndReturn ¶
func (_c *Response_PaymentRequired_Call) RunAndReturn(run func() bool) *Response_PaymentRequired_Call
type Response_Redirect_Call ¶
Response_Redirect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Redirect'
func (*Response_Redirect_Call) Return ¶
func (_c *Response_Redirect_Call) Return(_a0 bool) *Response_Redirect_Call
func (*Response_Redirect_Call) Run ¶
func (_c *Response_Redirect_Call) Run(run func()) *Response_Redirect_Call
func (*Response_Redirect_Call) RunAndReturn ¶
func (_c *Response_Redirect_Call) RunAndReturn(run func() bool) *Response_Redirect_Call
type Response_RequestTimeout_Call ¶
Response_RequestTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestTimeout'
func (*Response_RequestTimeout_Call) Return ¶
func (_c *Response_RequestTimeout_Call) Return(_a0 bool) *Response_RequestTimeout_Call
func (*Response_RequestTimeout_Call) Run ¶
func (_c *Response_RequestTimeout_Call) Run(run func()) *Response_RequestTimeout_Call
func (*Response_RequestTimeout_Call) RunAndReturn ¶
func (_c *Response_RequestTimeout_Call) RunAndReturn(run func() bool) *Response_RequestTimeout_Call
type Response_ServerError_Call ¶
Response_ServerError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerError'
func (*Response_ServerError_Call) Return ¶
func (_c *Response_ServerError_Call) Return(_a0 bool) *Response_ServerError_Call
func (*Response_ServerError_Call) Run ¶
func (_c *Response_ServerError_Call) Run(run func()) *Response_ServerError_Call
func (*Response_ServerError_Call) RunAndReturn ¶
func (_c *Response_ServerError_Call) RunAndReturn(run func() bool) *Response_ServerError_Call
type Response_Status_Call ¶
Response_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*Response_Status_Call) Return ¶
func (_c *Response_Status_Call) Return(_a0 int) *Response_Status_Call
func (*Response_Status_Call) Run ¶
func (_c *Response_Status_Call) Run(run func()) *Response_Status_Call
func (*Response_Status_Call) RunAndReturn ¶
func (_c *Response_Status_Call) RunAndReturn(run func() int) *Response_Status_Call
type Response_Stream_Call ¶ added in v1.17.0
Response_Stream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stream'
func (*Response_Stream_Call) Return ¶ added in v1.17.0
func (_c *Response_Stream_Call) Return(_a0 io.ReadCloser, _a1 error) *Response_Stream_Call
func (*Response_Stream_Call) Run ¶ added in v1.17.0
func (_c *Response_Stream_Call) Run(run func()) *Response_Stream_Call
func (*Response_Stream_Call) RunAndReturn ¶ added in v1.17.0
func (_c *Response_Stream_Call) RunAndReturn(run func() (io.ReadCloser, error)) *Response_Stream_Call
type Response_Successful_Call ¶
Response_Successful_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Successful'
func (*Response_Successful_Call) Return ¶
func (_c *Response_Successful_Call) Return(_a0 bool) *Response_Successful_Call
func (*Response_Successful_Call) Run ¶
func (_c *Response_Successful_Call) Run(run func()) *Response_Successful_Call
func (*Response_Successful_Call) RunAndReturn ¶
func (_c *Response_Successful_Call) RunAndReturn(run func() bool) *Response_Successful_Call
type Response_TooManyRequests_Call ¶
Response_TooManyRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TooManyRequests'
func (*Response_TooManyRequests_Call) Return ¶
func (_c *Response_TooManyRequests_Call) Return(_a0 bool) *Response_TooManyRequests_Call
func (*Response_TooManyRequests_Call) Run ¶
func (_c *Response_TooManyRequests_Call) Run(run func()) *Response_TooManyRequests_Call
func (*Response_TooManyRequests_Call) RunAndReturn ¶
func (_c *Response_TooManyRequests_Call) RunAndReturn(run func() bool) *Response_TooManyRequests_Call
type Response_Unauthorized_Call ¶
type Response_Unauthorized_Call struct {
}
Response_Unauthorized_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unauthorized'
func (*Response_Unauthorized_Call) Return ¶
func (_c *Response_Unauthorized_Call) Return(_a0 bool) *Response_Unauthorized_Call
func (*Response_Unauthorized_Call) Run ¶
func (_c *Response_Unauthorized_Call) Run(run func()) *Response_Unauthorized_Call
func (*Response_Unauthorized_Call) RunAndReturn ¶
func (_c *Response_Unauthorized_Call) RunAndReturn(run func() bool) *Response_Unauthorized_Call
type Response_UnprocessableEntity_Call ¶
Response_UnprocessableEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnprocessableEntity'
func (*Response_UnprocessableEntity_Call) Return ¶
func (_c *Response_UnprocessableEntity_Call) Return(_a0 bool) *Response_UnprocessableEntity_Call
func (*Response_UnprocessableEntity_Call) Run ¶
func (_c *Response_UnprocessableEntity_Call) Run(run func()) *Response_UnprocessableEntity_Call
func (*Response_UnprocessableEntity_Call) RunAndReturn ¶
func (_c *Response_UnprocessableEntity_Call) RunAndReturn(run func() bool) *Response_UnprocessableEntity_Call