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

Function parse_where_comparison

nodedb/src/engine/graph/pattern/compiler/mod.rs:281–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

279
280 #[test]
281 fn parse_where_comparison() {
282 let q = parse("MATCH (a)-[:HAS]->(b) WHERE a.age > 25 RETURN a").unwrap();
283 match &q.where_predicates[0] {
284 WherePredicate::Comparison { op, value, .. } => {
285 assert_eq!(*op, ComparisonOp::Gt);
286 assert_eq!(value, "25");
287 }
288 _ => panic!("expected Comparison predicate"),
289 }
290 }
291
292 #[test]
293 fn parse_where_not_exists() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected