Function test::assert_test_result [] [src]

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 test is considered a failure. By default, invokes report() and checks for a 0 result.