MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / test_call_valid_without_where

Function test_call_valid_without_where

graphlite/src/ast/parser.rs:5383–5401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5381
5382#[test]
5383fn test_call_valid_without_where() {
5384 // Sanity test: CALL without WHERE should still work
5385 let query = r#"CALL system.list_functions()
5386YIELD 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]
5404fn test_call_valid_without_yield() {

Callers

nothing calls this directly

Calls 2

parse_queryFunction · 0.85
unwrapMethod · 0.80

Tested by

no test coverage detected