PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
phoenix_isOk.cpp
Go to the documentation of this file.
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
11
14
std::string
phoenix_isOk
(
bool
b){
15
const
char
* res[] = {
"\033[31mFAIL\033[0m"
,
"\033[32mOK\033[0m"
};
16
return
std::string(res[b]);
17
}
18
20
23
void
phoenix_functionOk
(
const
std::string & functionName,
bool
b){
24
std::cout << functionName <<
" : "
<<
phoenix_isOk
(b) << std::endl;
25
}
26
phoenix_functionOk
void phoenix_functionOk(const std::string &functionName, bool b)
Print the check function return.
Definition:
phoenix_isOk.cpp:23
phoenix_isOk.h
phoenix_isOk
std::string phoenix_isOk(bool b)
Print OK or FAIL depending on the given boolean.
Definition:
phoenix_isOk.cpp:14
tmp_project
StringUtils
src
phoenix_isOk.cpp
Generated on Mon Dec 9 2024 15:33:41 for PhoenixMock by
1.8.17