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
QTest::Internal Namespace Reference

Classes

struct  Compare
 
struct  Compare< ComparisonOperation::Equal >
 
struct  Compare< ComparisonOperation::GreaterThan >
 
struct  Compare< ComparisonOperation::GreaterThanOrEqual >
 
struct  Compare< ComparisonOperation::LessThan >
 
struct  Compare< ComparisonOperation::LessThanOrEqual >
 
struct  Compare< ComparisonOperation::NotEqual >
 
class  HasInitMain
 
struct  QCborValueFormatter
 

Functions

template<typename T>
std::enable_if< HasInitMain< T >::value, void >::type callInitMain ()
 
template<typename T>
std::enable_if<!HasInitMain< T >::value, void >::type callInitMain ()
 
const char * toString (QSizePolicy::Policy p)
 
QByteArray toString (QSizePolicy::ControlTypes ct)
 
QByteArray toString (QSizePolicy sp)
 
Q_TESTLIB_EXPORT void throwOnFail ()
 
Q_TESTLIB_EXPORT void throwOnSkip ()
 
Q_TESTLIB_EXPORT void maybeThrowOnFail ()
 
Q_TESTLIB_EXPORT void maybeThrowOnSkip ()
 
Q_DECL_COLD_FUNCTION Q_TESTLIB_EXPORT QString formatTryTimeoutDebugMessage (q_no_char8_t::QUtf8StringView expr, int timeout, int actual)
 
Q_TESTLIB_EXPORT Q_DECL_COLD_FUNCTION const char * formatPropertyTestHelperFailure (char *msg, size_t maxMsgLen, const char *actual, const char *expected, const char *actualExpr, const char *expectedExpr)
 
template<typename T1>
const char * genericToString (const void *arg)
 
template<>
const char * genericToString< char * > (const void *arg)
 
template<>
const char * genericToString< std::nullptr_t > (const void *)
 
template<typename T>
const char * pointerToString (const void *arg)
 
template<typename T>
std::enable_if< QtPrivate::IsQEnumHelper< T >::Value, char * >::type toString (T e)
 
template<typename T>
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&std::is_enum_v< T >, char * >::type toString (const T &e)
 
template<typename T>
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&!std::is_enum_v< T >, char * >::type toString (const T &t)
 
template<typename F>
std::enable_if< QtPrivate::IsQEnumHelper< F >::Value, char * >::type toString (QFlags< F > f)
 
template<typename F>
std::enable_if<!QtPrivate::IsQEnumHelper< F >::Value, char * >::type toString (QFlags< F > f)
 

Variables

bool noCrashHandler = false
 
static bool failed = false
 

Detailed Description

Function Documentation

◆ callInitMain() [1/2]

template<typename T>
std::enable_if< HasInitMain< T >::value, void >::type QTest::Internal::callInitMain ( )

Definition at line 199 of file qtest.h.

◆ callInitMain() [2/2]

template<typename T>
std::enable_if<!HasInitMain< T >::value, void >::type QTest::Internal::callInitMain ( )

Definition at line 205 of file qtest.h.

◆ formatPropertyTestHelperFailure()

const char * QTest::Internal::formatPropertyTestHelperFailure ( char * msg,
size_t maxMsgLen,
const char * actual,
const char * expected,
const char * actualExpr,
const char * expectedExpr )

Definition at line 399 of file qtestresult.cpp.

◆ formatTryTimeoutDebugMessage()

QString QTest::Internal::formatTryTimeoutDebugMessage ( q_no_char8_t::QUtf8StringView expr,
int timeout,
int actual )

Definition at line 345 of file qtestcase.cpp.

◆ genericToString()

template<typename T1>
const char * QTest::Internal::genericToString ( const void * arg)

Definition at line 375 of file qtestcase.h.

◆ genericToString< char * >()

template<>
const char * QTest::Internal::genericToString< char * > ( const void * arg)
inline

Definition at line 381 of file qtestcase.h.

◆ genericToString< std::nullptr_t >()

template<>
const char * QTest::Internal::genericToString< std::nullptr_t > ( const void * )
inline

Definition at line 387 of file qtestcase.h.

◆ maybeThrowOnFail()

void QTest::Internal::maybeThrowOnFail ( )

Definition at line 195 of file qtestcase.cpp.

◆ maybeThrowOnSkip()

void QTest::Internal::maybeThrowOnSkip ( )

Definition at line 201 of file qtestcase.cpp.

◆ pointerToString()

template<typename T>
const char * QTest::Internal::pointerToString ( const void * arg)

Definition at line 392 of file qtestcase.h.

◆ throwOnFail()

void QTest::Internal::throwOnFail ( )

Definition at line 189 of file qtestcase.cpp.

◆ throwOnSkip()

void QTest::Internal::throwOnSkip ( )

Definition at line 190 of file qtestcase.cpp.

◆ toString() [1/8]

template<typename T>
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&std::is_enum_v< T >, char * >::type QTest::Internal::toString ( const T & e)
inline

Definition at line 51 of file qtesttostring.h.

◆ toString() [2/8]

template<typename T>
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&!std::is_enum_v< T >, char * >::type QTest::Internal::toString ( const T & t)
inline

Definition at line 57 of file qtesttostring.h.

◆ toString() [3/8]

template<typename F>
std::enable_if< QtPrivate::IsQEnumHelper< F >::Value, char * >::type QTest::Internal::toString ( QFlags< F > f)
inline

Definition at line 73 of file qtesttostring.h.

◆ toString() [4/8]

template<typename F>
std::enable_if<!QtPrivate::IsQEnumHelper< F >::Value, char * >::type QTest::Internal::toString ( QFlags< F > f)
inline

Definition at line 80 of file qtesttostring.h.

◆ toString() [5/8]

QByteArray QTest::Internal::toString ( QSizePolicy sp)
inline

Definition at line 49 of file qtest_widgets.h.

◆ toString() [6/8]

QByteArray QTest::Internal::toString ( QSizePolicy::ControlTypes ct)
inline

Definition at line 43 of file qtest_widgets.h.

◆ toString() [7/8]

const char * QTest::Internal::toString ( QSizePolicy::Policy p)
inline

Definition at line 37 of file qtest_widgets.h.

◆ toString() [8/8]

template<typename T>
std::enable_if< QtPrivate::IsQEnumHelper< T >::Value, char * >::type QTest::Internal::toString ( T e)
inline

Definition at line 44 of file qtesttostring.h.

Variable Documentation

◆ failed

static bool QTest::Internal::failed = false
static

Definition at line 30 of file qtestresult.cpp.

Referenced by QTest::hasFailed(), and QTest::setFailed().

◆ noCrashHandler

Q_TESTLIB_EXPORT bool QTest::Internal::noCrashHandler = false

Definition at line 426 of file qtestcase.cpp.

Referenced by QTest::qRun(), and QTest::qtest_qParseArgs().