Attribute Macro test_with::runtime_available_mem

source ·
#[runtime_available_mem]
Expand description

Run test case when the example running and available memory size enough

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