Bad-YAML mutation suite #6
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Tracks broadening PureYAML's malformed/damaged-input test fixtures beyond the single intentionally damaged production-style fixture currently used in PureYAMLYamsComparison.
Current state: both PureYAML and Yams correctly reject that one damaged fixture (0 disagreements). PureYAML's diagnostic-first APIs (
parseValidated,parseValidatedStream) need broader coverage of realistic corruption patterns to validate diagnostic quality, not just pass/fail.Remaining work:
Reconstructed from PureYAML's README roadmap, which referenced this as issue #51 before the GitHub to Codeberg migration reset issue numbering on this repo.
Part of #8.
Broadened the real-seed mutation property suite with the mutation classes this issue named that weren't yet covered:
invalidControlCharacter(a raw control byte injected into a line)mixedTabSpaceIndentation(a tab after leading spaces, distinct from the existing pure-tab case)truncatedFlowCollection(an unterminated[a, b, cappended after the real seed sample, exercising the deep parser'smalformederror rather than the preflight scanner)Also added the diagnostic-quality assertions this issue asked for, not just pass/fail: every matching diagnostic's
linemust fall within the mutated document, and itscolumn, when present, must be 1-based (someParseErrorcases, like.tabIndentation, are line-only by design, so column is checked when present rather than required).Commit: NodetteHQ/PureYAML@18fdf9b, pushed to main.