Documentation ¶
Overview ¶
Package fetchtest provides FetchClient implementations for use in testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchClient ¶
type FetchClient struct {
// contains filtered or unexported fields
}
FetchClient fetches content from a test server.
func NewFetchClient ¶
func NewFetchClient(s *httptest.Server) *FetchClient
NewFetchClient creates and initializes a new FetchClient routing any fetch requests to the provided test server s.
func (*FetchClient) Requests ¶
func (c *FetchClient) Requests() []*http.Request
Requests returns all HTTP requests the FetchClient has received.
Click to show internal directories.
Click to hide internal directories.