| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | #ifdef NDEBUG | ||
| 8 | #undef NDEBUG | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #include <assert.h> | ||
| 12 | |||
| 13 | #include "data_stream_assert.h" | ||
| 14 | |||
| 15 | ///Check if the assertion isOk is true, raise an assertion if isOk is false | ||
| 16 | /** @param isOk : assertion which has to be true | ||
| 17 | * @param assertion : text assertion (convertion of isOk expression into text) | ||
| 18 | * @param fileName : name of the file where the test is called | ||
| 19 | * @param line : line of the file where the test is called | ||
| 20 | * @param functionName : name of the function where the problem happends | ||
| 21 | */ | ||
| 22 | 1817 | void data_stream_assertFull(bool isOk, const std::string & assertion, const std::string & fileName, size_t line, const std::string & functionName){ | |
| 23 |
1/2✗ Branch 0 (2→3) not taken.
✓ Branch 1 (2→7) taken 1817 times.
|
1817 | if(!isOk){__assert_fail(assertion.c_str(), fileName.c_str(), line, functionName.c_str());} |
| 24 | 1817 | } | |
| 25 | |||
| 26 | |||
| 27 | |||
| 28 |