test(core): close deferred coverage gaps

This commit is contained in:
2026-10-18 04:28:38 -07:00
parent 277daae89f
commit d10e3cd88e
3 changed files with 120 additions and 0 deletions
+10
View File
@@ -419,5 +419,15 @@ mod tests {
// The broadcast survives even though it shares topic/observer with the
// dropped addressed observations.
assert!(s.contains(&broadcast_id));
// The three youngest addressed (seq 0..2, ages 10/20/30) survive along
// with the broadcast (seq 100); seq 3..9 are dropped.
let mut seqs = std::collections::BTreeSet::new();
s.for_each_topic(b"t", 0, &mut |o| {
seqs.insert(o.seq);
});
assert_eq!(
seqs,
std::collections::BTreeSet::from_iter([0u64, 1, 2, 100])
);
}
}