test_with

Attribute Macro swap

Source
#[swap]
Expand description

Run test case when swap size enough

#[cfg(test)]
mod tests {

    // Only works with enough swap size
    #[test_with::swap(100GB)]
    #[test]
    fn test_ignored() {
        panic!("should be ignored")
    }
}