crates/nornir-testmatrix/tests/fixtures/lib_unit_gates/Cargo.toml
# Test fixture: **the `judge_active` hole** — feature-gated tests that live in the
# LIBRARY target, where `audit_repo`'s test-target walk cannot reach them.
#
# Measured original: Skidbladnir's `src/lib.rs:392` gates `pub mod vmsuite;` on
# `matrix`; `src/vmsuite.rs` holds 23 pure `#[test]` fns (Facts parsing and the
# judges, none of which touch KVM). `audit_repo` walks `[[test]]` TARGETS, so it
# has never looked at any of them, and `judge_active` graded systemd's transitional
# `deactivating` as stopped for three weeks with a green matrix.
#
# Four shapes, because the gate can sit in four places:
#
# file module `#[cfg(feature = "matrix")] pub mod vmsuite;` → src/vmsuite.rs
# inline module `#[cfg(feature = "matrix")] mod inline { … }` → same file
# nested subtree a plain `mod deep;` INSIDE a gated file → inherits it
# the fn itself `#[cfg(feature = "solo")] #[test] fn …` → one test
#
# Standalone `[workspace]`, zero deps: offline `cargo metadata --no-deps`.
[package]
name = "lib_unit_gates"
version = "0.0.0"
edition = "2021"
publish = false
[features]
default = ["lit"]
# In `default`: its tests RUN on a plain `cargo test`. The control for "not
# everything gated is dark".
lit = []
# Not in `default`; a declared variant enables it.
matrix = []
# Not in `default`, declared by nothing. The control for "dark".
solo = []
[workspace]