| 414 | }; |
| 415 | |
| 416 | TEST_F(ArrowRelTableTest, ScanArrowRelTableOverArrowNodeTable) { |
| 417 | createArrowPersonTable(*conn); |
| 418 | createArrowKnowsTable(*conn); |
| 419 | |
| 420 | auto countResult = conn->query( |
| 421 | "MATCH (:arrow_rel_person)-[:arrow_rel_knows]->(:arrow_rel_person) RETURN count(*)"); |
| 422 | ASSERT_TRUE(countResult->isSuccess()) << countResult->getErrorMessage(); |
| 423 | ASSERT_EQ(countResult->getNext()->getValue(0)->getValue<int64_t>(), 3); |
| 424 | |
| 425 | auto sumResult = conn->query( |
| 426 | "MATCH (:arrow_rel_person)-[e:arrow_rel_knows]->(:arrow_rel_person) RETURN sum(e.weight)"); |
| 427 | ASSERT_TRUE(sumResult->isSuccess()) << sumResult->getErrorMessage(); |
| 428 | ASSERT_EQ(sumResult->getNext()->getValue(0)->getValue<common::int128_t>(), 60); |
| 429 | } |
| 430 | |
| 431 | TEST_F(ArrowRelTableTest, ScanArrowRelTableOverNativeNodeTable) { |
| 432 | createNativePersonTable(*conn); |
nothing calls this directly
no test coverage detected