![]() |
Qt 6.x
The Qt SDK
|
#include <QtTest/qttestglobal.h>
#include <QtCore/qstring.h>
#include <QtCore/qnamespace.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qsharedpointer.h>
#include <QtCore/qtemporarydir.h>
#include <QtCore/qthread.h>
#include <QtCore/qxpfunctional.h>
#include <string.h>
#include <exception>
Go to the source code of this file.
Namespaces | |
namespace | QTest |
[15] | |
namespace | QTest::Internal |
Macros | |
#define | QVERIFY(statement) |
#define | QFAIL(message) |
#define | QVERIFY2(statement, description) |
#define | QCOMPARE(actual, expected) |
#define | QCOMPARE_OP_IMPL(lhs, rhs, op, opId) |
#define | QCOMPARE_EQ(computed, baseline) QCOMPARE_OP_IMPL(computed, baseline, ==, Equal) |
#define | QCOMPARE_NE(computed, baseline) QCOMPARE_OP_IMPL(computed, baseline, !=, NotEqual) |
#define | QCOMPARE_LT(computed, baseline) QCOMPARE_OP_IMPL(computed, baseline, <, LessThan) |
#define | QCOMPARE_LE(computed, baseline) QCOMPARE_OP_IMPL(computed, baseline, <=, LessThanOrEqual) |
#define | QCOMPARE_GT(computed, baseline) QCOMPARE_OP_IMPL(computed, baseline, >, GreaterThan) |
#define | QCOMPARE_GE(computed, baseline) QCOMPARE_OP_IMPL(computed, baseline, >=, GreaterThanOrEqual) |
#define | QVERIFY_THROWS_NO_EXCEPTION(...) |
#define | QVERIFY_THROWS_EXCEPTION(exceptiontype, ...) |
#define | QTRY_LOOP_IMPL(expr, timeoutValue, step) |
#define | QTRY_TIMEOUT_DEBUG_IMPL(expr, timeoutValue, step) |
#define | QTRY_IMPL(expr, timeout) |
#define | QTRY_VERIFY_WITH_TIMEOUT(expr, timeout) |
#define | QTRY_VERIFY(expr) QTRY_VERIFY_WITH_TIMEOUT(expr, 5000) |
#define | QTRY_VERIFY2_WITH_TIMEOUT(expr, messageExpression, timeout) |
#define | QTRY_VERIFY2(expr, messageExpression) QTRY_VERIFY2_WITH_TIMEOUT(expr, messageExpression, 5000) |
#define | QTRY_COMPARE_WITH_TIMEOUT(expr, expected, timeout) |
#define | QTRY_COMPARE(expr, expected) QTRY_COMPARE_WITH_TIMEOUT(expr, expected, 5000) |
#define | QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, op, opId, timeout) |
#define | QTRY_COMPARE_EQ_WITH_TIMEOUT(computed, baseline, timeout) QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, ==, Equal, timeout) |
#define | QTRY_COMPARE_EQ(computed, baseline) QTRY_COMPARE_EQ_WITH_TIMEOUT(computed, baseline, 5000) |
#define | QTRY_COMPARE_NE_WITH_TIMEOUT(computed, baseline, timeout) QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, !=, NotEqual, timeout) |
#define | QTRY_COMPARE_NE(computed, baseline) QTRY_COMPARE_NE_WITH_TIMEOUT(computed, baseline, 5000) |
#define | QTRY_COMPARE_LT_WITH_TIMEOUT(computed, baseline, timeout) QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, <, LessThan, timeout) |
#define | QTRY_COMPARE_LT(computed, baseline) QTRY_COMPARE_LT_WITH_TIMEOUT(computed, baseline, 5000) |
#define | QTRY_COMPARE_LE_WITH_TIMEOUT(computed, baseline, timeout) QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, <=, LessThanOrEqual, timeout) |
#define | QTRY_COMPARE_LE(computed, baseline) QTRY_COMPARE_LE_WITH_TIMEOUT(computed, baseline, 5000) |
#define | QTRY_COMPARE_GT_WITH_TIMEOUT(computed, baseline, timeout) QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, >, GreaterThan, timeout) |
#define | QTRY_COMPARE_GT(computed, baseline) QTRY_COMPARE_GT_WITH_TIMEOUT(computed, baseline, 5000) |
#define | QTRY_COMPARE_GE_WITH_TIMEOUT(computed, baseline, timeout) QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, >=, GreaterThanOrEqual, timeout) |
#define | QTRY_COMPARE_GE(computed, baseline) QTRY_COMPARE_GE_WITH_TIMEOUT(computed, baseline, 5000) |
#define | QSKIP_INTERNAL(statement) |
#define | QSKIP(statement, ...) QSKIP_INTERNAL(statement) |
#define | QEXPECT_FAIL(dataIndex, comment, mode) |
#define | QFETCH(Type, name) Type name = *static_cast<Type *>(QTest::qData(#name, ::qMetaTypeId<typename std::remove_cv<Type >::type>())) |
#define | QFETCH_GLOBAL(Type, name) Type name = *static_cast<Type *>(QTest::qGlobalData(#name, ::qMetaTypeId<typename std::remove_cv<Type >::type>())) |
#define | QTEST(actual, testElement) |
#define | QFINDTESTDATA(basepath) QTest::qFindTestData(basepath, __FILE__, __LINE__) |
#define | QEXTRACTTESTDATA(resourcePath) QTest::qExtractTestData(resourcePath) |
#define | QTEST_COMPARE_DECL(KLASS) template<> Q_TESTLIB_EXPORT char *toString<KLASS >(const KLASS &); |
#define | QWARN(msg) QTest::qWarn(static_cast<const char *>(msg), __FILE__, __LINE__) |
Functions | |
Q_TESTLIB_EXPORT QString | QTest::Internal::formatTryTimeoutDebugMessage (q_no_char8_t::QUtf8StringView expr, int timeout, int actual) |
template<typename T > | |
std::enable_if< QtPrivate::IsQEnumHelper< T >::Value, char * >::type | QTest::Internal::toString (T e) |
template<typename T > | |
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&std::is_enum_v< T >, char * >::type | QTest::Internal::toString (const T &e) |
template<typename T > | |
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&!std::is_enum_v< T >, char * >::type | QTest::Internal::toString (const T &t) |
template<typename F > | |
std::enable_if< QtPrivate::IsQEnumHelper< F >::Value, char * >::type | QTest::Internal::toString (QFlags< F > f) |
template<typename F > | |
std::enable_if<!QtPrivate::IsQEnumHelper< F >::Value, char * >::type | QTest::Internal::toString (QFlags< F > f) |
template<typename T > | |
char * | QTest::toString (const T &t) |
template<typename T1 , typename T2 > | |
char * | QTest::toString (const QPair< T1, T2 > &pair) |
template<typename T1 , typename T2 > | |
char * | QTest::toString (const std::pair< T1, T2 > &pair) |
template<class... Types> | |
char * | QTest::toString (const std::tuple< Types... > &tuple) |
template<typename Rep , typename Period > | |
char * | QTest::toString (std::chrono::duration< Rep, Period > dur) |
char * | QTest::toHexRepresentation (const char *ba, qsizetype length) |
Returns a pointer to a string that is the string ba represented as a space-separated sequence of hex characters. | |
char * | QTest::toPrettyCString (const char *p, qsizetype length) |
char * | QTest::toPrettyUnicode (QStringView string) |
Q_TESTLIB_EXPORT char * | QTest::toString (const char *) |
Q_TESTLIB_EXPORT char * | QTest::toString (const volatile void *) |
Q_TESTLIB_EXPORT char * | QTest::toString (const void *) |
Q_TESTLIB_EXPORT char * | QTest::toString (const volatile QObject *) |
Q_TESTLIB_EXPORT void | QTest::qInit (QObject *testObject, int argc=0, char **argv=nullptr) |
Q_TESTLIB_EXPORT int | QTest::qRun () |
Q_TESTLIB_EXPORT void | QTest::qCleanup () |
Q_TESTLIB_EXPORT int | QTest::qExec (QObject *testObject, int argc=0, char **argv=nullptr) |
Executes tests declared in testObject. | |
Q_TESTLIB_EXPORT int | QTest::qExec (QObject *testObject, const QStringList &arguments) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Q_TESTLIB_EXPORT void | QTest::setMainSourcePath (const char *file, const char *builddir=nullptr) |
Q_TESTLIB_EXPORT bool | QTest::qVerify (bool statement, const char *statementStr, const char *description, const char *file, int line) |
Q_DECL_COLD_FUNCTION Q_TESTLIB_EXPORT void | QTest::qFail (const char *message, const char *file, int line) |
Q_TESTLIB_EXPORT void | QTest::qSkip (const char *message, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::qExpectFail (const char *dataIndex, const char *comment, TestFailMode mode, const char *file, int line) |
Q_DECL_COLD_FUNCTION Q_TESTLIB_EXPORT void | QTest::qCaught (const char *expected, const char *what, const char *file, int line) |
Q_TESTLIB_EXPORT void | QTest::ignoreMessage (QtMsgType type, const char *message) |
Ignores messages created by qDebug(), qInfo() or qWarning(). | |
Q_TESTLIB_EXPORT void | QTest::failOnWarning (const char *message) |
Q_TESTLIB_EXPORT QString | QTest::qFindTestData (const char *basepath, const char *file=nullptr, int line=0, const char *builddir=nullptr, const char *sourcedir=nullptr) |
Q_TESTLIB_EXPORT QString | QTest::qFindTestData (const QString &basepath, const char *file=nullptr, int line=0, const char *builddir=nullptr, const char *sourcedir=nullptr) |
Q_TESTLIB_EXPORT void * | QTest::qData (const char *tagName, int typeId) |
Q_TESTLIB_EXPORT void * | QTest::qGlobalData (const char *tagName, int typeId) |
Q_TESTLIB_EXPORT void * | QTest::qElementData (const char *elementName, int metaTypeId) |
Q_TESTLIB_EXPORT QObject * | QTest::testObject () |
Q_TESTLIB_EXPORT const char * | QTest::currentAppName () |
Returns the name of the binary that is currently executed. | |
Q_TESTLIB_EXPORT const char * | QTest::currentTestFunction () |
Returns the name of the test function that is currently executed. | |
Q_TESTLIB_EXPORT const char * | QTest::currentDataTag () |
Returns the name of the current test data. | |
Q_TESTLIB_EXPORT bool | QTest::currentTestFailed () |
Returns true if the current test function has failed, otherwise false. | |
Q_TESTLIB_EXPORT bool | QTest::currentTestResolved () |
Q_TESTLIB_EXPORT bool | QTest::runningTest () |
Q_TESTLIB_EXPORT Qt::Key | QTest::asciiToKey (char ascii) |
Q_TESTLIB_EXPORT char | QTest::keyToAscii (Qt::Key key) |
Q_TESTLIB_EXPORT bool | QTest::compare_helper (bool success, const char *failureMsg, qxp::function_ref< const char *()> actualVal, qxp::function_ref< const char *()> expectedVal, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::compare_helper (bool success, const char *failureMsg, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT void | QTest::addColumnInternal (int id, const char *name) |
template<typename T > | |
void | QTest::addColumn (const char *name, T *=nullptr) |
Adds a column with type {T} to the current test data. | |
Q_TESTLIB_EXPORT QTestData & | QTest::newRow (const char *dataTag) |
Appends a new row to the current test data. | |
Q_TESTLIB_EXPORT QTestData & | QTest::addRow (const char *format,...) Q_ATTRIBUTE_FORMAT_PRINTF(1 |
Q_TESTLIB_EXPORT QTestData Q_TESTLIB_EXPORT bool | QTest::qCompare (qfloat16 const &t1, qfloat16 const &t2, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::qCompare (float const &t1, float const &t2, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::qCompare (double const &t1, double const &t2, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::qCompare (int t1, int t2, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::qCompare (unsigned t1, unsigned t2, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::qCompare (QStringView t1, QStringView t2, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::qCompare (QStringView t1, const QLatin1StringView &t2, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::qCompare (const QLatin1StringView &t1, QStringView t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::qCompare (const QString &t1, const QString &t2, const char *actual, const char *expected, const char *file, int line) |
template<> | |
bool | QTest::qCompare (QString const &t1, QLatin1StringView const &t2, const char *actual, const char *expected, const char *file, int line) |
template<> | |
bool | QTest::qCompare (QLatin1StringView const &t1, QString const &t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::compare_ptr_helper (const volatile void *t1, const volatile void *t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::compare_ptr_helper (const volatile QObject *t1, const volatile QObject *t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::compare_ptr_helper (const volatile QObject *t1, std::nullptr_t, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::compare_ptr_helper (std::nullptr_t, const volatile QObject *t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::compare_ptr_helper (const volatile void *t1, std::nullptr_t, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::compare_ptr_helper (std::nullptr_t, const volatile void *t2, const char *actual, const char *expected, const char *file, int line) |
Q_TESTLIB_EXPORT bool | QTest::compare_string_helper (const char *t1, const char *t2, const char *actual, const char *expected, const char *file, int line) |
char * | QTest::formatString (const char *prefix, const char *suffix, size_t numArguments,...) |
template<typename T1 , typename T2 = T1> | |
bool | QTest::qCompare (const T1 &t1, const T2 &t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::qCompare (double const &t1, float const &t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::qCompare (float const &t1, double const &t2, const char *actual, const char *expected, const char *file, int line) |
template<typename T > | |
bool | QTest::qCompare (const T *t1, const T *t2, const char *actual, const char *expected, const char *file, int line) |
template<typename T > | |
bool | QTest::qCompare (T *t1, T *t2, const char *actual, const char *expected, const char *file, int line) |
template<typename T > | |
bool | QTest::qCompare (T *t1, std::nullptr_t, const char *actual, const char *expected, const char *file, int line) |
template<typename T > | |
bool | QTest::qCompare (std::nullptr_t, T *t2, const char *actual, const char *expected, const char *file, int line) |
template<typename T1 , typename T2 > | |
bool | QTest::qCompare (const T1 *t1, const T2 *t2, const char *actual, const char *expected, const char *file, int line) |
template<typename T1 , typename T2 > | |
bool | QTest::qCompare (T1 *t1, T2 *t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::qCompare (const char *t1, const char *t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::qCompare (char *t1, char *t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::qCompare (char *t1, const char *t2, const char *actual, const char *expected, const char *file, int line) |
bool | QTest::qCompare (const char *t1, char *t2, const char *actual, const char *expected, const char *file, int line) |
template<class T > | |
bool | QTest::qTest (const T &actual, const char *elementName, const char *actualStr, const char *expected, const char *file, int line) |
bool | QTest::reportResult (bool success, qxp::function_ref< const char *()> lhs, qxp::function_ref< const char *()> rhs, const char *lhsExpr, const char *rhsExpr, ComparisonOperation op, const char *file, int line) |
#define QCOMPARE | ( | actual, | |
expected | |||
) |
Definition at line 52 of file qtestcase.h.
#define QCOMPARE_EQ | ( | computed, | |
baseline | |||
) | QCOMPARE_OP_IMPL(computed, baseline, ==, Equal) |
Definition at line 78 of file qtestcase.h.
#define QCOMPARE_GE | ( | computed, | |
baseline | |||
) | QCOMPARE_OP_IMPL(computed, baseline, >=, GreaterThanOrEqual) |
Definition at line 83 of file qtestcase.h.
#define QCOMPARE_GT | ( | computed, | |
baseline | |||
) | QCOMPARE_OP_IMPL(computed, baseline, >, GreaterThan) |
Definition at line 82 of file qtestcase.h.
#define QCOMPARE_LE | ( | computed, | |
baseline | |||
) | QCOMPARE_OP_IMPL(computed, baseline, <=, LessThanOrEqual) |
Definition at line 81 of file qtestcase.h.
#define QCOMPARE_LT | ( | computed, | |
baseline | |||
) | QCOMPARE_OP_IMPL(computed, baseline, <, LessThan) |
Definition at line 80 of file qtestcase.h.
#define QCOMPARE_NE | ( | computed, | |
baseline | |||
) | QCOMPARE_OP_IMPL(computed, baseline, !=, NotEqual) |
Definition at line 79 of file qtestcase.h.
#define QCOMPARE_OP_IMPL | ( | lhs, | |
rhs, | |||
op, | |||
opId | |||
) |
Definition at line 62 of file qtestcase.h.
#define QEXPECT_FAIL | ( | dataIndex, | |
comment, | |||
mode | |||
) |
Definition at line 256 of file qtestcase.h.
#define QEXTRACTTESTDATA | ( | resourcePath | ) | QTest::qExtractTestData(resourcePath) |
Definition at line 287 of file qtestcase.h.
#define QFAIL | ( | message | ) |
Definition at line 35 of file qtestcase.h.
#define QFETCH | ( | Type, | |
name | |||
) | Type name = *static_cast<Type *>(QTest::qData(#name, ::qMetaTypeId<typename std::remove_cv<Type >::type>())) |
Definition at line 262 of file qtestcase.h.
#define QFETCH_GLOBAL | ( | Type, | |
name | |||
) | Type name = *static_cast<Type *>(QTest::qGlobalData(#name, ::qMetaTypeId<typename std::remove_cv<Type >::type>())) |
Definition at line 265 of file qtestcase.h.
#define QFINDTESTDATA | ( | basepath | ) | QTest::qFindTestData(basepath, __FILE__, __LINE__) |
Definition at line 283 of file qtestcase.h.
#define QSKIP | ( | statement, | |
... | |||
) | QSKIP_INTERNAL(statement) |
Definition at line 254 of file qtestcase.h.
#define QSKIP_INTERNAL | ( | statement | ) |
Definition at line 248 of file qtestcase.h.
#define QTEST | ( | actual, | |
testElement | |||
) |
Definition at line 268 of file qtestcase.h.
#define QTEST_COMPARE_DECL | ( | KLASS | ) | template<> Q_TESTLIB_EXPORT char *toString<KLASS >(const KLASS &); |
Definition at line 293 of file qtestcase.h.
#define QTRY_COMPARE | ( | expr, | |
expected | |||
) | QTRY_COMPARE_WITH_TIMEOUT(expr, expected, 5000) |
Definition at line 210 of file qtestcase.h.
#define QTRY_COMPARE_EQ | ( | computed, | |
baseline | |||
) | QTRY_COMPARE_EQ_WITH_TIMEOUT(computed, baseline, 5000) |
Definition at line 221 of file qtestcase.h.
#define QTRY_COMPARE_EQ_WITH_TIMEOUT | ( | computed, | |
baseline, | |||
timeout | |||
) | QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, ==, Equal, timeout) |
Definition at line 218 of file qtestcase.h.
#define QTRY_COMPARE_GE | ( | computed, | |
baseline | |||
) | QTRY_COMPARE_GE_WITH_TIMEOUT(computed, baseline, 5000) |
Definition at line 246 of file qtestcase.h.
#define QTRY_COMPARE_GE_WITH_TIMEOUT | ( | computed, | |
baseline, | |||
timeout | |||
) | QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, >=, GreaterThanOrEqual, timeout) |
Definition at line 243 of file qtestcase.h.
#define QTRY_COMPARE_GT | ( | computed, | |
baseline | |||
) | QTRY_COMPARE_GT_WITH_TIMEOUT(computed, baseline, 5000) |
Definition at line 241 of file qtestcase.h.
#define QTRY_COMPARE_GT_WITH_TIMEOUT | ( | computed, | |
baseline, | |||
timeout | |||
) | QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, >, GreaterThan, timeout) |
Definition at line 238 of file qtestcase.h.
#define QTRY_COMPARE_LE | ( | computed, | |
baseline | |||
) | QTRY_COMPARE_LE_WITH_TIMEOUT(computed, baseline, 5000) |
Definition at line 236 of file qtestcase.h.
#define QTRY_COMPARE_LE_WITH_TIMEOUT | ( | computed, | |
baseline, | |||
timeout | |||
) | QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, <=, LessThanOrEqual, timeout) |
Definition at line 233 of file qtestcase.h.
#define QTRY_COMPARE_LT | ( | computed, | |
baseline | |||
) | QTRY_COMPARE_LT_WITH_TIMEOUT(computed, baseline, 5000) |
Definition at line 231 of file qtestcase.h.
#define QTRY_COMPARE_LT_WITH_TIMEOUT | ( | computed, | |
baseline, | |||
timeout | |||
) | QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, <, LessThan, timeout) |
Definition at line 228 of file qtestcase.h.
#define QTRY_COMPARE_NE | ( | computed, | |
baseline | |||
) | QTRY_COMPARE_NE_WITH_TIMEOUT(computed, baseline, 5000) |
Definition at line 226 of file qtestcase.h.
#define QTRY_COMPARE_NE_WITH_TIMEOUT | ( | computed, | |
baseline, | |||
timeout | |||
) | QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL(computed, baseline, !=, NotEqual, timeout) |
Definition at line 223 of file qtestcase.h.
#define QTRY_COMPARE_OP_WITH_TIMEOUT_IMPL | ( | computed, | |
baseline, | |||
op, | |||
opId, | |||
timeout | |||
) |
Definition at line 212 of file qtestcase.h.
Definition at line 204 of file qtestcase.h.
#define QTRY_IMPL | ( | expr, | |
timeout | |||
) |
Definition at line 178 of file qtestcase.h.
#define QTRY_LOOP_IMPL | ( | expr, | |
timeoutValue, | |||
step | |||
) |
Definition at line 158 of file qtestcase.h.
#define QTRY_TIMEOUT_DEBUG_IMPL | ( | expr, | |
timeoutValue, | |||
step | |||
) |
Definition at line 169 of file qtestcase.h.
#define QTRY_VERIFY | ( | expr | ) | QTRY_VERIFY_WITH_TIMEOUT(expr, 5000) |
Definition at line 192 of file qtestcase.h.
#define QTRY_VERIFY2 | ( | expr, | |
messageExpression | |||
) | QTRY_VERIFY2_WITH_TIMEOUT(expr, messageExpression, 5000) |
Definition at line 201 of file qtestcase.h.
#define QTRY_VERIFY2_WITH_TIMEOUT | ( | expr, | |
messageExpression, | |||
timeout | |||
) |
Definition at line 195 of file qtestcase.h.
#define QTRY_VERIFY_WITH_TIMEOUT | ( | expr, | |
timeout | |||
) |
Definition at line 186 of file qtestcase.h.
#define QVERIFY | ( | statement | ) |
Definition at line 29 of file qtestcase.h.
#define QVERIFY2 | ( | statement, | |
description | |||
) |
Definition at line 41 of file qtestcase.h.
#define QVERIFY_THROWS_EXCEPTION | ( | exceptiontype, | |
... | |||
) |
Definition at line 112 of file qtestcase.h.
#define QVERIFY_THROWS_NO_EXCEPTION | ( | ... | ) |
Definition at line 87 of file qtestcase.h.
#define QWARN | ( | msg | ) | QTest::qWarn(static_cast<const char *>(msg), __FILE__, __LINE__) |
Definition at line 686 of file qtestcase.h.