How it is tested
The checks behind uftp: independent voters for XML and signatures, property tests, fuzzing, mutation testing, refusal snapshots and the Shapeshifter differential.
A test earns its place by failing on a plausible defect. Wherever an independent implementation can vote, it does.
| Check | What it proves |
|---|---|
| xmllint against the pinned XSDs | Every encoded type is schema-valid by a validator that is not uftp |
| libsodium vectors | CS1 signing and verification match libsodium byte for byte |
| Property tests (proptest) | Every type round-trips, and arbitrary free text either encodes to parseable XML or is refused. No refusal has a line break or exceeds 512 bytes |
| Fuzzing (cargo-fuzz) | Arbitrary bytes, as a document or as signed inner XML, never panic. Every message that opens re-seals and re-opens equal |
| Mutation testing (cargo-mutants) | Every mutant of the source is caught, except a short documented list of equivalent ones. Run with just mutants |
| Refusal snapshot (insta) | The text of one refusal per kind and per reason is pinned |
| DST days | 92-, 96- and 100-ISP days in real time zones |
| Shapeshifter differential | The reference library verifies, parses and re-signs every type, and its validators judge 51 rule cases (see Interoperability) |
cargo test --all-features # set UFTP_REQUIRE_XMLLINT=1 to fail without xmllint
cargo test --no-default-features # the messages and rules without signing
cargo +nightly fuzz run open_signed -- -dict=fuzz/uftp.dict -max_total_time=60
cargo mutants --all-features