Add convenience functions to TestConnections

This commit is contained in:
Johan Wikman 2018-01-11 10:33:57 +02:00
parent da428f325c
commit 1e5125015e

View File

@ -52,6 +52,26 @@ public:
~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
*/