Skip to main content

diff_shapes

Function diff_shapes 

Source
pub fn diff_shapes(path: &str, baseline: &Value, current: &Value) -> Vec<String>
Expand description

Compare a current shape against the baseline shape and return one human-readable line per drift found. An empty vec means the shapes match.

path is the dotted JSON path used to locate each drift (e.g. blockchain_state.difficulty); callers pass the endpoint name as the root.