Searched refs:ignore_if (Results 1 – 5 of 5) sorted by relevance
/platform_testing/libraries/rdroidtest/tests/ |
D | main.rs | 3 use rdroidtest::{ignore_if, rdroidtest}; 14 #[ignore_if(feeling_happy())] 21 #[ignore_if(!feeling_happy())] 37 #[ignore_if(feeling_odd)] 43 #[ignore_if(|p| !feeling_odd(p))] 57 #[ignore_if(|p| !feeling_odder(p))] 77 #[ignore_if(|p| p != "one")] 93 #[ignore_if(false)] 101 #[ignore_if(false)]
|
D | raw.rs | 13 test!(grumble, ignore_if: feeling_happy()); 19 test!(clap_hands, ignore_if: !feeling_happy()); 34 ptest!(is_even, my_instances(), ignore_if: feeling_odd); 39 ptest!(is_odd, my_instances(), ignore_if: |p| !feeling_odd(p)); 52 ptest!(is_odder, wrapped_instances(), ignore_if: |p| !feeling_odder(p)); 71 ptest!(is_the_one, more_instances(), ignore_if: |p| p != "one");
|
/platform_testing/libraries/rdroidtest/macro/ |
D | lib.rs | 21 let mut ignore_if: Option<TokenStream2> = None; in rdroidtest() localVariable 31 ignore_if = Some(list.tokens.clone()); in rdroidtest() 38 ignore_if = Some(if param_gen.is_some() { in rdroidtest() 47 let invocation = match (param_gen, ignore_if) { in rdroidtest() 48 (Some(pg), Some(ii)) => quote! { ::rdroidtest::ptest!( #fn_name, #pg, ignore_if: #ii ); }, in rdroidtest() 50 (None, Some(ii)) => quote! { ::rdroidtest::test!( #fn_name, ignore_if: #ii ); }, in rdroidtest() 63 pub fn ignore_if(_args: TokenStream, item: TokenStream) -> TokenStream { in ignore_if() function
|
/platform_testing/libraries/rdroidtest/src/ |
D | lib.rs | 6 pub use rdroidtest_macro::{ignore_if, rdroidtest}; 51 ($test_name:ident, ignore_if: $ignore_expr:expr) => { 102 ($test_name:ident, $param_gen:expr, ignore_if: $ignore_expr:expr) => {
|
/platform_testing/libraries/rdroidtest/ |
D | README.md | 47 To ignore a test, you can add an `ignore_if` attribute whose argument is an expression that 51 use rdroidtest::{ignore_if, rdroidtest}; 54 #[ignore_if(!feeling_happy())] 101 Parameterized tests can also be ignored, using an `ignore_if` attribute. For a parameterized test, 107 #[ignore_if(feeling_odd)] 121 | Normal | `#[rdroidtest]` | `#[rdroidtest]` <br> `#[ignore_if(<I>)]` | 122 | Parameterized | `#[rdroidtest(<G>)]` | `#[rdroidtest(<G>)]` <br> `#[ignore_if(<C>)]` |
|