![]() |
Qt 6.x
The Qt SDK
|
#include <qtestregistry_p.h>
Public Types | |
using | TestEntryFunction = int(*)(int argv, char **argc) |
Public Member Functions | |
void | registerTest (const QString &name, TestEntryFunction data) |
size_t | total () const |
TestEntryFunction | getTestEntryFunction (const QString &name) const |
QStringList | getAllTestNames () const |
Static Public Member Functions | |
static TestRegistry * | instance () |
Definition at line 27 of file qtestregistry_p.h.
using QTest::TestRegistry::TestEntryFunction = int(*)(int argv, char** argc) |
Definition at line 29 of file qtestregistry_p.h.
QStringList QTest::TestRegistry::getAllTestNames | ( | ) | const |
Definition at line 30 of file qtestregistry.cpp.
References QHash< Key, T >::keys().
TestRegistry::TestEntryFunction QTest::TestRegistry::getTestEntryFunction | ( | const QString & | name | ) | const |
Definition at line 24 of file qtestregistry.cpp.
References QHash< Key, T >::end(), QHash< Key, T >::find(), and it.
|
static |
Definition at line 13 of file qtestregistry.cpp.
void QTest::TestRegistry::registerTest | ( | const QString & | name, |
TestEntryFunction | data | ||
) |
Definition at line 18 of file qtestregistry.cpp.
References QHash< Key, T >::emplace().
|
inline |
Definition at line 34 of file qtestregistry_p.h.
References QHash< Key, T >::size().