| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | #include "phoenix_debug.h" | ||
| 8 | |||
| 9 | ///Basis test to use the dump function | ||
| 10 | 1 | void testDebugBase(){ | |
| 11 |
2/2✓ Branch 0 (12→3) taken 100 times.
✓ Branch 1 (12→13) taken 1 times.
|
101 | for(long unsigned int i(0lu); i < 100lu; ++i){ |
| 12 |
6/6✓ Branch 0 (3→4) taken 100 times.
✓ Branch 2 (4→5) taken 100 times.
✓ Branch 4 (5→6) taken 100 times.
✓ Branch 6 (6→7) taken 100 times.
✓ Branch 8 (7→8) taken 100 times.
✓ Branch 10 (8→9) taken 100 times.
|
100 | pdump(PPath("test.txt")) << "i = " << i << std::endl; |
| 13 | } | ||
| 14 | 1 | } | |
| 15 | |||
| 16 | ///Basis test to use the dump function | ||
| 17 | 1 | void testDebugDefault(){ | |
| 18 |
2/2✓ Branch 0 (12→3) taken 100 times.
✓ Branch 1 (12→13) taken 1 times.
|
101 | for(long unsigned int i(0lu); i < 100lu; ++i){ |
| 19 |
6/6✓ Branch 0 (3→4) taken 100 times.
✓ Branch 2 (4→5) taken 100 times.
✓ Branch 4 (5→6) taken 100 times.
✓ Branch 6 (6→7) taken 100 times.
✓ Branch 8 (7→8) taken 100 times.
✓ Branch 10 (8→9) taken 100 times.
|
100 | pdump(PPath("")) << "i = " << i << std::endl; |
| 20 | } | ||
| 21 | 1 | pdumpClear(); | |
| 22 | 1 | } | |
| 23 | |||
| 24 | ///Basis test to use the dump function | ||
| 25 | 1 | void testDebugBinBase(){ | |
| 26 |
2/2✓ Branch 0 (10→3) taken 100 times.
✓ Branch 1 (10→11) taken 1 times.
|
101 | for(long unsigned int i(0lu); i < 100lu; ++i){ |
| 27 |
4/4✓ Branch 0 (3→4) taken 100 times.
✓ Branch 2 (4→5) taken 100 times.
✓ Branch 4 (5→6) taken 100 times.
✓ Branch 6 (6→7) taken 100 times.
|
100 | pdumpBin(PPath("test.bin")) << i; |
| 28 | } | ||
| 29 | 1 | } | |
| 30 | |||
| 31 | ///Basis test to use the dump function | ||
| 32 | 1 | void testDebugBinDefault(){ | |
| 33 |
2/2✓ Branch 0 (10→3) taken 100 times.
✓ Branch 1 (10→11) taken 1 times.
|
101 | for(long unsigned int i(0lu); i < 100lu; ++i){ |
| 34 |
4/4✓ Branch 0 (3→4) taken 100 times.
✓ Branch 2 (4→5) taken 100 times.
✓ Branch 4 (5→6) taken 100 times.
✓ Branch 6 (6→7) taken 100 times.
|
100 | pdumpBin(PPath("")) << i; |
| 35 | } | ||
| 36 | 1 | pdumpBinClear(); | |
| 37 | 1 | } | |
| 38 | |||
| 39 | 1 | int main(int argc, char** argv){ | |
| 40 | 1 | testDebugBase(); | |
| 41 | 1 | testDebugDefault(); | |
| 42 | 1 | testDebugBinBase(); | |
| 43 | 1 | testDebugBinDefault(); | |
| 44 | 1 | return 0; | |
| 45 | } | ||
| 46 | |||
| 47 | |||
| 48 |