| 142 | } |
| 143 | |
| 144 | void 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 | |
| 153 | QTEST_MAIN(MCAPFilterTest) |
nothing calls this directly
no test coverage detected