Documentation ¶
Index ¶
- Variables
- type GoQuestMock
- func (_m *GoQuestMock) AddHeader(key string, value string) goquest.IGoQuest
- func (_m *GoQuestMock) Delete(ctx context.Context, endpoint string, option *goquest.RequestOption) (*goquest.Response, error)
- func (_m *GoQuestMock) Get(ctx context.Context, endpoint string, option *goquest.RequestOption) (*goquest.Response, error)
- func (_m *GoQuestMock) Patch(ctx context.Context, endpoint string, option *goquest.RequestOption) (*goquest.Response, error)
- func (_m *GoQuestMock) Post(ctx context.Context, endpoint string, option *goquest.RequestOption) (*goquest.Response, error)
- func (_m *GoQuestMock) Put(ctx context.Context, endpoint string, option *goquest.RequestOption) (*goquest.Response, error)
- func (_m *GoQuestMock) Send(ctx context.Context, method string, endpoint string, ...) (*goquest.Response, error)
- type HttpClientMock
- type MockClient
- type MockReadCloser
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GoQuestMock ¶
GoQuestMock is an autogenerated mock type for the IGoQuest type
func NewGoQuestMock ¶
func NewGoQuestMock(t mockConstructorTestingTNewGoQuestMock) *GoQuestMock
NewGoQuestMock creates a new instance of GoQuestMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GoQuestMock) AddHeader ¶
func (_m *GoQuestMock) AddHeader(key string, value string) goquest.IGoQuest
AddHeader provides a mock function with given fields: key, value
func (*GoQuestMock) Delete ¶
func (_m *GoQuestMock) Delete(ctx context.Context, endpoint string, option *goquest.RequestOption) (*goquest.Response, error)
Delete provides a mock function with given fields: ctx, endpoint, option
func (*GoQuestMock) Get ¶
func (_m *GoQuestMock) Get(ctx context.Context, endpoint string, option *goquest.RequestOption) (*goquest.Response, error)
Get provides a mock function with given fields: ctx, endpoint, option
func (*GoQuestMock) Patch ¶
func (_m *GoQuestMock) Patch(ctx context.Context, endpoint string, option *goquest.RequestOption) (*goquest.Response, error)
Patch provides a mock function with given fields: ctx, endpoint, option
func (*GoQuestMock) Post ¶
func (_m *GoQuestMock) Post(ctx context.Context, endpoint string, option *goquest.RequestOption) (*goquest.Response, error)
Post provides a mock function with given fields: ctx, endpoint, option
type HttpClientMock ¶
HttpClientMock is an autogenerated mock type for the IHttpClient type
func NewHttpClientMock ¶
func NewHttpClientMock(t mockConstructorTestingTNewHttpClientMock) *HttpClientMock
NewHttpClientMock creates a new instance of HttpClientMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type MockClient ¶
MockClient is the mock client
func MockResponse ¶
func MockResponse(statusCode int, body string) *MockClient
func MockResponseError ¶
func MockResponseError(statusCode int, body string, err error) *MockClient
type MockReadCloser ¶
func NewMockReadCloser ¶
func NewMockReadCloser() *MockReadCloser
func (*MockReadCloser) Close ¶
func (m *MockReadCloser) Close() error