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

Function test_parser_pattern_comprehension

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

Source from the content-addressed store, hash-verified

5499
5500#[test]
5501fn test_parser_pattern_comprehension() {
5502 let query = "MATCH (a:Account)
5503 RETURN a.account_number,
5504 [(a)-[t:Transaction]->(m) | t.amount] as transaction_amounts,
5505 [(a)-[t:Transaction]->(m) | m.category] as merchant_categories
5506 LIMIT 10";
5507 let result = parse_query(query);
5508 assert!(result.is_ok(), "Pattern comprehension should parse");
5509}
5510
5511#[test]
5512fn test_parser_with_clause_aggregation() {

Callers

nothing calls this directly

Calls 1

parse_queryFunction · 0.85

Tested by

no test coverage detected