Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPRequest ¶
HTTPRequest is an autogenerated mock type for the HTTPRequest type
func NewHTTPRequest ¶ added in v1.11.21
func NewHTTPRequest(t mockConstructorTestingTNewHTTPRequest) *HTTPRequest
NewHTTPRequest creates a new instance of HTTPRequest. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*HTTPRequest) Do ¶
func (_m *HTTPRequest) Do(_a0 context.Context, method string, url string, reqBody []byte, headers map[string]string) ([]byte, int, error)
Do provides a mock function with given fields: _a0, method, url, reqBody, headers
func (*HTTPRequest) DoRequest ¶ added in v1.11.6
func (_m *HTTPRequest) DoRequest(ctx context.Context, method string, url string, requestBody []byte, headers map[string]string) (*candiutils.HTTPRequestResult, error)
DoRequest provides a mock function with given fields: ctx, method, url, requestBody, headers
Click to show internal directories.
Click to hide internal directories.