[][src]Function libtest::assert_test_result

pub fn assert_test_result<T: Termination>(result: T)
🔬 This is a nightly-only experimental API. (test)

Invoked when unit tests terminate. Should panic if the unit Tests is considered a failure. By default, invokes report() and checks for a 0 result.