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

Function test_call_where_in_simple

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

Source from the content-addressed store, hash-verified

5262
5263#[test]
5264fn test_call_where_in_simple() {
5265 // Bug #2: Simple IN test with 2 items
5266 let query = r#"CALL system.list_functions()
5267YIELD name
5268WHERE name IN ('UPPER', 'LOWER');"#;
5269
5270 let result = parse_query(query);
5271 assert!(result.is_ok(), "Failed to parse simple WHERE IN");
5272
5273 let doc = result.unwrap();
5274 if let Statement::Call(ref call_stmt) = doc.statement {
5275 assert!(
5276 call_stmt.where_clause.is_some(),
5277 "WHERE clause should be present"
5278 );
5279 } else {
5280 panic!("Expected CallStatement");
5281 }
5282}
5283
5284#[test]
5285fn test_call_where_not_in() {

Callers

nothing calls this directly

Calls 2

parse_queryFunction · 0.85
unwrapMethod · 0.80

Tested by

no test coverage detected