From 218436b038c32998d44f4f1455b097ed7e8bbd27 Mon Sep 17 00:00:00 2001 From: Alexey Utkin Date: Thu, 1 Sep 2022 18:22:27 +0300 Subject: [PATCH] [BUG] Odd empty lines when generate with 'Verbose formatting' enabled #414 --- server/src/printers/TestsPrinter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/printers/TestsPrinter.cpp b/server/src/printers/TestsPrinter.cpp index ec80e25a4..47545e9f7 100644 --- a/server/src/printers/TestsPrinter.cpp +++ b/server/src/printers/TestsPrinter.cpp @@ -211,17 +211,13 @@ void TestsPrinter::genVerboseTestCase(const Tests::MethodDescription &methodDesc const Tests::MethodTestCase &testCase, const std::optional &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); @@ -248,6 +244,7 @@ void TestsPrinter::printLazyVariables(const Tests::MethodDescription &methodDesc for (const auto ¶mValue : testCase.paramValues) { printLazyVariables(paramValue.lazyParams, paramValue.lazyValues); } + ss << NL; } } @@ -270,6 +267,7 @@ void TestsPrinter::printLazyReferences(const Tests::MethodDescription &methodDes for (const auto &lazy : testCase.lazyReferences) { strAssignVar(lazy.varName, lazy.typeName); } + ss << NL; } } @@ -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, @@ -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,