Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtestregistry.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <QtTest/private/qtestregistry_p.h>
5
7
8QT_BEGIN_NAMESPACE
9
10namespace QTest {
12
17
22
25{
26 const auto it = m_tests.find(name);
27 return it != m_tests.end() ? it.value() : nullptr;
28}
29
31{
32 return m_tests.keys();
33}
34}
35
36QT_END_NAMESPACE
Q_GLOBAL_STATIC(TestRegistry, g_registry)
QT_REQUIRE_CONFIG(batch_test_support)