Documentation
¶
Overview ¶
Command mockserver runs a standalone in-memory feed server exposing a known RSS 2.0 feed at /rss, an Atom feed at /atom, a JSON Feed at /json, and a /malformed endpoint. It is used by the haybarn SQL end-to-end tests: the Makefile starts it on a free port, reads the printed PORT line, and points the worker's feed functions at it.
Usage:
mockserver [--addr 127.0.0.1:0]
On startup it prints "PORT:<n>" (the bound TCP port) to stdout so a caller can discover the port even when binding to :0.
Click to show internal directories.
Click to hide internal directories.