GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/StringUtils/TESTS/TEST_WHOAMI/main.cpp Lines: 11 11 100.0 %
Date: 2023-10-11 10:52:07 Branches: 7 7 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 <iostream>
9
#include "phoenix_whoami.h"
10
11
///Test the whoami function
12
/**	@return true on success, false otherwise
13
*/
14
1
bool testStringWhoAmI(){
15
1
	bool b(true);
16
1
	std::string name(phoenix_whoami());
17
1
	b &= name != "";
18

1
	std::cout << "testStringWhoAmI : ("<<name<<") b = " << b << std::endl;
19
2
	return b;
20
}
21
22
23
1
int main(int argc, char** argv){
24
1
	bool b(true);
25
1
	b &= testStringWhoAmI();
26
1
	std::cout << "Final : b = " << b << std::endl;
27
1
	return b - 1;
28
}
29
30