GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/StringUtils/src/phoenix_assert.cpp Lines: 3 3 100.0 %
Date: 2024-12-09 15:30:52 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
603
void phoenix_assertFull(bool isOk, const std::string & assertion, const std::string & fileName, size_t line, const std::string & functionName){
17
603
	if(!isOk){__assert_fail(assertion.c_str(), fileName.c_str(), line, functionName.c_str());}
18
603
}
19
20
21