MCPcopy Create free account
hub / github.com/erans/pgsqlite / test_memory_monitor_creation

Function test_memory_monitor_creation

src/protocol/memory_monitor.rs:438–444  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

436
437 #[test]
438 fn test_memory_monitor_creation() {
439 let monitor = MemoryMonitor::new();
440 let stats = monitor.get_stats();
441
442 assert_eq!(stats.total_bytes(), 0);
443 assert_eq!(stats.pressure_level, MemoryPressure::Low);
444 }
445
446 #[test]
447 fn test_memory_allocation_tracking() {

Callers

nothing calls this directly

Calls 1

get_statsMethod · 0.45

Tested by

no test coverage detected