Skip to main content

assert_errors_not_panics

Function assert_errors_not_panics 

Source
pub async fn assert_errors_not_panics<S: Source + ?Sized>(source: &S)
Expand description

Check 6. Drive a source configured to fail (unreachable endpoint / bad config) and assert it surfaces a typed faucet_core::FaucetError without unwinding. Catches any panic and re-raises it as a check failure, so a connector that unwrap()s on bad input is caught rather than crashing the test process silently.

Pass a source that is expected to fail. Panics if the source succeeds (the failure path was not exercised) or if it panics instead of returning Err.