Ratchet yaml_subset coverage to >=90% (ADR 0004) #296
Reference in New Issue
Block a user
Delete Branch "ratchet-yaml-subset-90"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacked on #295 (base =
ratchet-egress-addon-90). Second per-module ratchet under ADR 0004.Summary
Adds a branch-coverage suite for the hand-rolled YAML-subset parser, exercising its reachable error/edge cases:
#, blank-line skipping, unterminated/bad-escape quotes:, non-bare key, quoted comma in flow:separator, single-quoted/non-bare keys, list item at mapping indent, empty block →None, bare-dash nested lists, quoted-colon list scalars, nested & empty list-item mappings, duplicate / non-bare sibling keys|/>), anchors (&), tags (!!), non-column-0 top level, top-level list; ampersand inside a quoted value still allowedCoverage
yaml_subset.pyRemaining misses are dead/defensive guards (the unreachable
true/false-in-reserved-set branch, indent-mismatch raises the callers never trigger). 32 new tests; full suite (1376) passes; pyright clean; pylint 9.96.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.