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

Method insert

kdevplatform/serialization/tests/bench_itemrepository.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void BenchItemRepository::insert()
125{
126 QMutex mutex;
127 TestDataRepository repo("TestDataRepositoryInsert", &mutex);
128 const QVector<QString> data = generateData();
129 QVector<uint> indices;
130 QBENCHMARK_ONCE {
131 indices = insertData(data, repo);
132 repo.store();
133 }
134 Q_ASSERT(indices.size() == data.size());
135 QCOMPARE(repo.statistics().totalItems, uint(data.size()));
136}

Callers 15

registerRepositoryMethod · 0.45
putIntoFreeListMethod · 0.45
TestItemRepositoryClass · 0.45
bench_qSetMethod · 0.45
OpenProjectDialogMethod · 0.45
addGlobPatternMethod · 0.45
addLanguageSupportMethod · 0.45
languageMethod · 0.45
languagesForMimetypeMethod · 0.45
addDocumentMethod · 0.45
getImportsFromDUChainMethod · 0.45

Calls 3

generateDataFunction · 0.70
insertDataFunction · 0.70
storeMethod · 0.45

Tested by

no test coverage detected