Commit 640560cb authored by Volker Krause's avatar Volker Krause
Browse files

Remove unit test for the old API

This one will break once we change the extractor script metadata to use
the new more detailed type information.
parent 9fbe9832
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
*/ */
#include <KItinerary/AbstractExtractor> #include <KItinerary/AbstractExtractor>
#include <KItinerary/Extractor>
#include <KItinerary/ExtractorDocumentNode> #include <KItinerary/ExtractorDocumentNode>
#include <KItinerary/ExtractorDocumentNodeFactory> #include <KItinerary/ExtractorDocumentNodeFactory>
#include <KItinerary/ExtractorEngine> #include <KItinerary/ExtractorEngine>
...@@ -39,21 +38,6 @@ private Q_SLOTS: ...@@ -39,21 +38,6 @@ private Q_SLOTS:
QVERIFY(!repo.extractorByName(u"I-DONT-EXIST")); QVERIFY(!repo.extractorByName(u"I-DONT-EXIST"));
} }
void testApplyFilter()
{
ExtractorRepository repo;
std::vector<Extractor> extractors;
repo.extractorsForBarcode(QStringLiteral("i0CVxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxX"), extractors);
QCOMPARE(extractors.size(), 1);
QVERIFY(extractors[0].name().startsWith(QLatin1String("sncf")));
extractors.clear();
repo.extractorsForContent(QStringLiteral("PNR:1234567890,TRAIN:12345,DOJ:dd-mm-yyyy,TIME:hh:mm,SL,A TO B,John Doe+2,S7 49 S7 52 S7 55,FARE:140,SC:10+PG CHGS."), extractors);
QCOMPARE(extractors.size(), 1);
QVERIFY(extractors[0].name().startsWith(QLatin1String("irctc")));
}
void testExtractorsForNode() void testExtractorsForNode()
{ {
ExtractorEngine engine; ExtractorEngine engine;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment