| 20 | } |
| 21 | |
| 22 | std::vector<std::string> TestHelper::convertResultToString(QueryResult& queryResult, |
| 23 | bool checkOutputOrder) { |
| 24 | std::vector<std::string> actualOutput; |
| 25 | while (queryResult.hasNext()) { |
| 26 | auto tuple = queryResult.getNext(); |
| 27 | actualOutput.push_back(tuple->toString(std::vector<uint32_t>(tuple->len(), 0))); |
| 28 | } |
| 29 | if (!checkOutputOrder) { |
| 30 | sort(actualOutput.begin(), actualOutput.end()); |
| 31 | } |
| 32 | return actualOutput; |
| 33 | } |
| 34 | |
| 35 | void TestHelper::executeScript(const std::string& cypherScript, Connection& conn) { |
| 36 | std::cout << "cypherScript: " << cypherScript << std::endl; |