Changeset View
Changeset View
Standalone View
Standalone View
outputview/tests/test_outputmodel.cpp
Show All 30 Lines | |||||
31 | { | 31 | { | ||
32 | } | 32 | } | ||
33 | 33 | | |||
34 | QStringList generateLines() | 34 | QStringList generateLines() | ||
35 | { | 35 | { | ||
36 | const int numLines = 10000; | 36 | const int numLines = 10000; | ||
37 | QStringList outputlines; | 37 | QStringList outputlines; | ||
38 | do { | 38 | do { | ||
39 | outputlines << buildCompilerErrorLine(); | | |||
40 | outputlines << buildCompilerLine(); | | |||
41 | outputlines << buildCompilerActionLine(); | 39 | outputlines << buildCompilerActionLine(); | ||
42 | outputlines << buildCppCheckErrorLine(); | | |||
43 | outputlines << buildCppCheckInformationLine(); | 40 | outputlines << buildCppCheckInformationLine(); | ||
44 | outputlines << buildPythonErrorLine(); | 41 | for (TestPathType pathType : {UnixFilePathNoSpaces, UnixFilePathWithSpaces}) { | ||
42 | outputlines << buildCompilerErrorLine(pathType); | ||||
43 | outputlines << buildCompilerLine(pathType); | ||||
44 | outputlines << buildCppCheckErrorLine(pathType); | ||||
45 | outputlines << buildPythonErrorLine(pathType); | ||||
46 | } | ||||
45 | } | 47 | } | ||
46 | while(outputlines.size() < numLines ); // gives us numLines (-ish) | 48 | while(outputlines.size() < numLines ); // gives us numLines (-ish) | ||
47 | return outputlines; | 49 | return outputlines; | ||
48 | } | 50 | } | ||
49 | 51 | | |||
50 | QStringList generateLongLine() | 52 | QStringList generateLongLine() | ||
51 | { | 53 | { | ||
52 | const int objects = 100; // *.o files | 54 | const int objects = 100; // *.o files | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |