crates/nornir-testmatrix/tests/fixtures/lib_unit_gates/src/lib.rs
//! Every gate shape the library target can hide a test behind.
/// FILE MODULE behind a non-default feature — Skidbladnir's `vmsuite` shape.
/// 2 direct `#[test]` fns + 1 in the `deep` subtree it declares = 3.
#[cfg(feature = "matrix")]
pub mod vmsuite;
/// FILE MODULE behind a DEFAULT-ON feature: 1 test, and it runs.
#[cfg(feature = "lit")]
pub mod litmod;
/// INLINE MODULE behind a non-default feature: 2 tests, same file.
#[cfg(feature = "solo")]
mod inline_suite {
#[test]
fn inline_one() {}
#[test]
fn inline_two() {}
}
/// The gate on the FUNCTION, not on a module: 1 test.
#[cfg(feature = "solo")]
#[test]
fn bare_gated_fn() {}
/// Ungated: runs always, and must NOT be attributed to any feature.
#[cfg(test)]
mod plain {
#[test]
fn always_runs() {}
}