73 std::string tfecfFuncName(
"someMethod");
83 std::string tfecfFuncName(
"someMethod");
156 std::ostringstream oss;
160 TEST_INEQUALITY(oss.str().find(
"Throwing an std::exception of type"), std::string::npos);
162 TEST_INEQUALITY(oss.str().find(
"AssertAndThrow_UnitTests.cpp"), std::string::npos);
164 TEST_INEQUALITY(oss.str().find(
"Throw test that evaluated to true"), std::string::npos);
184 std::ostringstream oss;
188 TEST_INEQUALITY(oss.str().find(
"AssertAndThrow_UnitTests.cpp"), std::string::npos);
195 std::logic_error localExcept(
"Blah blah blah");
#define TEST_INEQUALITY(v1, v2)
Assert the inequality of v1 and v2.
#define TEST_NOTHROW(code)
Asserr that the statement 'code' does not thrown any excpetions.
#define TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC(throw_exception_test, Exception, msg)
Macro for throwing an exception from within a class method with breakpointing to ease debugging...
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.
#define TEST_THROW(code, ExceptType)
Assert that the statement 'code' throws the exception 'ExceptType' (otherwise the test fails)...
#define TEUCHOS_UNIT_TEST(TEST_GROUP, TEST_NAME)
Macro for defining a (non-templated) unit test.
#define TEUCHOS_TEST_FOR_EXCEPT_MSG(throw_exception_test, msg)
This macro is designed to be a short version of TEUCHOS_TEST_FOR_EXCEPTION() that is easier to call...
#define TEUCHOS_TEST_FOR_EXCEPT_PRINT(throw_exception_test, out_ptr)
This macro is the same as TEUCHOS_TEST_FOR_EXCEPT() except that the exception will be caught...
#define TEUCHOS_TEST_FOR_EXCEPTION_PRINT(throw_exception_test, Exception, msg, out_ptr)
This macro is the same as TEUCHOS_TEST_FOR_EXCEPTION() except that the exception will be caught...
#define TEUCHOS_TRACE(exc)
This macro intercepts an exception, prints a standardized message including the current filename and ...
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
This macro is designed to be a short version of TEUCHOS_TEST_FOR_EXCEPTION() that is easier to call...
#define TEUCHOS_TEST_FOR_EXCEPTION_PURE_MSG(throw_exception_test, Exception, msg)
Macro for throwing an exception with breakpointing to ease debugging.