| 1171 | } |
| 1172 | |
| 1173 | void test_SingleNode() { |
| 1174 | const char *q = "MATCH (p:Person) RETURN p"; |
| 1175 | AST *master_ast; |
| 1176 | AlgebraicExpression **actual = build_algebraic_expression(q, &master_ast); |
| 1177 | uint exp_count = array_len(actual); |
| 1178 | TEST_ASSERT(exp_count == 1); |
| 1179 | |
| 1180 | AlgebraicExpression *expected[1]; |
| 1181 | expected[0] = AlgebraicExpression_FromString("p", _matrices); |
| 1182 | |
| 1183 | compare_algebraic_expressions(actual, expected, 1); |
| 1184 | |
| 1185 | // Clean up. |
| 1186 | free_algebraic_expressions(actual, exp_count); |
| 1187 | array_free(actual); |
| 1188 | AST_Free(master_ast); |
| 1189 | } |
| 1190 | |
| 1191 | void test_ShareableEntity() { |
| 1192 | const char *q = |
nothing calls this directly
no test coverage detected