| 7 | class ResultValueTest : public ApiTest {}; |
| 8 | |
| 9 | TEST_F(ResultValueTest, getNextException) { |
| 10 | auto query = "MATCH (o:organisation) RETURN o.name"; |
| 11 | auto result = conn->query(query); |
| 12 | try { |
| 13 | for (int i = 0; i < 4; i++) { |
| 14 | result->getNext(); |
| 15 | } |
| 16 | FAIL(); |
| 17 | } catch (RuntimeException& exception) { |
| 18 | ASSERT_STREQ("Runtime exception: No more tuples in QueryResult, Please check hasNext() " |
| 19 | "before calling getNext().", |
| 20 | exception.what()); |
| 21 | } catch (Exception& exception) { |
| 22 | FAIL(); |
| 23 | } catch (std::exception& exception) { |
| 24 | FAIL(); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | TEST_F(ResultValueTest, getResultValueException) { |
| 29 | auto query = "MATCH (a:person) RETURN a.fName"; |
nothing calls this directly
no test coverage detected