Skip to content

Commit

Permalink
[BUG] Odd empty lines when generate with 'Verbose formatting' enabled #…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-utkin authored and ladisgin committed Sep 2, 2022
1 parent 54c62ba commit 218436b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/printers/TestsPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,17 +211,13 @@ void TestsPrinter::genVerboseTestCase(const Tests::MethodDescription &methodDesc
const Tests::MethodTestCase &testCase,
const std::optional<LineInfo::PredicateInfo> &predicateInfo) {
TestsPrinter::verboseParameters(methodDescription, testCase);
ss << NL;

printLazyVariables(methodDescription, testCase, true);
ss << NL;

printLazyReferences(methodDescription, testCase, true);
ss << NL;

if (!testCase.isError()) {
TestsPrinter::verboseOutputVariable(methodDescription, testCase);
ss << NL;
}
TestsPrinter::verboseFunctionCall(methodDescription, testCase);
markTestedFunctionCallIfNeed(methodDescription.name, testCase);
Expand All @@ -248,6 +244,7 @@ void TestsPrinter::printLazyVariables(const Tests::MethodDescription &methodDesc
for (const auto &paramValue : testCase.paramValues) {
printLazyVariables(paramValue.lazyParams, paramValue.lazyValues);
}
ss << NL;
}
}

Expand All @@ -270,6 +267,7 @@ void TestsPrinter::printLazyReferences(const Tests::MethodDescription &methodDes
for (const auto &lazy : testCase.lazyReferences) {
strAssignVar(lazy.varName, lazy.typeName);
}
ss << NL;
}
}

Expand Down Expand Up @@ -388,6 +386,7 @@ void TestsPrinter::verboseParameters(const Tests::MethodDescription &methodDescr
}
printClassObject(methodDescription, testCase);
printFunctionParameters(methodDescription, testCase, true);
ss << NL;
}

void TestsPrinter::printFunctionParameters(const Tests::MethodDescription &methodDescription,
Expand Down Expand Up @@ -459,6 +458,7 @@ void TestsPrinter::verboseOutputVariable(const Tests::MethodDescription &methodD
visitor::VerboseParameterVisitor(typesHandler, this, true, types::PointerUsage::RETURN)
.visit(expectedType, PrinterUtils::EXPECTED, testCase.returnValue.view.get(), std::nullopt);
}
ss << NL;
}

void TestsPrinter::verboseFunctionCall(const Tests::MethodDescription &methodDescription,
Expand Down

0 comments on commit 218436b

Please sign in to comment.