GCC Code Coverage Report


Directory: ./
File: tmp_project/PhoenixString/src/phoenix_assert.cpp
Date: 2024-07-27 10:53:27
Exec Total Coverage
Lines: 3 3 100.0%
Branches: 1 2 50.0%

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