| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | #include "test_library.h" | ||
| 8 | |||
| 9 | ///Test the test library (ok sounds crasy, but it is to have to figures in gcovr) | ||
| 10 | /** @return true on success, false otherwise | ||
| 11 | */ | ||
| 12 | 1 | bool testTestLibrary(){ | |
| 13 | 1 | bool b(true); | |
| 14 | |||
| 15 |
2/2✓ Branch 0 (4→5) taken 1 times.
✓ Branch 2 (5→6) taken 1 times.
|
1 | print_arch("Test"); |
| 16 | 1 | float res(addValue(2.0, 3.0)); | |
| 17 | 1 | b &= res == 5.0; | |
| 18 | 1 | return b; | |
| 19 | } | ||
| 20 | |||
| 21 | 1 | int main(int argc, char** argv){ | |
| 22 | 1 | bool b(testTestLibrary()); | |
| 23 | |||
| 24 | 1 | return b - 1; | |
| 25 | } | ||
| 26 | |||
| 27 |