GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/StringUtils/TESTS/TEST_FILE_BEGINING/main.cpp Lines: 13 13 100.0 %
Date: 2023-10-11 10:52:07 Branches: 16 16 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 <vector>
10
#include "phoenix_check.h"
11
12
#include "string_filename.h"
13
14
///Test the checkFileBegning
15
/**	@return true on success, false otherwise
16
*/
17
1
bool testFileBegning(){
18
1
	bool b(true);
19
20
1
	b &= checkFileBegning("", "") == false;
21
1
	b &= checkFileBegning("UnexistingFile", "") == false;
22
1
	b &= checkFileBegning("Makefile", "# Not the match") == false;
23
1
	b &= checkFileBegning("Makefile", "# CMAKE generated file: DO NOT EDIT!") == true;
24
25
1
	phoenix_functionOk("testFileBegning", b);
26
1
	return b;
27
}
28
29
1
int main(int argc, char** argv){
30
1
	bool b(true);
31
1
	b &= testFileBegning();
32
33
1
	phoenix_functionOk("final", b);
34
1
	return b - 1;
35
}
36
37