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

Function execute_with_limit

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

Source from the content-addressed store, hash-verified

443
444 #[test]
445 fn execute_with_limit() {
446 let (csr, store, _dir) = make_social_graph();
447 let query =
448 super::super::compiler::parse("MATCH (a)-[:KNOWS]->(b) RETURN a, b LIMIT 2").unwrap();
449 let rows = execute(&query, &csr, &store, None).unwrap().rows;
450 assert_eq!(rows.len(), 2);
451 }
452
453 #[test]
454 fn execute_empty_result() {

Callers

nothing calls this directly

Calls 3

make_social_graphFunction · 0.85
executeFunction · 0.70
parseFunction · 0.50

Tested by

no test coverage detected