GCC Code Coverage Report


Directory: ./
File: src/phoenix_assert.cpp
Date: 2024-11-14 16:05:39
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 502 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 502 times.
502 if(!isOk){__assert_fail(assertion.c_str(), fileName.c_str(), line, functionName.c_str());}
18 502 }
19
20
21
22