diff options
author | Christian Stenger <christian.stenger@qt.io> | 2019-05-21 10:14:55 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2019-05-23 12:20:27 +0000 |
commit | d1e00284a813b80fce0015ba6e7dbf469b83307a (patch) | |
tree | b152a1308cd3864b4b390b983910fa62d31ee188 /src/plugins/autotest | |
parent | 6189745a3b8d3a24627193f9ad8fb18fa84099ed (diff) |
AutoTest: Rename internally used struct
Change-Id: Ibf6d1f11c8d4cf77b44aded3aae212b84b492bcb
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r-- | src/plugins/autotest/gtest/gtesttreeitem.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/autotest/gtest/gtesttreeitem.cpp b/src/plugins/autotest/gtest/gtesttreeitem.cpp index 8d4ba9977b9..37aeb4d4070 100644 --- a/src/plugins/autotest/gtest/gtesttreeitem.cpp +++ b/src/plugins/autotest/gtest/gtesttreeitem.cpp @@ -191,7 +191,7 @@ TestConfiguration *GTestTreeItem::debugConfiguration() const return config; } -struct TestCases +struct GTestCases { QStringList filters; int testSetCount = 0; @@ -199,7 +199,7 @@ struct TestCases }; static void collectTestInfo(const GTestTreeItem *item, - QHash<QString, TestCases> &testCasesForProFile, + QHash<QString, GTestCases> &testCasesForProFile, bool ignoreCheckState) { QTC_ASSERT(item, return); @@ -239,7 +239,7 @@ QList<TestConfiguration *> GTestTreeItem::getTestConfigurations(bool ignoreCheck if (!project || type() != Root) return result; - QHash<QString, TestCases> testCasesForProFile; + QHash<QString, GTestCases> testCasesForProFile; for (int row = 0, count = childCount(); row < count; ++row) { auto child = static_cast<const GTestTreeItem *>(childAt(row)); collectTestInfo(child, testCasesForProFile, ignoreCheckState); @@ -278,14 +278,14 @@ QList<TestConfiguration *> GTestTreeItem::getTestConfigurationsForFile(const Uti if (!project || type() != Root) return result; - QHash<QString, TestCases> testCases; + QHash<QString, GTestCases> testCases; const QString &file = fileName.toString(); forAllChildren([&testCases, &file](TestTreeItem *node) { if (node->type() == Type::TestCase && node->filePath() == file) { QTC_ASSERT(node->parentItem(), return); const GTestTreeItem *testCase = static_cast<GTestTreeItem *>(node->parentItem()); QTC_ASSERT(testCase->type() == Type::TestSuite, return); - TestCases &cases = testCases[testCase->proFile()]; + GTestCases &cases = testCases[testCase->proFile()]; cases.filters.append( gtestFilter(testCase->state()).arg(testCase->name(), node->name())); cases.internalTargets.unite(node->internalTargets()); |