| 59 | } |
| 60 | |
| 61 | void BenchQuickOpen::benchProjectFile_swap() |
| 62 | { |
| 63 | QScopedPointer<TestProject> project(getProjectWithFiles(2)); |
| 64 | QVector<ProjectFile> projectFiles; |
| 65 | KDevelop::forEachFile(project->projectItem(), [&projectFiles](ProjectFileItem* fileItem) { |
| 66 | projectFiles.push_back(ProjectFile{fileItem}); |
| 67 | }); |
| 68 | QCOMPARE(projectFiles.size(), 2); |
| 69 | |
| 70 | ProjectFile a = projectFiles.at(0); |
| 71 | ProjectFile b = projectFiles.at(1); |
| 72 | QBENCHMARK { |
| 73 | using std::swap; |
| 74 | swap(a, b); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | void BenchQuickOpen::benchProjectFileFilter_addRemoveProject() |
nothing calls this directly
no test coverage detected