test_with

Attribute Macro runtime_free_mem

Source
#[runtime_free_mem]
Expand description

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

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