[][src]Function test::assert_test_result

pub fn assert_test_result<T>(result: T) where
    T: Termination
🔬 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.