()
| 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() { |
nothing calls this directly
no test coverage detected