diff options
author | Christian Stenger <[email protected]> | 2016-01-25 13:05:12 +0100 |
---|---|---|
committer | Christian Stenger <[email protected]> | 2016-02-01 08:31:52 +0000 |
commit | 992f9ed2223cd003d0d830980071edb0ef8e1d54 (patch) | |
tree | 13a95cf1b2e2dce404c70062047f704d1d11e362 /src/plugins/autotest/autotestunittests.cpp | |
parent | fd4d1c801f2be97a510f0934056ec483ac111f2c (diff) |
AutoTest: Use mark and sweep for parsing
This also removes caching from parser and the respective test info
files are gone now as well.
Change-Id: Ibcea68e446dea532d6addd2f16863738e497bca4
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/autotest/autotestunittests.cpp')
-rw-r--r-- | src/plugins/autotest/autotestunittests.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/plugins/autotest/autotestunittests.cpp b/src/plugins/autotest/autotestunittests.cpp index 6e58f877200..60f931b5e0f 100644 --- a/src/plugins/autotest/autotestunittests.cpp +++ b/src/plugins/autotest/autotestunittests.cpp @@ -105,11 +105,6 @@ void AutoTestUnitTests::testCodeParser() QCOMPARE(m_model->namedQuickTestsCount(), expectedNamedQuickTestsCount); QCOMPARE(m_model->unnamedQuickTestsCount(), expectedUnnamedQuickTestsCount); QCOMPARE(m_model->dataTagsCount(), expectedDataTagsCount); - - QCOMPARE(m_model->parser()->autoTestsCount(), expectedAutoTestsCount); - QCOMPARE(m_model->parser()->namedQuickTestsCount(), expectedNamedQuickTestsCount); - QCOMPARE(m_model->parser()->unnamedQuickTestsCount(), expectedUnnamedQuickTestsCount); - } void AutoTestUnitTests::testCodeParser_data() @@ -162,12 +157,6 @@ void AutoTestUnitTests::testCodeParserSwitchStartup() m_isQt4 ? 0 : expectedUnnamedQuickTestsCount.at(i)); QCOMPARE(m_model->dataTagsCount(), expectedDataTagsCount.at(i)); - - QCOMPARE(m_model->parser()->autoTestsCount(), expectedAutoTestsCount.at(i)); - QCOMPARE(m_model->parser()->namedQuickTestsCount(), - m_isQt4 ? 0 : expectedNamedQuickTestsCount.at(i)); - QCOMPARE(m_model->parser()->unnamedQuickTestsCount(), - m_isQt4 ? 0 : expectedUnnamedQuickTestsCount.at(i)); } } @@ -212,8 +201,6 @@ void AutoTestUnitTests::testCodeParserGTest() QVERIFY(parserSpy.wait(20000)); QCOMPARE(m_model->gtestNamesCount(), 6); - // 11 == 3 + 2 + 2 + 2 + 1 + 1, see below - QCOMPARE(m_model->parser()->gtestNamesAndSetsCount(), 11); QMultiMap<QString, int> expectedNamesAndSets; expectedNamesAndSets.insert(QStringLiteral("FactorialTest"), 3); @@ -233,10 +220,6 @@ void AutoTestUnitTests::testCodeParserGTest() QCOMPARE(m_model->namedQuickTestsCount(), 0); QCOMPARE(m_model->unnamedQuickTestsCount(), 0); QCOMPARE(m_model->dataTagsCount(), 0); - - QCOMPARE(m_model->parser()->autoTestsCount(), 0); - QCOMPARE(m_model->parser()->namedQuickTestsCount(), 0); - QCOMPARE(m_model->parser()->unnamedQuickTestsCount(), 0); } } // namespace Internal |