()
| 460 | |
| 461 | #[test] |
| 462 | fn test_memory_deallocation() { |
| 463 | let monitor = MemoryMonitor::new(); |
| 464 | monitor.reset_stats(); // Reset to avoid interference from other tests |
| 465 | |
| 466 | monitor.record_buffer_allocation(2048); |
| 467 | monitor.record_buffer_deallocation(1024); |
| 468 | |
| 469 | let stats = monitor.get_stats(); |
| 470 | assert_eq!(stats.buffer_pool_bytes, 1024); |
| 471 | } |
| 472 | |
| 473 | #[test] |
| 474 | fn test_pressure_level_calculation() { |
nothing calls this directly
no test coverage detected