Directory: | ./ |
---|---|
File: | tmp_project/PhoenixCore/src/phoenix_isOk.cpp |
Date: | 2025-03-14 11:56:07 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 3 | 3 | 100.0% |
Branches: | 1 | 1 | 100.0% |
Line | Branch | Exec | Source |
---|---|---|---|
1 | /*************************************** | ||
2 | Auteur : Pierre Aubert | ||
3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
4 | Licence : CeCILL-C | ||
5 | ****************************************/ | ||
6 | |||
7 | #include <iostream> | ||
8 | #include "phoenix_isOk.h" | ||
9 | |||
10 | ///Print OK or FAIL depending on the given boolean | ||
11 | /** @param b : boolean to be checked | ||
12 | * @return OK on true, FAIL on false | ||
13 | */ | ||
14 | 29 | std::string phoenix_isOk(bool b){ | |
15 | 29 | const char* res[] = {"\033[31mFAIL\033[0m", "\033[32mOK\033[0m"}; | |
16 |
1/1✓ Branch 2 taken 29 times.
|
29 | return std::string(res[b]); |
17 | } | ||
18 | |||
19 |