Skip to main content

Module codec

Module codec 

Source
Expand description

codec — conformance runner adapter COMMON part (PROTOCOL §2).

Converts the golden-vector typed wire encoding ({int:"…"} / {float:n} / {nan} / {inf} / bare JSON number classification) into the runtime Value, and back. All language runners must decode identically to produce identical pass/fail results.

Structs§

DecodeError
Error decoding a wire value into a runtime value.

Functions§

decode_value
Decode the golden-vector JSON value representation into a runtime Value (expression-ir.md §2.3 inverse map).
encode_value
Encode a runtime Value back into the golden wire representation (for producing diagnostic detail on a failing vector; mirrors TS encodeValue).