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

Function generateLongLine

kdevplatform/outputview/tests/test_outputmodel.cpp:50–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50QStringList generateLongLine()
51{
52 const int objects = 100; // *.o files
53 const int libs = 20; // -l...
54 const int libPaths = 20; // -L...
55 QString line = QStringLiteral("g++ -m64 -Wl,-rpath,/home/gabo/md/qt/lib -o bin/flap_ui");
56 for(int i = 0; i < objects; ++i) {
57 line += QStringLiteral(" .obj/file%1.o").arg(i);
58 }
59 for(int i = 0; i < libPaths; ++i) {
60 line += QStringLiteral(" -Lsome/path/to/lib%1").arg(i);
61 }
62 for(int i = 0; i < libs; ++i) {
63 line += QStringLiteral(" -lsomelib%1").arg(i);
64 }
65 return QStringList() << line;
66}
67
68void TestOutputModel::bench()
69{

Callers 1

bench_dataMethod · 0.85

Calls 1

QStringListClass · 0.85

Tested by

no test coverage detected