Skip to content

Commit b7a3da5

Browse files
committed
Move test resource pathsto 'res' directory.
1 parent 40f186c commit b7a3da5

13 files changed

+16
-16
lines changed

tests/ImportOdsTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void ImportOdsTest::testGetDataExcludeInvalidColumn() const
145145
void ImportOdsTest::benchmarkGetData()
146146
{
147147
QSKIP("Skip benchmark.");
148-
QFile testFile(QStringLiteral(":/bigFile.ods"));
148+
QFile testFile(QStringLiteral(":/res/bigFile.ods"));
149149
ImportOds importOds(testFile);
150150
auto [success, sheetNames]{importOds.getSheetNames()};
151151
QCOMPARE(success, true);
@@ -173,7 +173,7 @@ void ImportOdsTest::testEmittingProgressPercentChangedSmallFile() const
173173

174174
void ImportOdsTest::testEmittingProgressPercentChangedBigFile()
175175
{
176-
QFile testFile(QStringLiteral(":/mediumFile.ods"));
176+
QFile testFile(QStringLiteral(":/res/mediumFile.ods"));
177177
ImportOds importOds(testFile);
178178
ImportCommon::checkEmittingProgressPercentChangedBigFile(importOds);
179179
}
@@ -188,7 +188,7 @@ void ImportOdsTest::testInvalidSheetName() const
188188
void ImportOdsTest::testDamagedFile()
189189
{
190190
const QString sheet{QString::fromLatin1("mySheet")};
191-
QFile testFile(QString::fromLatin1(":/testOds_damaged.xlsx"));
191+
QFile testFile(QString::fromLatin1(":/res/testOds_damaged.xlsx"));
192192
ImportOds importOds(testFile);
193193
QCOMPARE(importOds.getSheetNames().first, false);
194194
QCOMPARE(importOds.getColumnTypes(sheet).first, false);

tests/ImportOdsTest.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ private Q_SLOTS:
5050
static void testDamagedFile();
5151

5252
private:
53-
const QString testFileName_{QStringLiteral(":/testOds.ods")};
54-
const QString templateFileName_{QStringLiteral(":/emptyOds.ods")};
53+
const QString testFileName_{QStringLiteral(":/res/testOds.ods")};
54+
const QString templateFileName_{QStringLiteral(":/res/emptyOds.ods")};
5555
};

tests/ImportXlsxTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ void ImportXlsxTest::testEmittingProgressPercentChangedSmallFile() const
306306

307307
void ImportXlsxTest::testEmittingProgressPercentChangedBigFile()
308308
{
309-
QFile testFile(QStringLiteral(":/mediumFile.xlsx"));
309+
QFile testFile(QStringLiteral(":/res/mediumFile.xlsx"));
310310
ImportXlsx importXlsx(testFile);
311311
ImportCommon::checkEmittingProgressPercentChangedBigFile(importXlsx);
312312
}
@@ -321,7 +321,7 @@ void ImportXlsxTest::testInvalidSheetName() const
321321
void ImportXlsxTest::testDamagedFile()
322322
{
323323
const QString sheet{QString::fromLatin1("mySheet")};
324-
QFile testFile(QString::fromLatin1(":/testXlsx_damaged.xlsx"));
324+
QFile testFile(QString::fromLatin1(":/res/testXlsx_damaged.xlsx"));
325325
ImportXlsx importXlsx(testFile);
326326
QCOMPARE(importXlsx.getSheetNames().first, false);
327327
QCOMPARE(importXlsx.getColumnTypes(sheet).first, false);

tests/ImportXlsxTest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private Q_SLOTS:
6969
QVector<QVector<QVariant>> convertDataToUseSharedStrings(
7070
const QVector<QVector<QVariant>>& inputData) const;
7171

72-
const QString testFileName_{QStringLiteral(":/testXlsx.xlsx")};
72+
const QString testFileName_{QStringLiteral(":/res/testXlsx.xlsx")};
7373
const QString templateFileName_{QStringLiteral(":/template.xlsx")};
7474

7575
const QVector<std::pair<QString, QString>> sheets_{
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)