Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTest::TestRegistry Class Reference

#include <qtestregistry_p.h>

+ Collaboration diagram for QTest::TestRegistry:

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 TestRegistryinstance ()
 

Detailed Description

Definition at line 27 of file qtestregistry_p.h.

Member Typedef Documentation

◆ TestEntryFunction

using QTest::TestRegistry::TestEntryFunction = int(*)(int argv, char** argc)

Definition at line 29 of file qtestregistry_p.h.

Member Function Documentation

◆ getAllTestNames()

QStringList QTest::TestRegistry::getAllTestNames ( ) const

Definition at line 30 of file qtestregistry.cpp.

References QHash< Key, T >::keys().

+ Here is the call graph for this function:

◆ getTestEntryFunction()

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.

+ Here is the call graph for this function:

◆ instance()

TestRegistry * QTest::TestRegistry::instance ( )
static

Definition at line 13 of file qtestregistry.cpp.

◆ registerTest()

void QTest::TestRegistry::registerTest ( const QString & name,
TestEntryFunction data )

Definition at line 18 of file qtestregistry.cpp.

References QHash< Key, T >::emplace().

+ Here is the call graph for this function:

◆ total()

size_t QTest::TestRegistry::total ( ) const
inline

Definition at line 34 of file qtestregistry_p.h.

References QHash< Key, T >::size().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: