PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
phoenix_check_impl.h File Reference
#include <iostream>
#include "phoenix_check.h"
+ Include dependency graph for phoenix_check_impl.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
bool phoenix_check (const std::string &testName, const T &val, const T &reference)
 Check two value. More...
 

Function Documentation

◆ phoenix_check()

template<typename T >
bool phoenix_check ( const std::string &  testName,
const T &  val,
const T &  reference 
)

Check two value.

Parameters
testName: name of the current test
val: value to be checked
reference: reference value
Returns
true if var == reference, false otherwise

Definition at line 20 of file phoenix_check_impl.h.

20  {
21  bool b(val == reference);
22  std::cout << "phoenix_check : " << testName << " => " << phoenix_isOk(b) << std::endl;
23  std::cout << "\t val = '"<<val<<"'" << std::endl;
24  std::cout << "\treference = '"<<reference<<"'" << std::endl;
25  return b;
26 }

References phoenix_isOk().

+ Here is the call graph for this function:
phoenix_isOk
std::string phoenix_isOk(bool b)
Print OK or FAIL depending on the given boolean.
Definition: phoenix_isOk.cpp:14