Documentation
¶
Overview ¶
Package paritytest compares codegrapher output against golden outputs captured from the original codegraph CLI (testdata/golden), implementing the normalization rules documented in tools/parity/README.md:
- machine-specific fields are replaced with "<NORM>"
- arrays whose order is not functionally meaningful are sorted
- object keys compare order-insensitively (canonical JSON)
- query[] result order IS meaningful (descending score) and is preserved
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonicalize ¶
Canonicalize parses raw JSON and returns its normalized, deterministically ordered re-encoding. topLevelUnordered marks the whole top-level array as order-insensitive (e.g. the files verb); query results keep their order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.