Skip to content

Close #622: strict tests for prism's real per-family comment stripping - #627

Merged
squid-protocol merged 1 commit into
mainfrom
test-prism-per-family-coverage
Jul 26, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
test-prism-per-family-coverage

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Fills the remaining gaps in #622, on top of what #625 already covered when it split standard_block into sub-families:

No source changes -- test-only, so the golden master fixtures are untouched (confirmed: pytest -m golden_crucible still passes unchanged in both modes).

Test plan

  • pytest tests/ -- 920 passed
  • python tests/ruff_audit.py --ci -- clean
  • python tests/mypy_audit.py --ci -- clean
  • pytest -m golden_crucible -- passes unchanged (no source touched)

Closes #622.

🤖 Generated with Claude Code

Fills the remaining gaps #622 called out, on top of what #625 already
covered for the standard_block split:

- block_exclusive (xml) and non_lexical (plaintext) now have a dedicated
  real-config test, not just the existing mock-based bypass test. Also
  added a test documenting a latent (not live) gap: neither family has an
  entry in _compile_regex_matrix()'s branch list, so a FUTURE language
  assigned either family without also being added to split_streams()'s
  hardcoded "prose bypass" list would silently get zero comment stripping
  -- same failure shape as #386/#621, just not triggered by anything in
  the real config today.
- ReDoS immunity tests against the REAL compiled patterns for
  standard_block/multi_style_dash/embedded_syntax/line_exclusive/
  recursive_block_haskell (previously only the mock-config branch-selection
  logic and the unrelated suppression-tag regex had pathological-payload
  coverage).
- String-literal shielding tests for haskell and powershell, extending the
  one #621 added for lua to the other two new families.

Full suite (920 tests), ruff audit, mypy audit, and both golden-crucible
modes pass. No source changes -- test-only, so the golden master fixtures
are untouched.

Closes #622.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 65f8b18 into main Jul 26, 2026
27 checks passed
@squid-protocol
squid-protocol deleted the test-prism-per-family-coverage branch July 26, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strict/exact tests for prism.py's real per-family comment stripping (replaces the per-language lexical-delimiter checklist items)

1 participant