Home
last modified time | relevance | path

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

12

/external/fmtlib/test/
Dgtest-extra.h16 #define FMT_TEST_THROW_(statement, expected_exception, expected_message, fail) \ argument
23 } catch (expected_exception const& e) { \
34 " throws an exception of type " #expected_exception \
40 " throws an exception of type " #expected_exception \
50 #define EXPECT_THROW_MSG(statement, expected_exception, expected_message) \ argument
51 FMT_TEST_THROW_(statement, expected_exception, expected_message, \
/external/autotest/client/common_lib/hosts/
Drepair_unittest.py521 expected_exception = hosts.AutoservVerifyDependencyError
522 with self.assertRaises(expected_exception) as e:
583 expected_exception = hosts.AutoservVerifyDependencyError
584 with self.assertRaises(expected_exception) as e:
619 expected_exception = hosts.AutoservVerifyDependencyError
620 with self.assertRaises(expected_exception) as e:
702 expected_exception = hosts.AutoservVerifyDependencyError
703 with self.assertRaises(expected_exception) as e:
900 expected_exception = hosts.AutoservVerifyDependencyError
901 with self.assertRaises(expected_exception) as e:
/external/googletest/googletest/include/gtest/internal/
Dgtest-internal.h1394 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \
1397 expected_exception>::type>::type, \
1402 " throws an exception of type " #expected_exception \
1413 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception)
1417 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1423 } catch (expected_exception const&) { \
1426 GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \
1429 " throws an exception of type " #expected_exception \
1435 " throws an exception of type " #expected_exception \
/external/python/asn1crypto/tests/
D_unittest_compat.py107 def _assert_raises_regex(self, expected_exception, expected_regexp, callable_obj=None, *args, **kwa… argument
110 context = _AssertRaisesContext(expected_exception, self, expected_regexp)
/external/python/cpython3/Lib/test/
Dtest_unicode_file_functions.py85 expected_exception=FileNotFoundError, argument
87 with self.assertRaises(expected_exception) as c:
Dtest_optparse.py82 expected_exception, argument
106 except expected_exception as err:
/external/python/cpython2/Lib/test/
Dtest_pep277.py93 def _apply_failure(self, fn, filename, expected_exception, argument
95 with self.assertRaises(expected_exception) as c:
Dtest_optparse.py84 expected_exception, argument
108 except expected_exception, err:
/external/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/
Dcase.py1061 def assertRaisesRegexp(self, expected_exception, expected_regexp, argument
1075 expected_exception, self, expected_regexp)
1078 except expected_exception as exc_value:
1086 if hasattr(expected_exception, '__name__'):
1087 excName = expected_exception.__name__
1089 excName = str(expected_exception)
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-internal.h1143 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1150 catch (expected_exception const&) { \
1156 #expected_exception ".\n Actual: it throws a different type."; \
1162 #expected_exception ".\n Actual: it throws nothing."; \
/external/llvm-project/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-internal.h1124 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1131 catch (expected_exception const&) { \
1137 #expected_exception ".\n Actual: it throws a different type."; \
1143 #expected_exception ".\n Actual: it throws nothing."; \
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
Dgtest-internal.h1217 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1224 catch (expected_exception const&) { \
1230 #expected_exception ".\n Actual: it throws a different type."; \
1236 #expected_exception ".\n Actual: it throws nothing."; \
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/include/gtest/internal/
Dgtest-internal.h1306 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1313 catch (expected_exception const&) { \
1319 #expected_exception ".\n Actual: it throws a different type."; \
1325 #expected_exception ".\n Actual: it throws nothing."; \
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-internal.h1260 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1267 catch (expected_exception const&) { \
1273 #expected_exception ".\n Actual: it throws a different type."; \
1279 #expected_exception ".\n Actual: it throws nothing."; \
/external/llvm/utils/unittest/googletest/include/gtest/
Dgtest.h1771 #define EXPECT_THROW(statement, expected_exception) \ argument
1772 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1777 #define ASSERT_THROW(statement, expected_exception) \ argument
1778 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/internal/
Dgtest-internal.h1298 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1304 } catch (expected_exception const &) { \
1308 " throws an exception of type " #expected_exception \
1314 " throws an exception of type " #expected_exception \
/external/llvm-project/llvm/utils/unittest/googletest/include/gtest/
Dgtest.h1843 #define EXPECT_THROW(statement, expected_exception) \ argument
1844 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1849 #define ASSERT_THROW(statement, expected_exception) \ argument
1850 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/
Dgtest.h1888 #define EXPECT_THROW(statement, expected_exception) \ argument
1889 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1894 #define ASSERT_THROW(statement, expected_exception) \ argument
1895 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/
Dgtest.h1931 #define EXPECT_THROW(statement, expected_exception) \ argument
1932 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1937 #define ASSERT_THROW(statement, expected_exception) \ argument
1938 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)
/external/python/cpython3/Lib/unittest/
Dcase.py705 def assertRaises(self, expected_exception, *args, **kwargs): argument
731 context = _AssertRaisesContext(expected_exception, self)
1262 def assertRaisesRegex(self, expected_exception, expected_regex, argument
1275 context = _AssertRaisesContext(expected_exception, self, expected_regex)
/external/mesa3d/src/gtest/include/gtest/
Dgtest.h1952 #define EXPECT_THROW(statement, expected_exception) \ argument
1953 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1958 #define ASSERT_THROW(statement, expected_exception) \ argument
1959 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)
/external/googletest/googletest/include/gtest/
Dgtest.h1949 #define EXPECT_THROW(statement, expected_exception) \ argument
1950 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1955 #define ASSERT_THROW(statement, expected_exception) \ argument
1956 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/include/gtest/
Dgtest.h1927 #define EXPECT_THROW(statement, expected_exception) \ argument
1928 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1933 #define ASSERT_THROW(statement, expected_exception) \ argument
1934 GTEST_TEST_THROW_(statement, expected_exception, GTEST_FATAL_FAILURE_)
/external/python/cpython2/Lib/unittest/
Dcase.py976 def assertRaisesRegexp(self, expected_exception, expected_regexp, argument
990 context = _AssertRaisesContext(expected_exception, self, expected_regexp)
/external/python/ipaddress/
Dtest_ipaddress.py2138 def __init__(self, expected_exception, expected_regex): argument
2139 self.expected = expected_exception

12