Skip to main content

cpu_core

Attribute Macro cpu_core 

Source
#[cpu_core]
Expand description

Run test case when cpu core enough

#[cfg(test)]
mod tests {

    // Only works with enough cpu core
    #[test_with::cpu_core(64)]
    #[test]
    fn test_ignored() {
        panic!("should be ignored")
    }
}