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

Function test_call_valid_without_yield

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

Source from the content-addressed store, hash-verified

5402
5403#[test]
5404fn test_call_valid_without_yield() {
5405 // Sanity test: CALL without YIELD should work
5406 let query = r#"CALL system.list_functions();"#;
5407
5408 let result = parse_query(query);
5409 assert!(result.is_ok(), "Valid CALL without YIELD should parse");
5410
5411 let doc = result.unwrap();
5412 if let Statement::Call(ref call_stmt) = doc.statement {
5413 assert!(
5414 call_stmt.yield_clause.is_none(),
5415 "YIELD should not be present"
5416 );
5417 assert!(
5418 call_stmt.where_clause.is_none(),
5419 "WHERE should not be present"
5420 );
5421 } else {
5422 panic!("Expected CallStatement");
5423 }
5424}
5425
5426// ========================================================================
5427// Pattern and Complex Query Parser Tests

Callers

nothing calls this directly

Calls 2

parse_queryFunction · 0.85
unwrapMethod · 0.80

Tested by

no test coverage detected