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

Function test_global_cache_manager

src/cache/memory_aware_manager.rs:555–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

553
554 #[test]
555 fn test_global_cache_manager() {
556 let cache = create_global_cache::<String, String>("global_test".to_string());
557 cache.insert("test".to_string(), "value".to_string());
558
559 let stats = global_cache_manager().get_stats();
560 assert!(stats.total_managed_caches > 0);
561 }
562}

Callers

nothing calls this directly

Calls 3

global_cache_managerFunction · 0.85
insertMethod · 0.45
get_statsMethod · 0.45

Tested by

no test coverage detected