skip_if

Macro skip_if 

Source
macro_rules! skip_if {
    ($config:expr, $condition:expr, $reason:expr) => { ... };
    (private_tests) => { ... };
}
Expand description

Conditionally skips a test based on a condition.

§Examples

// Version 1: With explicit config and condition
skip_if!(config, config.skip_private_tests, "Private tests disabled");

// Version 2: Simplified version for private tests
skip_if!(private_tests);