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

Function test_global_memory_monitor

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

Source from the content-addressed store, hash-verified

549
550 #[test]
551 fn test_global_memory_monitor() {
552 record_buffer_allocation(1024);
553 record_message_allocation(2048);
554
555 let stats = global_memory_monitor().get_stats();
556 assert!(stats.total_bytes() >= 3072); // May include previous test data
557 }
558
559 #[test]
560 fn test_config_from_env() {

Callers

nothing calls this directly

Calls 4

record_buffer_allocationFunction · 0.85
global_memory_monitorFunction · 0.85
get_statsMethod · 0.45

Tested by

no test coverage detected