Function cargo_test_support::compare::find_json_mismatch

source ·
pub fn find_json_mismatch(
    expected: &Value,
    actual: &Value,
    cwd: Option<&Path>
) -> Result<()>
Expand description

Compares JSON object for approximate equality. You can use [..] wildcard in strings (useful for OS-dependent things such as paths). You can use a "{...}" string literal as a wildcard for arbitrary nested JSON (useful for parts of object emitted by other programs (e.g., rustc) rather than Cargo itself).