Skip to main content

Module determinism

Module determinism 

Source
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§

ByteDiff
Details about a byte difference found during determinism checking.
DeterminismResult
Result of a determinism check operation.

Enums§

DeterminismMode
Mode of determinism checking (decode-only, encode-only, or full round-trip).

Functions§

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.