50bool& showTestFailureLocationImpl()
52 static bool showTFL =
false;
62 const std::string &file,
const int lineNumber)
66 rtn +=
" ==> "+file+
":"+
toString(lineNumber);
74 showTestFailureLocationImpl() = showTFL;
80 return showTestFailureLocationImpl();
Utilities to make writing tests easier.
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(...).
std::string toString(const HashSet< Key > &h)
bool showTestFailureLocation()
Return if TEUCHOS_PASS_FAIL(...) should print test failure location.
const std::string passfail(const bool result)
Return "passed" or "failed".
void showTestFailureLocation(bool)
Set if TEUCHOS_PASS_FAIL(...) should print test failure location.