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

Function test_parser_with_then_match

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

Source from the content-addressed store, hash-verified

5551
5552#[test]
5553fn test_parser_with_then_match() {
5554 let query = "MATCH (a:Account)-[t:Transaction]->(m:Merchant)
5555 WITH a, m, count(t) as transaction_count
5556 MATCH (m)<-[:Transaction]-(other:Account)
5557 RETURN a.account_number, other.account_number";
5558 let result = parse_query(query);
5559 assert!(
5560 result.is_ok(),
5561 "WITH then MATCH should parse. Error: {:?}",
5562 result.err()
5563 );
5564}

Callers

nothing calls this directly

Calls 1

parse_queryFunction · 0.85

Tested by

no test coverage detected