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::ThrowOnFailEnabler Class Reference

#include <qtestcase.h>

+ Collaboration diagram for QTest::ThrowOnFailEnabler:

Public Member Functions

 ThrowOnFailEnabler ()
 Constructor.
 
 ~ThrowOnFailEnabler ()
 Destructor.
 

Detailed Description

Since
6.8 \macro QTEST_THROW_ON_FAIL >

When defined, QCOMPARE()/QVERIFY() etc always throw on failure. QTest::throwOnFail() then no longer has any effect.

Since
6.8 \macro QTEST_THROW_ON_SKIP >

When defined, QSKIP() always throws. QTest::throwOnSkip() then no longer has any effect.

Since
6.8

\inmodule QtTestLib

RAII class around setThrowOnFail().

Definition at line 391 of file qtestcase.h.

Constructor & Destructor Documentation

◆ ThrowOnFailEnabler()

QTest::ThrowOnFailEnabler::ThrowOnFailEnabler ( )
inline

Constructor.

Calls {setThrowOnFail(true)}.

Definition at line 394 of file qtestcase.h.

References QTest::setThrowOnFail().

+ Here is the call graph for this function:

◆ ~ThrowOnFailEnabler()

QTest::ThrowOnFailEnabler::~ThrowOnFailEnabler ( )
inline

Destructor.

Calls {setThrowOnFail(false)}.

Definition at line 395 of file qtestcase.h.

References QTest::setThrowOnFail().

+ Here is the call graph for this function:

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