MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / execute_optional_match

Function execute_optional_match

nodedb/src/engine/graph/pattern/executor/mod.rs:423–431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

421
422 #[test]
423 fn execute_optional_match() {
424 let (csr, store, _dir) = make_social_graph();
425 let query = super::super::compiler::parse(
426 "MATCH (a)-[:KNOWS]->(b) OPTIONAL MATCH (b)-[:LIKES]->(c) WHERE a = 'alice' RETURN a, b, c",
427 ).unwrap();
428 let rows = execute(&query, &csr, &store, None).unwrap().rows;
429 assert_eq!(rows.len(), 1);
430 assert_eq!(rows[0]["c"], "NULL");
431 }
432
433 #[test]
434 fn execute_anti_join() {

Callers

nothing calls this directly

Calls 3

make_social_graphFunction · 0.85
executeFunction · 0.70
parseFunction · 0.50

Tested by

no test coverage detected