Attribute Macro test_with::runtime_swap

source ·
#[runtime_swap]
Expand description

Run test case when the example running and swap enough

 // write as example in exmaples/*rs
 test_with::runner!(resource);
 #[test_with::module]
 mod resource {
     // Only works with enough swap size
     #[test_with::runtime_swap(100GB)]
     fn test_ignored_swap_not_enough() {
         panic!("should be ignored")
     }
 }