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

Function test_disabled_optimization

src/optimization/mod.rs:363–370  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

361
362 #[test]
363 fn test_disabled_optimization() {
364 let manager = OptimizationManager::new(false);
365 let result = manager.analyze_query("SELECT * FROM users WHERE id = 1").unwrap();
366
367 assert_eq!(result.pattern, QueryPattern::ComplexQuery);
368 assert!(!result.should_use_fast_path);
369 assert_eq!(result.recommended_execution_strategy, ExecutionStrategy::StandardExecution);
370 }
371
372 #[test]
373 fn test_schema_loading() {

Callers

nothing calls this directly

Calls 1

analyze_queryMethod · 0.45

Tested by

no test coverage detected