headroom/tests/test_learn
Garm aad799d76e test(learn): cover _parse_prior_recommendations edge cases
Closes the codecov gap flagged on PR 232 (88.89% → near 100% on the patch):

- A file with no marker block returns no prior recommendations.
- A marker block with nothing between the markers yields an empty list
  (the re.split fast-path with zero sections).
- A stray `### ` with no heading text inside the block is silently
  skipped (the `if not heading: continue` branch, previously
  unexercised in tests) — a real section after it still parses cleanly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 20:13:49 +02:00
..
__init__.py Add headroom learn: offline failure learning for coding agents 2026-02-27 21:19:03 -08:00
test_analyzer.py fix(learn): handle FileNotFoundError when CLI tool is not installed 2026-04-10 22:11:19 +09:00
test_gemini_scanner.py Plugin architecture for headroom learn + live traffic flush 2026-04-09 20:30:20 -07:00
test_integration.py Fix tests 2026-03-23 13:24:02 +01:00
test_registry.py Plugin architecture for headroom learn + live traffic flush 2026-04-09 20:30:20 -07:00
test_scanner.py Fix headroom learn failing on project paths with underscores (#159) 2026-04-14 15:59:49 -07:00
test_writer.py test(learn): cover _parse_prior_recommendations edge cases 2026-04-22 20:13:49 +02:00