| Directory: | ./ |
|---|---|
| File: | tmp_project/PhoenixString/TESTS/TEST_WHOAMI/main.cpp |
| Date: | 2024-12-09 15:28:54 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 7 | 7 | 100.0% |
| Branches: | 6 | 6 | 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_whoami.h" | ||
| 11 | |||
| 12 | ///Test the whoami function | ||
| 13 | 1 | void testStringWhoAmI(){ | |
| 14 |
1/1✓ Branch 1 taken 1 times.
|
1 | std::string name(phoenix_whoami()); |
| 15 |
5/5✓ 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.
|
1 | phoenix_assert(name != ""); |
| 16 | 1 | } | |
| 17 | |||
| 18 | 1 | int main(int argc, char** argv){ | |
| 19 | 1 | testStringWhoAmI(); | |
| 20 | 1 | return 0; | |
| 21 | } | ||
| 22 | |||
| 23 |