Changeset View
Changeset View
Standalone View
Standalone View
autotests/indexerextractortests.cpp
Show All 31 Lines | |||||
32 | 32 | | |||
33 | IndexerExtractorTests::IndexerExtractorTests(QObject* parent) : | 33 | IndexerExtractorTests::IndexerExtractorTests(QObject* parent) : | ||
34 | QObject(parent) | 34 | QObject(parent) | ||
35 | { | 35 | { | ||
36 | } | 36 | } | ||
37 | 37 | | |||
38 | QString IndexerExtractorTests::testFilePath(const QString& fileName) const | 38 | QString IndexerExtractorTests::testFilePath(const QString& fileName) const | ||
39 | { | 39 | { | ||
40 | return QLatin1String(INDEXER_TESTS_SAMPLE_FILES_PATH) + QDir::separator() + fileName; | 40 | return QLatin1String(INDEXER_TESTS_SAMPLE_FILES_PATH) + QLatin1Char('/') + fileName; | ||
41 | } | 41 | } | ||
42 | 42 | | |||
43 | void IndexerExtractorTests::benchMarkPlainTextExtractor() | 43 | void IndexerExtractorTests::benchMarkPlainTextExtractor() | ||
44 | { | 44 | { | ||
45 | PlainTextExtractor plugin(this); | 45 | PlainTextExtractor plugin(this); | ||
46 | 46 | | |||
47 | // generate a test file with varying number of words per line | 47 | // generate a test file with varying number of words per line | ||
48 | QTemporaryFile file(QStringLiteral("XXXXXX.txt")); | 48 | QTemporaryFile file(QStringLiteral("XXXXXX.txt")); | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |