no_panic_test

Macro no_panic_test 

Source
macro_rules! no_panic_test {
    ($test_name:ident, $body:block) => { ... };
}
Expand description

Test that a method doesn’t panic with a given input.

§Examples

no_panic_test!(test_apply_bold, {
    let result = TitleStyle::Bold.apply("Test");
    assert!(!result.is_empty());
});