foundry_cheatcodes::test::assert

Function handle_assertion_result

Source
fn handle_assertion_result<ERR>(
    result: Result<Vec<u8>, ERR>,
    ccx: &mut CheatsCtxt<'_, '_, '_, '_>,
    executor: &mut dyn CheatcodesExecutor,
    error_formatter: impl Fn(&ERR) -> String,
    error_msg: Option<&str>,
    format_error: bool,
) -> Result