Changeset View
Changeset View
Standalone View
Standalone View
autotests/testhighlighter.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 94 | private: | |||
---|---|---|---|---|---|
95 | Repository *m_repo; | 95 | Repository *m_repo; | ||
96 | QSet<QString> m_coveredDefinitions; | 96 | QSet<QString> m_coveredDefinitions; | ||
97 | 97 | | |||
98 | private Q_SLOTS: | 98 | private Q_SLOTS: | ||
99 | void initTestCase() | 99 | void initTestCase() | ||
100 | { | 100 | { | ||
101 | QStandardPaths::enableTestMode(true); | 101 | QStandardPaths::enableTestMode(true); | ||
102 | m_repo = new Repository; | 102 | m_repo = new Repository; | ||
103 | initRepositorySearchPaths(*m_repo); | ||||
103 | } | 104 | } | ||
104 | 105 | | |||
105 | void cleanupTestCase() | 106 | void cleanupTestCase() | ||
106 | { | 107 | { | ||
107 | QFile coveredList(QLatin1String(TESTBUILDDIR "/covered-definitions.txt")); | 108 | QFile coveredList(QLatin1String(TESTBUILDDIR "/covered-definitions.txt")); | ||
108 | QFile uncoveredList(QLatin1String(TESTBUILDDIR "/uncovered-definition.txt")); | 109 | QFile uncoveredList(QLatin1String(TESTBUILDDIR "/uncovered-definition.txt")); | ||
109 | QVERIFY(coveredList.open(QFile::WriteOnly)); | 110 | QVERIFY(coveredList.open(QFile::WriteOnly)); | ||
110 | QVERIFY(uncoveredList.open(QFile::WriteOnly)); | 111 | QVERIFY(uncoveredList.open(QFile::WriteOnly)); | ||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |