| 18 | using namespace lbug::testing; |
| 19 | |
| 20 | static void assertMatchPersonCountStar(Connection* conn) { |
| 21 | auto result = conn->query("MATCH (a:person) RETURN COUNT(*)"); |
| 22 | ASSERT_TRUE(result->hasNext()); |
| 23 | auto tuple = result->getNext(); |
| 24 | ASSERT_EQ(tuple->getValue(0)->getValue<int64_t>(), 8); |
| 25 | ASSERT_FALSE(result->hasNext()); |
| 26 | } |
| 27 | |
| 28 | TEST_F(ApiTest, BasicConnect) { |
| 29 | assertMatchPersonCountStar(conn.get()); |
no test coverage detected