Add convenience functions to TestConnections
This commit is contained in:
@ -52,6 +52,26 @@ public:
|
|||||||
|
|
||||||
~TestConnections();
|
~TestConnections();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Is the test still ok?
|
||||||
|
*
|
||||||
|
* @return True, if no errors have occurred, false otherwise.
|
||||||
|
*/
|
||||||
|
bool ok() const
|
||||||
|
{
|
||||||
|
return global_result == 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Has the test failed?
|
||||||
|
*
|
||||||
|
* @return True, if errors have occurred, false otherwise.
|
||||||
|
*/
|
||||||
|
bool failed() const
|
||||||
|
{
|
||||||
|
return global_result != 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief global_result Result of test, 0 if PASSED
|
* @brief global_result Result of test, 0 if PASSED
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user