MCPcopy Create free account
hub / github.com/KDE/kdevelop / processOutput

Method processOutput

plugins/debuggercommon/tests/testhelper.cpp:232–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void DebugeeslowOutputProcessor::processOutput()
233{
234 for (const auto& parameters : std::as_const(m_outputSpy)) {
235 QCOMPARE_EQ(parameters.size(), 1); // MIDebugSession::inferiorStdoutLines() has one parameter
236 const auto outputLines = parameters.constFirst().toStringList();
237 qDebug() << "Debuggee output:" << outputLines.join('\n');
238 // NOTE: outputLines can be empty at this point (very rarely)
239
240 for (const auto& line : outputLines) {
241 ++m_processedLineCount;
242 // debugeeslow outputs consecutive integers starting from 1
243 QCOMPARE(line, QString::number(m_processedLineCount));
244 }
245 }
246 m_outputSpy.clear();
247}
248
249int DebugeeslowOutputProcessor::processedLineCount() const
250{

Callers 1

Calls 4

joinMethod · 0.80
sizeMethod · 0.45
toStringListMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected