[−][src]Function assert_json_diff::assert_json_include_no_panic
pub fn assert_json_include_no_panic<Actual, Expected>(
actual: &Actual,
expected: &Expected
) -> Result<(), String> where
Actual: Serialize,
Expected: Serialize,
Does the same as assert_json_include!
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.