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>.
|
#include <qtestcase.h>
Public Member Functions | |
ThrowOnFailEnabler () | |
Constructor. | |
~ThrowOnFailEnabler () | |
Destructor. | |
When defined, QCOMPARE()/QVERIFY() etc always throw on failure. QTest::throwOnFail() then no longer has any effect.
When defined, QSKIP() always throws. QTest::throwOnSkip() then no longer has any effect.
\inmodule QtTestLib
RAII class around setThrowOnFail().
Definition at line 391 of file qtestcase.h.
|
inline |
Constructor.
Calls {setThrowOnFail(true)}.
Definition at line 394 of file qtestcase.h.
References QTest::setThrowOnFail().
|
inline |
Destructor.
Calls {setThrowOnFail(false)}.
Definition at line 395 of file qtestcase.h.
References QTest::setThrowOnFail().