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
src_qtestlib_qtestcase.cpp File Reference

(c580a7b0fa09473fb6afaf3416c858b71171ad48)

#include <QTest>
#include <QSqlDatabase>
#include <QFontDatabase>
#include <initializer_list>
+ Include dependency graph for src_qtestlib_qtestcase.cpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TestBenchmark
 
class  MyTestClass
 
class  TestQString
 

Macros

#define ARG(...)   __VA_ARGS__
 

Functions

void closeAllDatabases ()
 
void wrapInFunction ()
 
void testInt ()
 [4]
 
void testObject ()
 [11]
 
void tstQDir ()
 
void quarterSecondSleep ()
 [22]
 
void verifyString ()
 [27]
 
void compareListToArray ()
 
void compareListToInitializerList ()
 

Macro Definition Documentation

◆ ARG

#define ARG ( ...)    __VA_ARGS__

Function Documentation

◆ closeAllDatabases()

void closeAllDatabases ( )

Definition at line 29 of file src_qtestlib_qtestcase.cpp.

Referenced by MyTestClass::cleanup().

+ Here is the caller graph for this function:

◆ compareListToArray()

void compareListToArray ( )

[34]

[34]

Definition at line 207 of file src_qtestlib_qtestcase.cpp.

References expected, QCOMPARE, and QFontDatabase::standardSizes().

+ Here is the call graph for this function:

◆ compareListToInitializerList()

void compareListToInitializerList ( )

[35]

[35]

Definition at line 215 of file src_qtestlib_qtestcase.cpp.

References ARG, QCOMPARE, and QFontDatabase::standardSizes().

+ Here is the call graph for this function:

◆ quarterSecondSleep()

void quarterSecondSleep ( )

[22]

[23]

[23]

Definition at line 173 of file src_qtestlib_qtestcase.cpp.

References QTest::qSleep().

+ Here is the call graph for this function:

◆ testInt()

void testInt ( )

[4]

[5]

[5]

[6]

[6]

[7]

[7]

[8]

[8]

[9]

[9]

[10]

[10]

Definition at line 75 of file src_qtestlib_qtestcase.cpp.

References contains(), QSqlDatabase::drivers(), i, j, QCOMPARE, QEXPECT_FAIL, QFAIL, QFETCH, QSKIP, and QTEST.

+ Here is the call graph for this function:

◆ testObject()

void testObject ( )

[11]

[11]

[18]

[18]

Definition at line 114 of file src_qtestlib_qtestcase.cpp.

References QTest::qExec().

Referenced by QTestPrivate::generateTestIdentifier(), QTest::qExec(), QTest::qExec(), QTest::qInit(), and runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tstQDir()

void tstQDir ( )

[19]

[19]

Definition at line 125 of file src_qtestlib_qtestcase.cpp.

References dir, QTest::ignoreMessage(), and QtWarningMsg.

+ Here is the call graph for this function:

◆ verifyString()

void verifyString ( )

[27]

[32]

[32] [33]

[33]

Definition at line 193 of file src_qtestlib_qtestcase.cpp.

References arg, QIODevice::errorString(), file, QFile::fileName(), QFile::open(), qPrintable, QVERIFY, QVERIFY2, and QIODeviceBase::WriteOnly.

+ Here is the call graph for this function:

◆ wrapInFunction()

void wrapInFunction ( )

[1]

[1]

[2]

[2]

Definition at line 42 of file src_qtestlib_qtestcase.cpp.

References QCOMPARE, and QVERIFY2.