[−][src]Function assert_json_diff::assert_json_eq_no_panic
pub fn assert_json_eq_no_panic(lhs: &Value, rhs: &Value) -> Result<(), String>
Does the same as assert_json_eq!
but doesn't panic.
Instead it returns a Result
where the error is the message that would be passed to panic!
.
This is might be useful if you want to control how failures are reported and don't want to deal
with panics.