Home
last modified time | relevance | path

Searched refs:expected_exception (Results 1 – 25 of 29) 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/python/python-api-core/tests/unit/
Dtest_operation.py142 expected_exception = status_pb2.Status(message="meep")
146 make_operation_proto(done=True, error=expected_exception),
152 assert expected_exception.message in "{!r}".format(exception)
156 expected_exception = status_pb2.Status(message="meep", code=5)
160 make_operation_proto(done=True, error=expected_exception),
166 assert expected_exception.message in "{!r}".format(exception)
/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/python/mobly/mobly/
Dasserts.py295 def assert_raises(expected_exception, extras=None, *args, **kwargs): argument
311 context = _AssertRaisesContext(expected_exception, extras=extras)
315 def assert_raises_regex(expected_exception, argument
337 context = _AssertRaisesContext(expected_exception,
/external/python/python-api-core/tests/asyncio/
Dtest_operation_async.py146 expected_exception = status_pb2.Status(message="meep")
150 make_operation_proto(done=True, error=expected_exception),
156 assert expected_exception.message in "{!r}".format(exception)
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/include/gtest/internal/
Dgtest-internal.h1398 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \
1401 expected_exception>::type>::type, \
1406 " throws an exception of type " #expected_exception \
1417 #define GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception)
1421 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1427 } catch (expected_exception const&) { \
1430 GTEST_TEST_THROW_CATCH_STD_EXCEPTION_(statement, expected_exception) \
1433 " throws an exception of type " #expected_exception \
1439 " throws an exception of type " #expected_exception \
/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/cpython3/Lib/test/
Dtest_unicode_file_functions.py86 expected_exception=FileNotFoundError, argument
88 with self.assertRaises(expected_exception) as c:
/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/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/tensorflow/tensorflow/python/framework/
Derrors_test.py151 for code, expected_exception in [
169 with self.assertRaises(expected_exception) as error:
/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/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/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
Dgtest-internal.h1289 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
1296 catch (expected_exception const&) { \
1302 #expected_exception ".\n Actual: it throws a different type."; \
1308 #expected_exception ".\n Actual: it throws nothing."; \
/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/libvpx/libvpx/third_party/googletest/src/include/gtest/
Dgtest.h1956 #define EXPECT_THROW(statement, expected_exception) \ argument
1957 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1962 #define ASSERT_THROW(statement, expected_exception) \ argument
1963 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/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/python/cpython3/Lib/unittest/
Dcase.py710 def assertRaises(self, expected_exception, *args, **kwargs): argument
736 context = _AssertRaisesContext(expected_exception, self)
1277 def assertRaisesRegex(self, expected_exception, expected_regex, argument
1290 context = _AssertRaisesContext(expected_exception, self, expected_regex)
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/include/gtest/
Dgtest.h1964 #define EXPECT_THROW(statement, expected_exception) \ argument
1965 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1970 #define ASSERT_THROW(statement, expected_exception) \ argument
1971 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/cpython2/Lib/unittest/
Dcase.py976 def assertRaisesRegexp(self, expected_exception, expected_regexp, argument
990 context = _AssertRaisesContext(expected_exception, self, expected_regexp)
/external/tensorflow/tensorflow/python/autograph/impl/
Dapi_test.py1271 for code, expected_exception in [
1289 with self.assertRaises(expected_exception) as error:

12