mocks

package
v0.17.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) AddRetryCondition

func (_m *Client) AddRetryCondition(f http.RetryConditionFunc)

AddRetryCondition provides a mock function with given fields: f

func (*Client) Delete

func (_m *Client) Delete(ctx context.Context, request *http.Request) (*http.Response, error)

Delete provides a mock function with given fields: ctx, request

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Get

func (_m *Client) Get(ctx context.Context, request *http.Request) (*http.Response, error)

Get provides a mock function with given fields: ctx, request

func (*Client) NewJsonRequest

func (_m *Client) NewJsonRequest() *http.Request

NewJsonRequest provides a mock function with given fields:

func (*Client) NewRequest

func (_m *Client) NewRequest() *http.Request

NewRequest provides a mock function with given fields:

func (*Client) NewXmlRequest

func (_m *Client) NewXmlRequest() *http.Request

NewXmlRequest provides a mock function with given fields:

func (*Client) Patch

func (_m *Client) Patch(ctx context.Context, request *http.Request) (*http.Response, error)

Patch provides a mock function with given fields: ctx, request

func (*Client) Post

func (_m *Client) Post(ctx context.Context, request *http.Request) (*http.Response, error)

Post provides a mock function with given fields: ctx, request

func (*Client) Put

func (_m *Client) Put(ctx context.Context, request *http.Request) (*http.Response, error)

Put provides a mock function with given fields: ctx, request

func (*Client) SetCookie

func (_m *Client) SetCookie(c *nethttp.Cookie)

SetCookie provides a mock function with given fields: c

func (*Client) SetCookies

func (_m *Client) SetCookies(cs []*nethttp.Cookie)

SetCookies provides a mock function with given fields: cs

func (*Client) SetProxyUrl

func (_m *Client) SetProxyUrl(p string)

SetProxyUrl provides a mock function with given fields: p

func (*Client) SetRedirectValidator

func (_m *Client) SetRedirectValidator(allowRequest func(*nethttp.Request) bool)

SetRedirectValidator provides a mock function with given fields: allowRequest

func (*Client) SetTimeout

func (_m *Client) SetTimeout(timeout time.Duration)

SetTimeout provides a mock function with given fields: timeout

func (*Client) SetUserAgent

func (_m *Client) SetUserAgent(ua string)

SetUserAgent provides a mock function with given fields: ua

type Client_AddRetryCondition_Call

type Client_AddRetryCondition_Call struct {
	*mock.Call
}

Client_AddRetryCondition_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRetryCondition'

func (*Client_AddRetryCondition_Call) Return

func (*Client_AddRetryCondition_Call) Run

func (*Client_AddRetryCondition_Call) RunAndReturn

type Client_Delete_Call

type Client_Delete_Call struct {
	*mock.Call
}

Client_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Client_Delete_Call) Return

func (_c *Client_Delete_Call) Return(_a0 *http.Response, _a1 error) *Client_Delete_Call

func (*Client_Delete_Call) Run

func (_c *Client_Delete_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Delete_Call

func (*Client_Delete_Call) RunAndReturn

func (_c *Client_Delete_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Delete_Call

type Client_Expecter

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

func (*Client_Expecter) AddRetryCondition

func (_e *Client_Expecter) AddRetryCondition(f interface{}) *Client_AddRetryCondition_Call

AddRetryCondition is a helper method to define mock.On call

  • f http.RetryConditionFunc

func (*Client_Expecter) Delete

func (_e *Client_Expecter) Delete(ctx interface{}, request interface{}) *Client_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • request *http.Request

func (*Client_Expecter) Get

func (_e *Client_Expecter) Get(ctx interface{}, request interface{}) *Client_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • request *http.Request

func (*Client_Expecter) NewJsonRequest

func (_e *Client_Expecter) NewJsonRequest() *Client_NewJsonRequest_Call

NewJsonRequest is a helper method to define mock.On call

func (*Client_Expecter) NewRequest

func (_e *Client_Expecter) NewRequest() *Client_NewRequest_Call

NewRequest is a helper method to define mock.On call

func (*Client_Expecter) NewXmlRequest

func (_e *Client_Expecter) NewXmlRequest() *Client_NewXmlRequest_Call

NewXmlRequest is a helper method to define mock.On call

func (*Client_Expecter) Patch

func (_e *Client_Expecter) Patch(ctx interface{}, request interface{}) *Client_Patch_Call

Patch is a helper method to define mock.On call

  • ctx context.Context
  • request *http.Request

func (*Client_Expecter) Post

func (_e *Client_Expecter) Post(ctx interface{}, request interface{}) *Client_Post_Call

Post is a helper method to define mock.On call

  • ctx context.Context
  • request *http.Request

func (*Client_Expecter) Put

func (_e *Client_Expecter) Put(ctx interface{}, request interface{}) *Client_Put_Call

Put is a helper method to define mock.On call

  • ctx context.Context
  • request *http.Request

func (*Client_Expecter) SetCookie

func (_e *Client_Expecter) SetCookie(c interface{}) *Client_SetCookie_Call

SetCookie is a helper method to define mock.On call

  • c *nethttp.Cookie

func (*Client_Expecter) SetCookies

func (_e *Client_Expecter) SetCookies(cs interface{}) *Client_SetCookies_Call

SetCookies is a helper method to define mock.On call

  • cs []*nethttp.Cookie

func (*Client_Expecter) SetProxyUrl

func (_e *Client_Expecter) SetProxyUrl(p interface{}) *Client_SetProxyUrl_Call

SetProxyUrl is a helper method to define mock.On call

  • p string

func (*Client_Expecter) SetRedirectValidator

func (_e *Client_Expecter) SetRedirectValidator(allowRequest interface{}) *Client_SetRedirectValidator_Call

SetRedirectValidator is a helper method to define mock.On call

  • allowRequest func(*nethttp.Request) bool

func (*Client_Expecter) SetTimeout

func (_e *Client_Expecter) SetTimeout(timeout interface{}) *Client_SetTimeout_Call

SetTimeout is a helper method to define mock.On call

  • timeout time.Duration

func (*Client_Expecter) SetUserAgent

func (_e *Client_Expecter) SetUserAgent(ua interface{}) *Client_SetUserAgent_Call

SetUserAgent is a helper method to define mock.On call

  • ua string

type Client_Get_Call

type Client_Get_Call struct {
	*mock.Call
}

Client_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Client_Get_Call) Return

func (_c *Client_Get_Call) Return(_a0 *http.Response, _a1 error) *Client_Get_Call

func (*Client_Get_Call) Run

func (_c *Client_Get_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Get_Call

func (*Client_Get_Call) RunAndReturn

func (_c *Client_Get_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Get_Call

type Client_NewJsonRequest_Call

type Client_NewJsonRequest_Call struct {
	*mock.Call
}

Client_NewJsonRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewJsonRequest'

func (*Client_NewJsonRequest_Call) Return

func (*Client_NewJsonRequest_Call) Run

func (*Client_NewJsonRequest_Call) RunAndReturn

func (_c *Client_NewJsonRequest_Call) RunAndReturn(run func() *http.Request) *Client_NewJsonRequest_Call

type Client_NewRequest_Call

type Client_NewRequest_Call struct {
	*mock.Call
}

Client_NewRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewRequest'

func (*Client_NewRequest_Call) Return

func (*Client_NewRequest_Call) Run

func (_c *Client_NewRequest_Call) Run(run func()) *Client_NewRequest_Call

func (*Client_NewRequest_Call) RunAndReturn

func (_c *Client_NewRequest_Call) RunAndReturn(run func() *http.Request) *Client_NewRequest_Call

type Client_NewXmlRequest_Call

type Client_NewXmlRequest_Call struct {
	*mock.Call
}

Client_NewXmlRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewXmlRequest'

func (*Client_NewXmlRequest_Call) Return

func (*Client_NewXmlRequest_Call) Run

func (*Client_NewXmlRequest_Call) RunAndReturn

func (_c *Client_NewXmlRequest_Call) RunAndReturn(run func() *http.Request) *Client_NewXmlRequest_Call

type Client_Patch_Call

type Client_Patch_Call struct {
	*mock.Call
}

Client_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'

func (*Client_Patch_Call) Return

func (_c *Client_Patch_Call) Return(_a0 *http.Response, _a1 error) *Client_Patch_Call

func (*Client_Patch_Call) Run

func (_c *Client_Patch_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Patch_Call

func (*Client_Patch_Call) RunAndReturn

func (_c *Client_Patch_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Patch_Call

type Client_Post_Call

type Client_Post_Call struct {
	*mock.Call
}

Client_Post_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Post'

func (*Client_Post_Call) Return

func (_c *Client_Post_Call) Return(_a0 *http.Response, _a1 error) *Client_Post_Call

func (*Client_Post_Call) Run

func (_c *Client_Post_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Post_Call

func (*Client_Post_Call) RunAndReturn

func (_c *Client_Post_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Post_Call

type Client_Put_Call

type Client_Put_Call struct {
	*mock.Call
}

Client_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*Client_Put_Call) Return

func (_c *Client_Put_Call) Return(_a0 *http.Response, _a1 error) *Client_Put_Call

func (*Client_Put_Call) Run

func (_c *Client_Put_Call) Run(run func(ctx context.Context, request *http.Request)) *Client_Put_Call

func (*Client_Put_Call) RunAndReturn

func (_c *Client_Put_Call) RunAndReturn(run func(context.Context, *http.Request) (*http.Response, error)) *Client_Put_Call

type Client_SetCookie_Call

type Client_SetCookie_Call struct {
	*mock.Call
}

Client_SetCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCookie'

func (*Client_SetCookie_Call) Return

func (*Client_SetCookie_Call) Run

func (*Client_SetCookie_Call) RunAndReturn

func (_c *Client_SetCookie_Call) RunAndReturn(run func(*nethttp.Cookie)) *Client_SetCookie_Call

type Client_SetCookies_Call

type Client_SetCookies_Call struct {
	*mock.Call
}

Client_SetCookies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCookies'

func (*Client_SetCookies_Call) Return

func (*Client_SetCookies_Call) Run

func (_c *Client_SetCookies_Call) Run(run func(cs []*nethttp.Cookie)) *Client_SetCookies_Call

func (*Client_SetCookies_Call) RunAndReturn

func (_c *Client_SetCookies_Call) RunAndReturn(run func([]*nethttp.Cookie)) *Client_SetCookies_Call

type Client_SetProxyUrl_Call

type Client_SetProxyUrl_Call struct {
	*mock.Call
}

Client_SetProxyUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetProxyUrl'

func (*Client_SetProxyUrl_Call) Return

func (*Client_SetProxyUrl_Call) Run

func (*Client_SetProxyUrl_Call) RunAndReturn

func (_c *Client_SetProxyUrl_Call) RunAndReturn(run func(string)) *Client_SetProxyUrl_Call

type Client_SetRedirectValidator_Call

type Client_SetRedirectValidator_Call struct {
	*mock.Call
}

Client_SetRedirectValidator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetRedirectValidator'

func (*Client_SetRedirectValidator_Call) Return

func (*Client_SetRedirectValidator_Call) Run

func (*Client_SetRedirectValidator_Call) RunAndReturn

type Client_SetTimeout_Call

type Client_SetTimeout_Call struct {
	*mock.Call
}

Client_SetTimeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTimeout'

func (*Client_SetTimeout_Call) Return

func (*Client_SetTimeout_Call) Run

func (_c *Client_SetTimeout_Call) Run(run func(timeout time.Duration)) *Client_SetTimeout_Call

func (*Client_SetTimeout_Call) RunAndReturn

func (_c *Client_SetTimeout_Call) RunAndReturn(run func(time.Duration)) *Client_SetTimeout_Call

type Client_SetUserAgent_Call

type Client_SetUserAgent_Call struct {
	*mock.Call
}

Client_SetUserAgent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetUserAgent'

func (*Client_SetUserAgent_Call) Return

func (*Client_SetUserAgent_Call) Run

func (*Client_SetUserAgent_Call) RunAndReturn

func (_c *Client_SetUserAgent_Call) RunAndReturn(run func(string)) *Client_SetUserAgent_Call

Jump to

Keyboard shortcuts

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