GCC Code Coverage Report | |||||||||||||||||||||
|
|||||||||||||||||||||
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 |
Generated by: GCOVR (Version 4.2) |