Documentation
¶
Overview ¶
Package feedtest provides helpers for syndication feed tests involving HTTP requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RoundTripper ¶
RoundTripper records incoming HTTP requests and responds with Atom feed data.
It supports HTTP conditional requests using the following HTTP headers: - ETag (response) / If-None-Match (request) - Last-Modified (response) / If-Modified-Since (request)
func NewRoundTripper ¶
func NewRoundTripper(t *testing.T, feed feeds.Feed) *RoundTripper
NewRoundTripper initializes and returns a RoundTripper.
Click to show internal directories.
Click to hide internal directories.