()
| 5381 | |
| 5382 | #[test] |
| 5383 | fn test_call_valid_without_where() { |
| 5384 | // Sanity test: CALL without WHERE should still work |
| 5385 | let query = r#"CALL system.list_functions() |
| 5386 | YIELD name, category, description;"#; |
| 5387 | |
| 5388 | let result = parse_query(query); |
| 5389 | assert!(result.is_ok(), "Valid CALL without WHERE should parse"); |
| 5390 | |
| 5391 | let doc = result.unwrap(); |
| 5392 | if let Statement::Call(ref call_stmt) = doc.statement { |
| 5393 | assert!(call_stmt.yield_clause.is_some(), "YIELD should be present"); |
| 5394 | assert!( |
| 5395 | call_stmt.where_clause.is_none(), |
| 5396 | "WHERE should not be present" |
| 5397 | ); |
| 5398 | } else { |
| 5399 | panic!("Expected CallStatement"); |
| 5400 | } |
| 5401 | } |
| 5402 | |
| 5403 | #[test] |
| 5404 | fn test_call_valid_without_yield() { |
nothing calls this directly
no test coverage detected