Home
last modified time | relevance | path

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

/freebsd-12.1/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-12.1/contrib/googletest/googletest/include/gtest/internal/
H A Dgtest-internal.h1220 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1227 catch (expected_exception const&) { \
1233 #expected_exception ".\n Actual: it throws a different type."; \
1239 #expected_exception ".\n Actual: it throws nothing."; \
/freebsd-12.1/contrib/googletest/googletest/include/gtest/
H A Dgtest.h1913 #define EXPECT_THROW(statement, expected_exception) \ argument
1914 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1919 #define ASSERT_THROW(statement, expected_exception) \ argument
1920 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)