Commit Graph

2 Commits

Author SHA1 Message Date
83e6e27d12 style(format): adopt --importgrouping testable-bottom from canonical rules-swift
Group @testable imports at the bottom, per public/rules-swift's swiftformat. A
behavior-preserving import-ordering reformat across 252 files (mostly tests).
--trailingclosures was deliberately not adopted (cosmetic, and swiftformat flags
it as caution-worthy).
2026-06-18 20:33:07 +02:00
2abc18bbfc test(schema): generative robustness fuzz harness for the schema engine and parser
A reproducible, seeded structure-aware fuzzer (production-readiness stopper 4,
#167). It builds varied XSD schemas and XML instances reaching the crash/hang
-prone shapes (deep nesting, large/unbounded/inverted occurrences, pointless
maxOccurs=0 particles, wildcards, element/group reference cycles, substitution
chains, simpleType restriction cycles, complexContent restrictions, pathological
regex), and asserts the validator never crashes and always terminates. A trap
fails the run; the .timeLimit trait catches a true hang on native (omitted on
WASI, which does not support it; the engine's own caps still bound termination).

This characterizes termination and crash-freedom, not verdict correctness. No
crashes or hangs found over the current corpus (250 schemas + 600 byte streams
natively each run). Counts are a constant, raised for a deeper campaign.
2026-06-15 00:10:14 +02:00