Documentation ¶ Index ¶ type Client func (c *Client) Do(req *http.Request) (resp *http.Response, err error) func (c *Client) GivenError(url string, expected error) func (c *Client) GivenResponse(statusCode int, url, contentType, body string, etags ...header.ETag) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { Metadata *db.DB // contains filtered or unexported fields } Client is for http testing. func (*Client) Do ¶ func (c *Client) Do(req *http.Request) (resp *http.Response, err error) func (*Client) GivenError ¶ added in v1.1.0 func (c *Client) GivenError(url string, expected error) func (*Client) GivenResponse ¶ func (c *Client) GivenResponse(statusCode int, url, contentType, body string, etags ...header.ETag) Source Files ¶ View all Source files stubclient.go Click to show internal directories. Click to hide internal directories.