forked from qt-creator/qt-creator
AutoTest: Remove dead entities
Mostly unused functions which where planned to be used or which have become obsolete due to numerous refactorings. Change-Id: I1c951ad7902c3180c5cc8d8d6ec2d9fa58693701 Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -44,7 +44,6 @@ public:
|
||||
void setFullName(const QString &fullName) { m_fullName = fullName; }
|
||||
QString fullName() const { return m_fullName; }
|
||||
void setStates(TestStates states) { m_state = states; }
|
||||
void setState(TestState state) { m_state |= state; }
|
||||
TestStates state() const { return m_state; }
|
||||
|
||||
QList<ITestConfiguration *> getAllTestConfigurations() const override;
|
||||
|
||||
@@ -44,7 +44,6 @@ public:
|
||||
bool modify(const TestParseResult *result) override;
|
||||
TestTreeItem *createParentGroupNode() const override;
|
||||
|
||||
void setStates(TestStates states) { m_state = states; }
|
||||
void setState(TestState state) { m_state |= state; }
|
||||
TestStates state() const { return m_state; }
|
||||
TestTreeItem *findChildByNameStateAndFile(const QString &name,
|
||||
|
||||
@@ -45,7 +45,6 @@ public:
|
||||
};
|
||||
|
||||
void clear() { m_cache.clear(); }
|
||||
bool isEmpty() const { return m_cache.isEmpty(); }
|
||||
|
||||
QVariantMap toSettings(const T &valueToIgnore) const
|
||||
{
|
||||
|
||||
@@ -283,11 +283,6 @@ void TestConfiguration::setProjectFile(const FilePath &projectFile)
|
||||
m_projectFile = projectFile;
|
||||
}
|
||||
|
||||
void TestConfiguration::setBuildDirectory(const FilePath &buildDirectory)
|
||||
{
|
||||
m_buildDir = buildDirectory;
|
||||
}
|
||||
|
||||
void TestConfiguration::setInternalTarget(const QString &target)
|
||||
{
|
||||
m_buildTargets.clear();
|
||||
@@ -309,9 +304,4 @@ bool DebuggableTestConfiguration::isDebugRunMode() const
|
||||
return m_runMode == TestRunMode::Debug || m_runMode == TestRunMode::DebugWithoutDeploy;
|
||||
}
|
||||
|
||||
ITestFramework *TestConfiguration::framework() const
|
||||
{
|
||||
return static_cast<ITestFramework *>(testBase());
|
||||
}
|
||||
|
||||
} // namespace Autotest
|
||||
|
||||
@@ -77,17 +77,14 @@ public:
|
||||
|
||||
void setTestCases(const QStringList &testCases);
|
||||
void setProjectFile(const Utils::FilePath &projectFile);
|
||||
void setBuildDirectory(const Utils::FilePath &buildDirectory);
|
||||
void setInternalTarget(const QString &target);
|
||||
void setInternalTargets(const QSet<QString> &targets);
|
||||
void setOriginalRunConfiguration(ProjectExplorer::RunConfiguration *runConfig);
|
||||
|
||||
ITestFramework *framework() const;
|
||||
QStringList testCases() const { return m_testCases; }
|
||||
Utils::FilePath buildDirectory() const { return m_buildDir; }
|
||||
Utils::FilePath projectFile() const { return m_projectFile; }
|
||||
QSet<QString> internalTargets() const { return m_buildTargets; }
|
||||
ProjectExplorer::RunConfiguration *originalRunConfiguration() const { return m_origRunConfig; }
|
||||
Internal::TestRunConfiguration *runConfiguration() const { return m_runConfig; }
|
||||
bool isDeduced() const { return m_deducedConfiguration; }
|
||||
QString runConfigDisplayName() const { return m_deducedConfiguration ? m_deducedFrom
|
||||
@@ -113,7 +110,6 @@ public:
|
||||
: TestConfiguration(framework), m_runMode(runMode) {}
|
||||
|
||||
void setRunMode(TestRunMode mode) { m_runMode = mode; }
|
||||
TestRunMode runMode() const { return m_runMode; }
|
||||
bool isDebugRunMode() const;
|
||||
void setMixedDebugging(bool enable) { m_mixedDebugging = enable; }
|
||||
bool mixedDebugging() const { return m_mixedDebugging; }
|
||||
|
||||
@@ -26,12 +26,8 @@ public:
|
||||
bool useGlobalSettings() const { return m_useGlobalSettings; }
|
||||
void setRunAfterBuild(RunAfterBuildMode mode) {m_runAfterBuild = mode; }
|
||||
RunAfterBuildMode runAfterBuild() const { return m_runAfterBuild; }
|
||||
void setActiveFrameworks(const QHash<ITestFramework *, bool> &enabledFrameworks)
|
||||
{ m_activeTestFrameworks = enabledFrameworks; }
|
||||
QHash<ITestFramework *, bool> activeFrameworks() const { return m_activeTestFrameworks; }
|
||||
void activateFramework(const Utils::Id &id, bool activate);
|
||||
void setActiveTestTools(const QHash<ITestTool *, bool> &enabledTestTools)
|
||||
{ m_activeTestTools = enabledTestTools; }
|
||||
QHash<ITestTool *, bool> activeTestTools() const { return m_activeTestTools; }
|
||||
void activateTestTool(const Utils::Id &id, bool activate);
|
||||
Internal::ItemDataCache<Qt::CheckState> *checkStateCache() { return &m_checkStateCache; }
|
||||
|
||||
@@ -417,18 +417,6 @@ void TestResultsPane::onItemActivated(const QModelIndex &index)
|
||||
EditorManager::openEditorAt(Link{testResult.fileName(), testResult.line(), 0});
|
||||
}
|
||||
|
||||
void TestResultsPane::onRunAllTriggered()
|
||||
{
|
||||
TestRunner *runner = TestRunner::instance();
|
||||
runner->runTests(TestRunMode::Run, TestTreeModel::instance()->getAllTestCases());
|
||||
}
|
||||
|
||||
void TestResultsPane::onRunSelectedTriggered()
|
||||
{
|
||||
TestRunner *runner = TestRunner::instance();
|
||||
runner->runTests(TestRunMode::Run, TestTreeModel::instance()->getSelectedTests());
|
||||
}
|
||||
|
||||
void TestResultsPane::initializeFilterMenu()
|
||||
{
|
||||
const bool omitIntern = testSettings().omitInternalMsg();
|
||||
|
||||
@@ -78,8 +78,6 @@ private:
|
||||
explicit TestResultsPane(QObject *parent = nullptr);
|
||||
|
||||
void onItemActivated(const QModelIndex &index);
|
||||
void onRunAllTriggered();
|
||||
void onRunSelectedTriggered();
|
||||
void checkAllFilter(bool checked);
|
||||
void filterMenuTriggered(QAction *action);
|
||||
bool eventFilter(QObject *object, QEvent *event) override;
|
||||
|
||||
@@ -900,12 +900,6 @@ void TestTreeSortFilterModel::setSortMode(ITestTreeItem::SortMode sortMode)
|
||||
invalidate();
|
||||
}
|
||||
|
||||
void TestTreeSortFilterModel::setFilterMode(FilterMode filterMode)
|
||||
{
|
||||
m_filterMode = filterMode;
|
||||
invalidateFilter();
|
||||
}
|
||||
|
||||
void TestTreeSortFilterModel::toggleFilter(FilterMode filterMode)
|
||||
{
|
||||
m_filterMode = toFilterMode(m_filterMode ^ filterMode);
|
||||
|
||||
@@ -114,7 +114,6 @@ public:
|
||||
|
||||
explicit TestTreeSortFilterModel(TestTreeModel *sourceModel, QObject *parent = nullptr);
|
||||
void setSortMode(ITestTreeItem::SortMode sortMode);
|
||||
void setFilterMode(FilterMode filterMode);
|
||||
void toggleFilter(FilterMode filterMode);
|
||||
static FilterMode toFilterMode(int f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user