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

Method testUtf16NotSupported

tests/import_export/ASCII/AsciiFilterTest.cpp:2061–2074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2059}
2060
2061void AsciiFilterTest::testUtf16NotSupported() {
2062 Spreadsheet spreadsheet(QStringLiteral("test"), false);
2063 const QString& fileName = QFINDTESTDATA(QLatin1String("data/utf16.txt"));
2064
2065 AsciiFilter filter;
2066
2067 // preview
2068 filter.preview(fileName, 100);
2069 QCOMPARE(filter.lastError(), AsciiFilter::statusToString(AsciiFilter::Status::UTF16NotSupported));
2070
2071 // read
2072 filter.readDataFromFile(fileName, &spreadsheet, AbstractFileFilter::ImportMode::Replace);
2073 QCOMPARE(filter.lastError(), AsciiFilter::statusToString(AsciiFilter::Status::UTF16NotSupported));
2074}
2075
2076// ##############################################################################
2077// ############################### skip comments ###############################

Callers

nothing calls this directly

Calls 3

lastErrorMethod · 0.80
previewMethod · 0.45
readDataFromFileMethod · 0.45

Tested by

no test coverage detected