forked from qt-creator/qt-creator
AutoTest: Adapt Type enum
Follow the official terms used by the test frameworks. In detail this means Google test now uses TestSuite and TestCase and the value for a normal function has been simplified to TestFunction. Beside the visual change there is no change in functionality. Change-Id: Idf541d07fa3469e04a699d46f4625ff9075d5b6f Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -118,7 +118,7 @@ bool GTestResult::matches(const TestTreeItem *treeItem) const
|
||||
|
||||
bool GTestResult::matchesTestFunctionOrSet(const TestTreeItem *treeItem) const
|
||||
{
|
||||
if (treeItem->type() != TestTreeItem::TestFunctionOrSet)
|
||||
if (treeItem->type() != TestTreeItem::TestCase)
|
||||
return false;
|
||||
|
||||
const QString testItemTestSet = treeItem->parentItem()->name() + '.' + treeItem->name();
|
||||
@@ -127,7 +127,7 @@ bool GTestResult::matchesTestFunctionOrSet(const TestTreeItem *treeItem) const
|
||||
|
||||
bool GTestResult::matchesTestCase(const TestTreeItem *treeItem) const
|
||||
{
|
||||
if (treeItem->type() != TestTreeItem::TestCase)
|
||||
if (treeItem->type() != TestTreeItem::TestSuite)
|
||||
return false;
|
||||
|
||||
return treeItem->name() == normalizeTestName(name());
|
||||
|
||||
Reference in New Issue
Block a user