Home
last modified time | relevance | path

Searched refs:expected_exception (Results 1 – 3 of 3) sorted by relevance

/freebsd-14.2/contrib/atf/atf-c++/
H A Dmacros.hpp135 #define ATF_REQUIRE_THROW(expected_exception, statement) \ argument
141 << ": " #statement " did not throw " #expected_exception \
144 } catch (const expected_exception&) { \
148 "unexpected error (not " #expected_exception "): " \
154 "unexpected error (not " #expected_exception ")"; \
159 #define ATF_REQUIRE_THROW_RE(expected_exception, regexp, statement) \ argument
165 << ": " #statement " did not throw " #expected_exception \
168 } catch (const expected_exception& e) { \
172 << ": " #statement " threw " #expected_exception "(" \
180 "unexpected error (not " #expected_exception "): " \
[all …]
/freebsd-14.2/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-internal.h1384 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \
1387 expected_exception>::type>::type, \
1392 " throws an exception of type " #expected_exception \
1403 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception)
1407 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1413 } catch (expected_exception const&) { \
1416 GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \
1419 " throws an exception of type " #expected_exception \
1425 " throws an exception of type " #expected_exception \
/freebsd-14.2/contrib/googletest/googletest/include/gtest/
H A Dgtest.h1775 #define EXPECT_THROW(statement, expected_exception) \ argument
1776 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1781 #define ASSERT_THROW(statement, expected_exception) \ argument
1782 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)