MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / convertResultToString

Method convertResultToString

test/test_helper/test_helper.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22std::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
35void TestHelper::executeScript(const std::string& cypherScript, Connection& conn) {
36 std::cout << "cypherScript: " << cypherScript << std::endl;

Callers

nothing calls this directly

Calls 7

lenMethod · 0.80
hasNextMethod · 0.45
getNextMethod · 0.45
push_backMethod · 0.45
toStringMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected