Directory: | ./ |
---|---|
File: | tmp_project/PhoenixString/TESTS/TEST_FILE_BEGINING/main.cpp |
Date: | 2024-07-27 10:53:27 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 9 | 9 | 100.0% |
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 |
7/7✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 14 taken 1 times.
✓ Branch 18 taken 1 times.
✓ Branch 21 taken 1 times.
✓ Branch 24 taken 1 times.
|
1 | phoenix_assert(checkFileBegning("", "") == false); |
18 |
7/7✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 14 taken 1 times.
✓ Branch 18 taken 1 times.
✓ Branch 21 taken 1 times.
✓ Branch 24 taken 1 times.
|
1 | phoenix_assert(checkFileBegning("UnexistingFile", "") == false); |
19 |
7/7✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 14 taken 1 times.
✓ Branch 18 taken 1 times.
✓ Branch 21 taken 1 times.
✓ Branch 24 taken 1 times.
|
1 | phoenix_assert(checkFileBegning("Makefile", "# Not the match") == false); |
20 |
7/7✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 14 taken 1 times.
✓ Branch 18 taken 1 times.
✓ Branch 21 taken 1 times.
✓ Branch 24 taken 1 times.
|
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 | |||
29 |