GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/FileParser/TESTS/TEST_DICO_REPLACE_VAR/main_config.cpp Lines: 21 21 100.0 %
Date: 2023-10-11 10:52:07 Branches: 24 24 100.0 %

Line Branch Exec Source
1
2
/***************************************
3
	Auteur : Pierre Aubert
4
	Mail : pierre.aubert@lapp.in2p3.fr
5
	Licence : CeCILL-C
6
****************************************/
7
8
#include "phoenix_check.h"
9
#include "dico_replace_var.h"
10
#include "parser_yml.h"
11
12
///Check the embeded dico
13
/**	@return true on success, false otherwise
14
*/
15
1
bool checkReplaceVarDicoConfig(){
16
1
	std::cout << "\ncheckReplaceVarDicoEmpty :" << std::endl;
17
2
	std::string ymlFile(CONFIG_YML);
18
1
	DicoValue dico;
19
1
	bool b(true);
20
1
	b &= parser_yml(dico, ymlFile);
21
1
	std::cout << "================================================" << std::endl;
22
1
	std::cout << "checkCompactDico : output DicoValue :" << std::endl;
23
1
	std::cout << "================================================" << std::endl;
24
1
	dico.print();
25
1
	dico_replace_var(dico);
26
27
1
	std::cout << "================================================" << std::endl;
28
1
	std::cout << "checkCompactDico : after var replace DicoValue :" << std::endl;
29
1
	std::cout << "================================================" << std::endl;
30
1
	dico.print();
31
1
	phoenix_functionOk("checkReplaceVarDicoConfig", b);
32
2
	return b;
33
}
34
35
36
1
int main(int argc, char** argv){
37
1
	bool b(checkReplaceVarDicoConfig());
38
1
	phoenix_functionOk("final", b);
39
1
	return b - 1;
40
}
41
42