()
| 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() { |
nothing calls this directly
no test coverage detected