Directory: | ./ |
---|---|
File: | tmp_project/PhoenixCore/TESTS/TEST_CHECK/main.cpp |
Date: | 2025-03-14 12:18:05 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 7 | 7 | 100.0% |
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 "phoenix_assert.h" | ||
10 | #include "phoenix_check.h" | ||
11 | #include "PString.h" | ||
12 | |||
13 | ///Test the check | ||
14 | 1 | void testCheck(){ | |
15 |
8/8✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 13 taken 1 times.
✓ Branch 16 taken 1 times.
✓ Branch 20 taken 1 times.
✓ Branch 23 taken 1 times.
✓ Branch 26 taken 1 times.
|
1 | phoenix_assert(phoenix_check("Test which is working", PString("string"), PString("string"))); |
16 |
8/8✓ Branch 2 taken 1 times.
✓ Branch 6 taken 1 times.
✓ Branch 10 taken 1 times.
✓ Branch 13 taken 1 times.
✓ Branch 16 taken 1 times.
✓ Branch 20 taken 1 times.
✓ Branch 23 taken 1 times.
✓ Branch 26 taken 1 times.
|
1 | phoenix_assert(!phoenix_check("Test which is not working", PString("string"), PString("not the same string"))); |
17 | 1 | } | |
18 | |||
19 | 1 | int main(int argc, char** argv){ | |
20 | 1 | testCheck(); | |
21 | 1 | return 0; | |
22 | } | ||
23 | |||
24 | |||
25 |