Skip to content
SprecherEast
Issue 1486

Test the Atom and fallback paths of the feed parser

Back to our plan
Open
toolingtech-debtpriority: low

Problem

In plain words: the Atom feed and fallback paths of the feed parser are not covered by tests, so a change to them would not be caught.

Found in the review of #1481, which moved the RSS and Atom parser unchanged from parsers.mjs to intelligence/runner/lib/feed.mjs. A mutation run over the file left about 30 mutants alive on main, all in the Atom branch (feed/entry, link with rel, id, updated, summary) and the fallbacks (guid or link, content:encoded or description, a missing title). The file is unchanged by #1481; the gap was already there.

Proposed fix

Add tests for an Atom feed (entries with an alternate link, a rel link first, content and summary, id and updated) and for the RSS fallbacks, then kill the surviving mutants or record each as equivalent.

Acceptance criteria

  • Not done: Tests cover the Atom entry shape and each fallback in feed.mjs.
  • Not done: A mutation run over feed.mjs has no surviving non-equivalent mutant.

Files likely touched

intelligence/runner/test/

Must not touch

src/, intelligence/runner/lib/feed.mjs behavior

Existing work compared

Searched open and closed issues for the feed parser tests; none. #1481 only records where it was found.

Area

tooling

Priority

low


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab