MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / entryInfoList

Method entryInfoList

lib/QuaZip/qztest/testquazipdir.cpp:272–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void TestQuaZipDir::entryInfoList()
273{
274 QString zipName = "entryInfoList.zip";
275 QStringList fileNames;
276 fileNames << "test.txt";
277 if (!createTestFiles(fileNames)) {
278 QFAIL("Couldn't create test files");
279 }
280 if (!createTestArchive(zipName, fileNames)) {
281 QFAIL("Couldn't create test archive");
282 }
283 removeTestFiles(fileNames);
284 QuaZip zip(zipName);
285 QDir curDir;
286 QVERIFY(zip.open(QuaZip::mdUnzip));
287 QuaZipDir dir(&zip, "/");
288 QCOMPARE(dir.entryInfoList().size(), 1);
289 QCOMPARE(dir.entryInfoList64().size(), 1);
290 zip.close();
291 curDir.remove(zipName);
292}
293
294void TestQuaZipDir::operators()
295{

Callers

nothing calls this directly

Calls 8

createTestFilesFunction · 0.85
createTestArchiveFunction · 0.85
removeTestFilesFunction · 0.85
entryInfoList64Method · 0.80
openMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected