MCPcopy Create free account
hub / github.com/KDE/labplot / testImportWrongFile

Method testImportWrongFile

tests/import_export/MCAP/MCAPFilterTest.cpp:144–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void MCAPFilterTest::testImportWrongFile() {
145 McapFilter filter;
146
147 Spreadsheet spreadsheet(QStringLiteral("test"), false);
148 const QString& fileName = QFINDTESTDATA(QLatin1String("data/empty_file.mcap"));
149 QCOMPARE(filter.getValidTopics(fileName).size(), 0);
150 QCOMPARE(filter.lastError(), i18n("Failed to read the file. Reason: %1", QLatin1String("file too small")));
151}
152
153QTEST_MAIN(MCAPFilterTest)

Callers

nothing calls this directly

Calls 3

getValidTopicsMethod · 0.80
lastErrorMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected