| 168 | } |
| 169 | |
| 170 | void ProjectModelPerformanceTest::addSmallTree() |
| 171 | { |
| 172 | QElapsedTimer timer; |
| 173 | timer.start(); |
| 174 | for( int i = 0; i < SMALL_WIDTH; i++ ) { |
| 175 | auto* item = new ProjectFolderItem( nullptr, Path(QUrl::fromLocalFile( QStringLiteral( "/f%1" ).arg( i ) )) ); |
| 176 | generateChilds( item, SMALL_WIDTH, SMALL_DEPTH ); |
| 177 | model->appendRow( item ); |
| 178 | } |
| 179 | qDebug() << "addSmallTree" << timer.elapsed(); |
| 180 | } |
| 181 | |
| 182 | int main( int argc, char** argv ) |
| 183 | { |
nothing calls this directly
no test coverage detected