()
| 230 | |
| 231 | #[test] |
| 232 | fn lru_eviction() { |
| 233 | let mut cache = RecentWindowCache::new(500, 3_600_000); |
| 234 | cache.insert(T1, "m", make_partition(1000, 2000, 20)); // 320 bytes |
| 235 | cache.insert(T1, "m", make_partition(3000, 4000, 20)); // 320 bytes → evicts first |
| 236 | assert_eq!(cache.len(), 1); |
| 237 | assert!(cache.get(T1, "m", 1000).is_none()); |
| 238 | assert!(cache.get(T1, "m", 3000).is_some()); |
| 239 | } |
| 240 | } |
nothing calls this directly
no test coverage detected