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

Function test_enable_disable_caching

src/optimization/statement_cache_optimizer.rs:374–384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372
373 #[test]
374 fn test_enable_disable_caching() {
375 let optimization_manager = Arc::new(OptimizationManager::new(true));
376 let mut optimizer = StatementCacheOptimizer::new(100, optimization_manager);
377
378 // Test enabling/disabling
379 optimizer.set_enabled(false);
380 optimizer.set_enabled(true);
381
382 // Should be able to clear cache
383 optimizer.clear_cache();
384 }
385}

Callers

nothing calls this directly

Calls 2

set_enabledMethod · 0.80
clear_cacheMethod · 0.45

Tested by

no test coverage detected