pub const KTSTR_CARGO_TEST_MODE_ENV: &str = "KTSTR_CARGO_TEST_MODE";Expand description
Name of the environment variable that signals ktstr is running
in “cargo test” mode (raw test binary launched by cargo’s test
harness, no orchestrator). Distinct from
KTSTR_ORCHESTRATED_ENV which marks cargo-ktstr orchestration;
KTSTR_CARGO_TEST_MODE is for narrower cases like in-process
VMM tests that adapt their resource budgets when run via
cargo test / cargo nextest. Read via
crate::cargo_test_mode::cargo_test_mode_active: treats
unset and empty as disabled; ANY non-empty value enables —
no trim, no special-case strings ("0" and "false" ENABLE
because they’re non-empty).