| 127 | } |
| 128 | |
| 129 | bool 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 | |
| 149 | void TestProjectLoad::initTestCase() |
no test coverage detected