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

Function generateLines

kdevplatform/outputview/tests/test_outputmodel.cpp:26–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26QStringList generateLines()
27{
28 const int numLines = 10000;
29 QStringList outputlines;
30 do {
31 outputlines << buildCompilerActionLine();
32 outputlines << buildCppCheckInformationLine();
33 for (TestPathType pathType :
34#ifdef Q_OS_WIN
35 {WindowsFilePathNoSpaces, WindowsFilePathWithSpaces}
36#else
37 {UnixFilePathNoSpaces, UnixFilePathWithSpaces}
38#endif
39 ) {
40 outputlines << buildCompilerErrorLine(pathType);
41 outputlines << buildCompilerLine(pathType);
42 outputlines << buildCppCheckErrorLine(pathType);
43 outputlines << buildPythonErrorLine(pathType);
44 }
45 }
46 while(outputlines.size() < numLines ); // gives us numLines (-ish)
47 return outputlines;
48}
49
50QStringList generateLongLine()
51{

Callers 1

bench_dataMethod · 0.85

Calls 7

buildCompilerActionLineFunction · 0.85
buildCompilerErrorLineFunction · 0.85
buildCompilerLineFunction · 0.85
buildCppCheckErrorLineFunction · 0.85
buildPythonErrorLineFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected