OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WConditionSetTest Class Reference

Test WConditionSet. More...

#include <WConditionSet_test.h>

+ Inheritance diagram for WConditionSetTest:
+ Collaboration diagram for WConditionSetTest:

Public Member Functions

void testInstantiation (void)
 An instantiation should never throw an exception, as well as tear down. More...
 
void testAddRemove (void)
 Tests add and remove methods. More...
 
void testWait (void)
 Tests whether the condition set really reacts on fired conditions. More...
 
void testWaitResetable (void)
 Tests the resetable feature. More...
 
void testResetOnNotResetable (void)
 Ensures reset() never throws something. More...
 

Detailed Description

Test WConditionSet.

Definition at line 69 of file WConditionSet_test.h.

Member Function Documentation

◆ testAddRemove()

void WConditionSetTest::testAddRemove ( void  )
inline

Tests add and remove methods.

Also check double remove/add.

Definition at line 86 of file WConditionSet_test.h.

References WConditionSet::add(), WConditionSet::m_conditionSet, and WConditionSet::remove().

+ Here is the call graph for this function:

◆ testInstantiation()

void WConditionSetTest::testInstantiation ( void  )
inline

An instantiation should never throw an exception, as well as tear down.

Definition at line 75 of file WConditionSet_test.h.

◆ testResetOnNotResetable()

void WConditionSetTest::testResetOnNotResetable ( void  )
inline

Ensures reset() never throws something.

Definition at line 214 of file WConditionSet_test.h.

References WConditionSet::reset(), and WConditionSet::setResetable().

+ Here is the call graph for this function:

◆ testWait()

void WConditionSetTest::testWait ( void  )
inline

Tests whether the condition set really reacts on fired conditions.

Definition at line 122 of file WConditionSet_test.h.

References WConditionSet::add(), CallableHelperC::c, CallableHelperC::flag, WConditionSet::m_fired, WConditionSet::remove(), WConditionSet::reset(), WConditionSet::setResetable(), CallableHelperC::threadMain(), and WConditionSet::wait().

+ Here is the call graph for this function:

◆ testWaitResetable()

void WConditionSetTest::testWaitResetable ( void  )
inline

Tests the resetable feature.

Definition at line 168 of file WConditionSet_test.h.

References WConditionSet::add(), WConditionSet::m_fired, WConditionSet::setResetable(), and WConditionSet::wait().

+ Here is the call graph for this function:

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