| 361 | } |
| 362 | |
| 363 | void test_unwind() { |
| 364 | char *q = "UNWIND [1,2] as x"; |
| 365 | AST *ast = buildAST(q); |
| 366 | uint *segmentIndices = getASTSegmentIndices(ast); |
| 367 | TEST_ASSERT(1 == array_len(segmentIndices)); |
| 368 | |
| 369 | AST *astSegment = AST_NewSegment(ast, 0, segmentIndices[0]); |
| 370 | TEST_ASSERT(0 == raxSize(astSegment->referenced_entities)); |
| 371 | TEST_ASSERT(raxNotFound == raxFind(astSegment->referenced_entities, (unsigned char *)"x", 1)); |
| 372 | array_free(segmentIndices); |
| 373 | AST_Free(astSegment); |
| 374 | AST_Free(ast); |
| 375 | } |
| 376 | |
| 377 | void test_with() { |
| 378 | char *q = "MATCH (n),(m) WITH n as x RETURN x"; |
nothing calls this directly
no test coverage detected