GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/StringUtils/src/phoenix_check_impl.h Lines: 6 6 100.0 %
Date: 2023-10-11 10:52:07 Branches: 2 2 100.0 %

Line Branch Exec Source
1
/***************************************
2
	Auteur : Pierre Aubert
3
	Mail : pierre.aubert@lapp.in2p3.fr
4
	Licence : CeCILL-C
5
****************************************/
6
7
#ifndef __PHOENIX_CHECK_IMPL_H__
8
#define __PHOENIX_CHECK_IMPL_H__
9
10
#include <iostream>
11
#include "phoenix_check.h"
12
13
///Check two value
14
/**	@param testName : name of the current test
15
 * 	@param val : value to be checked
16
 * 	@param reference : reference value
17
 * 	@return true if var == reference, false otherwise
18
*/
19
template<typename T>
20
142
bool phoenix_check(const std::string & testName, const T & val, const T & reference){
21
142
	bool b(val == reference);
22
142
	std::cout << "phoenix_check : " << testName << " => " << phoenix_isOk(b) << std::endl;
23
142
	std::cout << "\t      val = '"<<val<<"'" << std::endl;
24
142
	std::cout << "\treference = '"<<reference<<"'" << std::endl;
25
142
	return b;
26
}
27
28
29
#endif