Expand description
Determinism validation for decode, encode, and round-trip operations. Determinism validation for COBOL copybook encoding and decoding operations.
This module verifies that encode/decode operations produce identical outputs across repeated runs with the same schema, data, and options.
Structs§
- Byte
Diff - Details about a byte difference found during determinism checking.
- Determinism
Result - Result of a determinism check operation.
Enums§
- Determinism
Mode - Mode of determinism checking (decode-only, encode-only, or full round-trip).
Constants§
- BLAK
E3_ HEX_ LEN - Hex-encoded BLAKE3 digest length in characters.
- DEFAULT_
MAX_ DIFFS - Default cap used when collecting byte-level differences.
Functions§
- blake3_
hex - Compute a lowercase hex BLAKE3 hash for a byte slice.
- check_
decode_ determinism - Check that decoding the same binary data twice produces identical JSON output.
- check_
encode_ determinism - Check that encoding the same JSON twice produces identical binary output.
- check_
round_ trip_ determinism - Check full round-trip determinism: decode->encode->decode.
- compare_
outputs - Compare two byte slices and build a determinism result with the default diff limit.
- compare_
outputs_ with_ limit - Compare two byte slices and build a determinism result with an explicit diff limit.
- find_
byte_ differences - Find byte-level differences between two slices using
DEFAULT_MAX_DIFFSentries at most. - find_
byte_ differences_ with_ limit - Find byte-level differences between two slices with an explicit limit.