Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ parse_multi_hop
Function
parse_multi_hop
nodedb/src/engine/graph/pattern/compiler/mod.rs:238–241 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
236
237
#[test]
238
fn parse_multi_hop() {
239
let q = parse(
"MATCH (a)-[:KNOWS]->(b)-[:KNOWS]->(c) RETURN a, c"
).unwrap();
240
assert_eq!(q.clauses[0].patterns[0].triples.len(), 2);
241
}
242
243
#[test]
244
fn parse_variable_length_path() {
Callers
nothing calls this directly
Calls
1
parse
Function · 0.70
Tested by
no test coverage detected