GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/StringUtils/TESTS/TEST_FILE_BEGINING/main.cpp Lines: 9 9 100.0 %
Date: 2024-12-09 15:30:52 Branches: 28 28 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_assert.h"
11
#include "phoenix_check.h"
12
13
#include "string_filename.h"
14
15
///Test the checkFileBegning
16
1
void testFileBegning(){
17

1
	phoenix_assert(checkFileBegning("", "") == false);
18

1
	phoenix_assert(checkFileBegning("UnexistingFile", "") == false);
19

1
	phoenix_assert(checkFileBegning("Makefile", "# Not the match") == false);
20

1
	phoenix_assert(checkFileBegning("Makefile", "# CMAKE generated file: DO NOT EDIT!") == true);
21
1
}
22
23
1
int main(int argc, char** argv){
24
1
	testFileBegning();
25
1
	return 0;
26
}
27
28