MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / test_SingleNode

Function test_SingleNode

tests/unit/test_algebraic_expression.c:1173–1189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171}
1172
1173void 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
1191void test_ShareableEntity() {
1192 const char *q =

Callers

nothing calls this directly

Calls 7

array_lenFunction · 0.85
array_freeFunction · 0.85
AST_FreeFunction · 0.85

Tested by

no test coverage detected