()
| 409 | |
| 410 | #[test] |
| 411 | fn execute_two_hops() { |
| 412 | let (csr, store, _dir) = make_social_graph(); |
| 413 | let query = super::super::compiler::parse( |
| 414 | "MATCH (a)-[:KNOWS]->(b)-[:KNOWS]->(c) WHERE a = 'alice' RETURN a, b, c", |
| 415 | ) |
| 416 | .unwrap(); |
| 417 | let rows = execute(&query, &csr, &store, None).unwrap().rows; |
| 418 | assert_eq!(rows.len(), 1); |
| 419 | assert_eq!(rows[0]["c"], "carol"); |
| 420 | } |
| 421 | |
| 422 | #[test] |
| 423 | fn execute_optional_match() { |
nothing calls this directly
no test coverage detected