Function test::assert_test_result[][src]

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

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.