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

Function fillProject

plugins/genericprojectmanager/tests/test_projectload.cpp:129–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129bool fillProject(int filesPerDir, int dirs, const TestProject& project, bool wait)
130{
131 for(int i=0; i < dirs; ++i) {
132 const QString name = "foox" + QString::number(i);
133 if (!QDir(project.dir->path()).mkdir(name)) {
134 return false;
135 }
136
137 if (!writeRandomStructure(project.dir->path() + "/" + name, filesPerDir)) {
138 return false;
139 }
140
141 if (wait) {
142 QTest::qWait(100);
143 }
144 }
145 return true;
146}
147}
148
149void TestProjectLoad::initTestCase()

Callers 2

addLotsOfFilesMethod · 0.85
addMultipleJobsMethod · 0.85

Calls 4

writeRandomStructureFunction · 0.85
mkdirMethod · 0.80
QDirClass · 0.50
pathMethod · 0.45

Tested by

no test coverage detected