MCPcopy Create free account
hub / github.com/dcSpark/cddl-codegen / reference_codec_differential

Function reference_codec_differential

src/tests/integration_tests.rs:397–406  ·  view source on GitHub ↗

Both independent codecs must fully decode `bytes` AND agree on the decoded structure (after bignum-representation canonicalization, see `fold_bignums`). Any error names which codec failed and why; a tree mismatch dumps both trees. Anti-vacuity: a truncated (malformed) case must FAIL this — a decoder that accepts anything can't pass (see the gate's negative control).

(bytes: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ir_conformance_corpusFunction · 0.85

Calls 3

fold_bignumsFunction · 0.85
tree_via_ciboriumFunction · 0.85
tree_via_minicborFunction · 0.85

Tested by

no test coverage detected