Documentation
¶
Overview ¶
Package mockfeed provides an in-memory feed server used by both the Go unit tests (as an httptest.Server) and the standalone mockserver binary (for the haybarn SQL E2E). It serves a fixed RSS 2.0 feed at /rss, an Atom feed at /atom, and a JSON Feed at /json, plus a /malformed endpoint that returns garbage for negative tests.
Index ¶
Constants ¶
const Atom = `` /* 1071-byte string literal not displayed */
Atom is a valid Atom 1.0 document with two entries.
const JSON = `` /* 970-byte string literal not displayed */
JSON is a valid JSON Feed 1.1 document with two items.
const Malformed = `<rss><channel><title>broken</title><item><title>oops`
Malformed is intentionally invalid (neither well-formed XML nor JSON) so a negative test can assert the worker surfaces a parse error.
const RSS = `` /* 1015-byte string literal not displayed */
RSS is a valid RSS 2.0 document with two items.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns the feed HTTP handler serving /rss, /atom, /json, and /malformed.
Types ¶
This section is empty.