B2-3d: status shows a survival-only record on a generation that no longer routes

cargo-mutants on the 3d diff missed `|| -> &&` in render_supervision: no
test held meters with only survival entries under an unrouted generation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-30 12:39:32 +02:00
commit 057bdd5c6c

View file

@ -15334,6 +15334,13 @@ mod tests {
// An unrouted, unmetered target shows no route line at all.
let lines = render_supervision("plain", Some(&unrouted_generation()?), None, now).join("\n");
assert!(!lines.contains("route actuations"), "{lines}");
// A generation that no longer routes, whose meters hold only survival
// actuations, still shows the record.
let mut survived = TargetSupervision::new("plain");
survived.route_survivals = vec![now - 1];
let lines =
render_supervision("plain", Some(&unrouted_generation()?), Some(&survived), now).join("\n");
assert!(lines.contains("route survival actuations 1 in window"), "{lines}");
Ok(())
}