fn bool_panic(switch: bool) { assert!(switch); } // Examples of case-by-case attribute syntax mod case_by_case { use super::*; use test_gen::test_gen; test_gen! { fn bool_panic => { no_attrs: { (true) }, ignore: { #[ignore] (true) }, should_panic: { #[should_panic] (false) }, ignore_should_panic: { #[ignore] #[should_panic] (false) }, } } } // Examples of block-wide syntax mod block_wide { use super::*; use test_gen::test_gen; test_gen! { #[ignore] #[should_panic] fn bool_panic => { no_attrs: { (false) }, } } }