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:
parent
e9c718e073
commit
057bdd5c6c
1 changed files with 7 additions and 0 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue