PureXML/scripts
Mihaela Mihaljevic 3cf44cccb9 test(ci): add an opt-in coverage gate; close the 0% value types it surfaces
The coverage analysis noted there is no mechanism that measures test completeness,
so a source file silently sitting at 0% (untested or dead) is invisible.

Add scripts/check-coverage.sh: it runs the instrumented suite, prints overall
line/region/function coverage and the lowest-covered files, and FAILS if any source
file is at 0% line coverage (the exact signal that found the earlier gaps). It is
opt-in (instrumented build + llvm-cov are slow and macOS-only) and skips cleanly
where xcrun is unavailable; an optional COVERAGE_REGION_FLOOR enforces a floor.

Running it immediately surfaced two more 0% value types, now closed by
CoverageGateValueTypeTests: the HTML tokenizer's `Token` (a custom Equatable) and
the public `Stream.Document` (built by API consumers, never internally). Overall
line coverage is now 92.66% with no source file at 0%, so the gate passes.

Tooling + tests only; +2 tests; full suite green (1570).
2026-06-22 16:38:30 +02:00
..
benchmark.sh feat(xpath,parsing): public streaming surface, linear document-order at scale 2026-06-11 06:06:31 +02:00
check-all.sh feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
check-changelog-touched.sh chore(ci): add the changelog-touched gate verification.md requires 2026-06-08 17:49:21 +02:00
check-commit-attribution.sh ci: split workflows for truthful badges and attribution gates 2026-06-08 04:37:32 +02:00
check-coverage.sh test(ci): add an opt-in coverage gate; close the 0% value types it surfaces 2026-06-22 16:38:30 +02:00
check-forbidden-patterns.sh chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00
check-linux.sh chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00
check-namespacing.sh chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00
check-roadmap.sh docs(roadmap): add Apple-palette mermaid roadmap and the roadmap gate 2026-06-08 00:58:50 +02:00
check-style.sh Exclude mirrored enforcement docs from style scan 2026-06-18 22:37:44 +02:00
check-validation-coverage.sh feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
check-validation-fields.sh feat(validation,schema): composable validation framework and cross-document composition 2026-06-16 09:57:43 +02:00
check-wasm.sh feat(xpath,xslt,wasm): evaluation budget, tailored collation, WASI runtime proof 2026-06-11 06:26:13 +02:00
check-windows.ps1 chore: scaffold PureXML pure-Swift XML package 2026-06-07 23:20:20 +02:00