Skip to content

Commit 218436b

Browse files
alexey-utkinladisgin
authored andcommitted
[BUG] Odd empty lines when generate with 'Verbose formatting' enabled #414
1 parent 54c62ba commit 218436b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/printers/TestsPrinter.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,13 @@ void TestsPrinter::genVerboseTestCase(const Tests::MethodDescription &methodDesc
211211
const Tests::MethodTestCase &testCase,
212212
const std::optional<LineInfo::PredicateInfo> &predicateInfo) {
213213
TestsPrinter::verboseParameters(methodDescription, testCase);
214-
ss << NL;
215214

216215
printLazyVariables(methodDescription, testCase, true);
217-
ss << NL;
218216

219217
printLazyReferences(methodDescription, testCase, true);
220-
ss << NL;
221218

222219
if (!testCase.isError()) {
223220
TestsPrinter::verboseOutputVariable(methodDescription, testCase);
224-
ss << NL;
225221
}
226222
TestsPrinter::verboseFunctionCall(methodDescription, testCase);
227223
markTestedFunctionCallIfNeed(methodDescription.name, testCase);
@@ -248,6 +244,7 @@ void TestsPrinter::printLazyVariables(const Tests::MethodDescription &methodDesc
248244
for (const auto &paramValue : testCase.paramValues) {
249245
printLazyVariables(paramValue.lazyParams, paramValue.lazyValues);
250246
}
247+
ss << NL;
251248
}
252249
}
253250

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

@@ -388,6 +386,7 @@ void TestsPrinter::verboseParameters(const Tests::MethodDescription &methodDescr
388386
}
389387
printClassObject(methodDescription, testCase);
390388
printFunctionParameters(methodDescription, testCase, true);
389+
ss << NL;
391390
}
392391

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

464464
void TestsPrinter::verboseFunctionCall(const Tests::MethodDescription &methodDescription,

0 commit comments

Comments
 (0)