test

Function assert_test_result

Source
pub fn assert_test_result<T: Termination>(result: T) -> Result<(), String>
🔬This is a nightly-only experimental API. (test)
Expand description

Invoked when unit tests terminate. Returns Result::Err if the test is considered a failure. By default, invokes report() and checks for a 0 result.