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

Method convertResultToString

test/test_runner/test_runner.cpp:387–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387std::vector<std::string> TestRunner::convertResultToString(QueryResult& queryResult,
388 bool checkOutputOrder, bool checkColumnNames) {
389 std::vector<std::string> actualOutput;
390 if (checkColumnNames) {
391 actualOutput.push_back(convertResultColumnsToString(queryResult));
392 }
393 while (queryResult.hasNext()) {
394 const auto tuple = queryResult.getNext();
395 actualOutput.push_back(tuple->toString(std::vector<uint32_t>(tuple->len(), 0)));
396 }
397 if (!checkOutputOrder) {
398 std::ranges::sort(actualOutput);
399 // NOTE: If you wish to change this sorting in a
400 // way that alters its result, you may break existing
401 // hashed test cases
402 }
403 return actualOutput;
404}
405
406std::string TestRunner::convertResultToMD5Hash(QueryResult& queryResult, bool checkOutputOrder,
407 bool checkColumnNames) {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected