11 #include "Teuchos_toString.hpp"
18 bool& showTestFailureLocationImpl()
20 static bool showTFL =
false;
30 const std::string &file,
const int lineNumber)
34 rtn +=
" ==> "+file+
":"+
toString(lineNumber);
42 showTestFailureLocationImpl() = showTFL;
48 return showTestFailureLocationImpl();
TEUCHOSCORE_LIB_DLL_EXPORT const std::string passfail_with_location(const bool result, const std::string &file, const int lineNumber)
Helper function for TEUCHOS_PASS_FAIL(...).
const std::string passfail(const bool result)
Return "passed" or "failed".
std::string toString(const any &rhs)
Converts the value in any to a std::string.
void showTestFailureLocation(bool)
Set if TEUCHOS_PASS_FAIL(...) should print test failure location.
Utilities to make writing tests easier.