Home
last modified time | relevance | path

Searched refs:BOOST_TEST_THROWS (Results 1 – 25 of 56) sorted by relevance

123

/third_party/boost/tools/quickbook/test/unit/
Dglob_test.cpp98 BOOST_TEST_THROWS(quickbook::glob("[", "a"), quickbook::glob_error); in invalid_glob_tests()
99 BOOST_TEST_THROWS(quickbook::glob("[^", "a"), quickbook::glob_error); in invalid_glob_tests()
100 BOOST_TEST_THROWS(quickbook::glob("[xyz", "a"), quickbook::glob_error); in invalid_glob_tests()
101 BOOST_TEST_THROWS(quickbook::glob("[xyz\\", "a"), quickbook::glob_error); in invalid_glob_tests()
102 BOOST_TEST_THROWS(quickbook::glob("[x\\y", "a"), quickbook::glob_error); in invalid_glob_tests()
103 BOOST_TEST_THROWS(quickbook::glob("[a-", "a"), quickbook::glob_error); in invalid_glob_tests()
104 BOOST_TEST_THROWS(quickbook::glob("[a-z", "a"), quickbook::glob_error); in invalid_glob_tests()
105 BOOST_TEST_THROWS(quickbook::glob("[a-\\", "a"), quickbook::glob_error); in invalid_glob_tests()
106 BOOST_TEST_THROWS(quickbook::glob("[a-\\a", "a"), quickbook::glob_error); in invalid_glob_tests()
107 BOOST_TEST_THROWS(quickbook::glob("xyx[", "xyxa"), quickbook::glob_error); in invalid_glob_tests()
[all …]
/third_party/boost/libs/uuid/test/
Dtest_string_generator.cpp67 BOOST_TEST_THROWS(gen(std::string(raw, 36)), std::runtime_error); in main()
69 BOOST_TEST_THROWS(gen("01234567-89ab-cdef-0123456789abcdef"), std::runtime_error); in main()
70 BOOST_TEST_THROWS(gen("01234567-89ab-cdef0123-456789abcdef"), std::runtime_error); in main()
71 BOOST_TEST_THROWS(gen("01234567-89abcdef-0123-456789abcdef"), std::runtime_error); in main()
72 BOOST_TEST_THROWS(gen("0123456789ab-cdef-0123-456789abcdef"), std::runtime_error); in main()
74 BOOST_TEST_THROWS(gen("{01234567-89AB-CDEF-0123-456789abcdef)"), std::runtime_error); in main()
75 BOOST_TEST_THROWS(gen("{01234567-89AB-CDEF-0123-456789abcdef"), std::runtime_error); in main()
76 BOOST_TEST_THROWS(gen("01234567-89AB-CDEF-0123-456789abcdef}"), std::runtime_error); in main()
78BOOST_TEST_THROWS(gen(std::wstring(L"{01234567-89AB-CDEF-0123-456789abcdef)")), std::runtime_error… in main()
79BOOST_TEST_THROWS(gen(std::wstring(L"{01234567-89AB-CDEF-0123-456789abcdef")), std::runtime_error); in main()
[all …]
Dtest_detail_random_provider.cpp55 BOOST_TEST_THROWS(boost::uuids::detail::random_provider(), in main()
69 BOOST_TEST_THROWS(boost::uuids::detail::random_provider().get_random_bytes(buf, 4), in main()
/third_party/boost/libs/throw_exception/test/
Dthrow_exception_test3.cpp46 BOOST_TEST_THROWS( boost::rethrow_exception( p ), my_exception ); in main()
47 BOOST_TEST_THROWS( boost::rethrow_exception( p ), boost::exception ); in main()
58 BOOST_TEST_THROWS( boost::rethrow_exception( p ), my_exception2 ); in main()
59 BOOST_TEST_THROWS( boost::rethrow_exception( p ), boost::exception ); in main()
70 BOOST_TEST_THROWS( boost::rethrow_exception( p ), my_exception3 ); in main()
71 BOOST_TEST_THROWS( boost::rethrow_exception( p ), boost::exception ); in main()
82 BOOST_TEST_THROWS( boost::rethrow_exception( p ), my_exception ); in main()
83 BOOST_TEST_THROWS( boost::rethrow_exception( p ), boost::exception ); in main()
94 BOOST_TEST_THROWS( boost::rethrow_exception( p ), my_exception2 ); in main()
95 BOOST_TEST_THROWS( boost::rethrow_exception( p ), boost::exception ); in main()
[all …]
Dthrow_from_library_test.cpp30 BOOST_TEST_THROWS( lib1::f(), lib1::exception ); in test_catch_by_type()
31 BOOST_TEST_THROWS( lib2::f(), lib2::exception ); in test_catch_by_type()
32 BOOST_TEST_THROWS( lib3::f(), lib3::exception ); in test_catch_by_type()
37 BOOST_TEST_THROWS( lib2::f(), boost::exception ); in test_catch_by_exception()
38 BOOST_TEST_THROWS( lib3::f(), boost::exception ); in test_catch_by_exception()
51 BOOST_TEST_THROWS( boost::rethrow_exception( p ), lib2::exception ); in test_exception_ptr()
52 BOOST_TEST_THROWS( boost::rethrow_exception( p ), boost::exception ); in test_exception_ptr()
63 BOOST_TEST_THROWS( boost::rethrow_exception( p ), lib3::exception ); in test_exception_ptr()
64 BOOST_TEST_THROWS( boost::rethrow_exception( p ), boost::exception ); in test_exception_ptr()
Dthrow_exception_test2.cpp29 BOOST_TEST_THROWS( boost::throw_exception( my_exception() ), boost::exception ); in main()
30 BOOST_TEST_THROWS( boost::throw_exception( my_exception2() ), boost::exception ); in main()
31 BOOST_TEST_THROWS( boost::throw_exception( my_exception3() ), boost::exception ); in main()
33 BOOST_TEST_THROWS( BOOST_THROW_EXCEPTION( my_exception() ), boost::exception ); in main()
34 BOOST_TEST_THROWS( BOOST_THROW_EXCEPTION( my_exception2() ), boost::exception ); in main()
35 BOOST_TEST_THROWS( BOOST_THROW_EXCEPTION( my_exception3() ), boost::exception ); in main()
/third_party/boost/libs/variant2/test/
Dvariant_get_by_index.cpp148 BOOST_TEST_THROWS( get<1>(v), bad_variant_access ); in main()
160 BOOST_TEST_THROWS( get<1>(v), bad_variant_access ); in main()
172 BOOST_TEST_THROWS( get<1>(v), bad_variant_access ); in main()
184 BOOST_TEST_THROWS( get<1>(v), bad_variant_access ); in main()
193 BOOST_TEST_THROWS( get<0>(v), bad_variant_access ); in main()
205 BOOST_TEST_THROWS( get<0>(v), bad_variant_access ); in main()
220 BOOST_TEST_THROWS( get<1>(v), bad_variant_access ); in main()
223 BOOST_TEST_THROWS( get<2>(v), bad_variant_access ); in main()
235 BOOST_TEST_THROWS( get<1>(v), bad_variant_access ); in main()
238 BOOST_TEST_THROWS( get<2>(v), bad_variant_access ); in main()
[all …]
Dvariant_get_by_type.cpp148 BOOST_TEST_THROWS( get<float>(v), bad_variant_access ); in main()
160 BOOST_TEST_THROWS( get<float>(v), bad_variant_access ); in main()
172 BOOST_TEST_THROWS( get<float>(v), bad_variant_access ); in main()
184 BOOST_TEST_THROWS( get<float>(v), bad_variant_access ); in main()
193 BOOST_TEST_THROWS( get<int>(v), bad_variant_access ); in main()
205 BOOST_TEST_THROWS( get<int>(v), bad_variant_access ); in main()
Dvariant_subset.cpp74 BOOST_TEST_THROWS( v1.subset<float>(), bad_variant_access ); in main()
81 BOOST_TEST_THROWS( std::move(v1).subset<float>(), bad_variant_access ); in main()
92 BOOST_TEST_THROWS( v1.subset<float>(), bad_variant_access ); in main()
99 BOOST_TEST_THROWS( std::move(v1).subset<float>(), bad_variant_access ); in main()
/third_party/boost/libs/histogram/test/
Dhistogram_dynamic_test.cpp72 BOOST_TEST_THROWS((void)make_histogram(bad), std::invalid_argument); in main()
79 BOOST_TEST_THROWS(b(0, 0), std::invalid_argument); in main()
81 BOOST_TEST_THROWS(c(0), std::invalid_argument); in main()
83 BOOST_TEST_THROWS(d(std::string()), std::invalid_argument); in main()
93 BOOST_TEST_THROWS(f(0, 0, 0), std::invalid_argument); in main()
94 BOOST_TEST_THROWS(f(0, std::make_tuple(0, 0), 1), std::invalid_argument); in main()
101 BOOST_TEST_THROWS(h1.at(0, 0), std::invalid_argument); in main()
102 BOOST_TEST_THROWS(h1.at(std::make_tuple(0, 0)), std::invalid_argument); in main()
108 BOOST_TEST_THROWS(c.axis().value(0), std::runtime_error); in main()
Dalgorithm_reduce_test.cpp47 BOOST_TEST_THROWS((void)reduce(h, slice(10, 2, 3)), std::invalid_argument); in run_tests()
49 BOOST_TEST_THROWS((void)reduce(h, slice(1, 0, 2), slice(1, 1, 3)), in run_tests()
52 BOOST_TEST_THROWS((void)reduce(h, rebin(0, 2), rebin(0, 2)), std::invalid_argument); in run_tests()
54 BOOST_TEST_THROWS((void)reduce(h, slice_and_rebin(0, 1, 3, 2), rebin(0, 2)), in run_tests()
56 BOOST_TEST_THROWS((void)reduce(h, shrink(1, 0, 2), crop(1, 0, 2)), in run_tests()
59 BOOST_TEST_THROWS((void)reduce(h, slice(0, 1, 1)), std::invalid_argument); in run_tests()
60 BOOST_TEST_THROWS((void)reduce(h, slice(0, 2, 1)), std::invalid_argument); in run_tests()
62 BOOST_TEST_THROWS((void)reduce(h, shrink(0, 0, 0)), std::invalid_argument); in run_tests()
64 BOOST_TEST_THROWS((void)reduce(h, crop(0, 0, 0)), std::invalid_argument); in run_tests()
66 BOOST_TEST_THROWS((void)reduce(h, shrink(0, 10, 11)), std::invalid_argument); in run_tests()
[all …]
Dhistogram_mixed_test.cpp60 BOOST_TEST_THROWS(a += make(T2{}, axis::integer<>{0, 3}), std::invalid_argument); in run_tests()
61 BOOST_TEST_THROWS(a -= make(T2{}, axis::integer<>{0, 3}), std::invalid_argument); in run_tests()
62 BOOST_TEST_THROWS(a *= make(T2{}, axis::integer<>{0, 3}), std::invalid_argument); in run_tests()
63 BOOST_TEST_THROWS(a /= make(T2{}, axis::integer<>{0, 3}), std::invalid_argument); in run_tests()
87 BOOST_TEST_THROWS(a = b, std::invalid_argument); in main()
Daxis_variable_test.cpp28 BOOST_TEST_THROWS(axis::variable<>(std::vector<double>{}), std::invalid_argument); in main()
29 BOOST_TEST_THROWS(axis::variable<>({1.0}), std::invalid_argument); in main()
30 BOOST_TEST_THROWS(axis::variable<>({1.0, 1.0}), std::invalid_argument); in main()
31 BOOST_TEST_THROWS(axis::variable<>({1.0, -1.0}), std::invalid_argument); in main()
151 BOOST_TEST_THROWS(A(a, 1, 4, 1), std::invalid_argument); in main()
152 BOOST_TEST_THROWS(A(a, 0, 3, 1), std::invalid_argument); in main()
Dhistogram_operators_test.cpp268 BOOST_TEST_THROWS(a += b, std::invalid_argument); in run_tests()
286 BOOST_TEST_THROWS(a += b, std::invalid_argument); in run_tests()
290 BOOST_TEST_THROWS(a += c, std::invalid_argument); in run_tests()
298 BOOST_TEST_THROWS(a += b, std::invalid_argument); in run_tests()
299 BOOST_TEST_THROWS(a -= b, std::invalid_argument); in run_tests()
300 BOOST_TEST_THROWS(a *= b, std::invalid_argument); in run_tests()
301 BOOST_TEST_THROWS(a /= b, std::invalid_argument); in run_tests()
303 BOOST_TEST_THROWS(a += c, std::invalid_argument); in run_tests()
Daxis_variant_test.cpp53 BOOST_TEST_THROWS(a.metadata(), std::runtime_error); in main()
54 BOOST_TEST_THROWS(static_cast<const variant_type&>(a).metadata(), std::runtime_error); in main()
105 BOOST_TEST_THROWS(axis::variant<axis::regular<>> a8(a7), std::runtime_error); in main()
106 BOOST_TEST_THROWS(a4 = a7, std::runtime_error); in main()
176 BOOST_TEST_THROWS(a.bin(0), std::runtime_error); in main()
196 BOOST_TEST_THROWS(axis.value(0), std::runtime_error); in main()
200 BOOST_TEST_THROWS(axis.value(0), std::runtime_error); in main()
Dhistogram_custom_axis_test.cpp77 BOOST_TEST_THROWS(h(1), std::invalid_argument); in run_tests()
78 BOOST_TEST_THROWS(h(1, 2, 3), std::invalid_argument); in run_tests()
124 BOOST_TEST_THROWS(h(0), std::invalid_argument); in run_tests()
/third_party/boost/libs/conversion/test/
Dpolymorphic_cast_test.cpp262 BOOST_TEST_THROWS( boost::polymorphic_cast<Derived*>( base ), std::bad_cast ); in test_polymorphic_cast_fail()
270 BOOST_TEST_THROWS( boost::polymorphic_pointer_cast<Derived>( base ), std::bad_cast ); in test_polymorphic_pointer_cast_fail()
273BOOST_TEST_THROWS( boost::polymorphic_pointer_cast<Derived>( boost::shared_ptr<Base>(new Base) ), … in test_polymorphic_pointer_cast_fail()
276BOOST_TEST_THROWS( boost::polymorphic_pointer_cast<Derived>( std::shared_ptr<Base>(new Base) ), st… in test_polymorphic_pointer_cast_fail()
279BOOST_TEST_THROWS( boost::polymorphic_pointer_cast<Derived>( boost::intrusive_ptr<Base>(new Base) … in test_polymorphic_pointer_cast_fail()
292BOOST_TEST_THROWS(boost::polymorphic_downcast<Derived *>(base_pointer), expected_assertion); // sh… in test_polymorphic_downcast_fail()
303BOOST_TEST_THROWS(boost::polymorphic_downcast<Derived &>(*base_pointer), expected_assertion); // s… in test_polymorphic_downcast_fail()
319BOOST_TEST_THROWS( boost::polymorphic_pointer_downcast<Derived>( base ), expected_assertion ); // … in test_polymorphic_pointer_downcast_builtin_fail()
334BOOST_TEST_THROWS( boost::polymorphic_pointer_downcast<Derived>( base ), expected_assertion ); // … in test_polymorphic_pointer_downcast_boost_shared_fail()
349BOOST_TEST_THROWS( boost::polymorphic_pointer_downcast<Derived>( base ), expected_assertion ); // … in test_polymorphic_pointer_downcast_std_shared_fail()
[all …]
/third_party/boost/libs/container/test/
Dstatic_vector_test.cpp31 BOOST_TEST_THROWS( s.at(0u), std::out_of_range ); in test_ctor_ndc()
42 BOOST_TEST_THROWS( s.at(n), std::out_of_range ); in test_ctor_nc()
63 BOOST_TEST_THROWS( s.at(n), std::out_of_range ); in test_ctor_nd()
88 BOOST_TEST_THROWS(sv_cap_1({1, 1}), std::bad_alloc); in test_support_for_initializer_list()
97 BOOST_TEST_THROWS(sv.assign({1, 2, 3}), std::bad_alloc); in test_support_for_initializer_list()
100 BOOST_TEST_THROWS(sv = greaterThanSv, std::bad_alloc); in test_support_for_initializer_list()
109 BOOST_TEST_THROWS(sv.insert(sv.begin(), {101, 102, 103}), std::bad_alloc); in test_support_for_initializer_list()
122 BOOST_TEST_THROWS( s.at(n), std::out_of_range ); in test_resize_nc()
144 BOOST_TEST_THROWS( s.at(n), std::out_of_range ); in test_resize_nd()
166 BOOST_TEST_THROWS( s.at(0), std::out_of_range ); in test_push_back_nd()
[all …]
Dvector_options_test.cpp26 BOOST_TEST_THROWS(v.resize(max+1), std::exception); in test_stored_size_type_impl()
27 BOOST_TEST_THROWS(v.push_back(value_type(1)), std::exception); in test_stored_size_type_impl()
28 BOOST_TEST_THROWS(v.insert(v.begin(), value_type(1)), std::exception); in test_stored_size_type_impl()
29 BOOST_TEST_THROWS(v.emplace(v.begin(), value_type(1)),std::exception); in test_stored_size_type_impl()
30 BOOST_TEST_THROWS(v.reserve(max+1), std::exception); in test_stored_size_type_impl()
31 BOOST_TEST_THROWS(VectorType v2(max+1), std::exception); in test_stored_size_type_impl()
/third_party/boost/libs/circular_buffer/test/
Dbase_test.cpp580 BOOST_TEST_THROWS(cb1.set_capacity(5), std::exception); in exception_safety_test()
583 BOOST_TEST_THROWS(cb1.rset_capacity(5), std::exception); in exception_safety_test()
588 BOOST_TEST_THROWS(circular_buffer<MyInteger> cb2(5, 10), std::exception); in exception_safety_test()
592 BOOST_TEST_THROWS(circular_buffer<MyInteger> cb4(cb3), std::exception); in exception_safety_test()
596 BOOST_TEST_THROWS(circular_buffer<MyInteger> cb5(8, v.begin(), v.end()), std::exception); in exception_safety_test()
601 BOOST_TEST_THROWS(cb7 = cb6, std::exception); in exception_safety_test()
610 BOOST_TEST_THROWS(cb8.push_front(1), std::exception); in exception_safety_test()
617 BOOST_TEST_THROWS(cb9.insert(cb9.begin() + 1, 4), std::exception); in exception_safety_test()
624 BOOST_TEST_THROWS(cb10.rinsert(cb10.begin() + 1, 4), std::exception); in exception_safety_test()
630 BOOST_TEST_THROWS(cb11.rinsert(cb11.begin(), 1), std::exception); in exception_safety_test()
[all …]
/third_party/boost/libs/format/test/
Dformat_test_exceptions.cpp19 #define CHECK_INVALID_0(FMT, EX) { BOOST_TEST_THROWS((boost::format(FMT)).str(), EX); \
21 #define CHECK_INVALID_1(FMT, _1, EX) { BOOST_TEST_THROWS((boost::format(FMT) % _1).str(), EX); \
23 #define CHECK_INVALID_2(FMT, _1, _2, EX) { BOOST_TEST_THROWS((boost::format(FMT) % _1 % _2).str(), …
97 BOOST_TEST_THROWS(two.str(), too_few_args); in main()
98 BOOST_TEST_THROWS(two.clear_bind(1), boost::io::out_of_range); in main()
/third_party/boost/libs/core/test/
Dlightweight_test_test.cpp105 BOOST_TEST_THROWS( throw X(), X ); in main()
106 BOOST_TEST_THROWS( throw 1, int ); in main()
108 BOOST_TEST_THROWS( f(true), X ); in main()
109 BOOST_TEST_THROWS( f(false), int ); in main()
/third_party/boost/libs/outcome/test/
Dexpected-pass.cpp37 #ifndef BOOST_TEST_THROWS
38 #define BOOST_TEST_THROWS(expr, ex) BOOST_CHECK_THROW((expr), ex) macro
519 BOOST_TEST_THROWS(e.value(), test_exception);
543 BOOST_TEST_THROWS(e.value(), test_exception);
565 BOOST_TEST_THROWS(e.value(), test_exception);
594 BOOST_TEST_THROWS(e.value(), std::exception); in expected_from_catch_block()
803 BOOST_TEST_THROWS(e.value(), std::exception); in expected_from_exception_catch()
841 BOOST_TEST_THROWS(e.value(), test_exception );
850 BOOST_TEST_THROWS(e.value(), test_exception );
867 BOOST_TEST_THROWS(e.value(), std::exception );
[all …]
/third_party/boost/libs/filesystem/test/
Dcopy_test.cpp276 BOOST_TEST_THROWS(fs::copy(root_dir / "non-existing", target_dir), fs::filesystem_error); in test_copy_errors()
280 BOOST_TEST_THROWS(fs::copy(root_dir / "f1", target_dir), fs::filesystem_error); in test_copy_errors()
281 BOOST_TEST_THROWS(fs::copy(root_dir / "f1", target_dir / "f1"), fs::filesystem_error); in test_copy_errors()
282 BOOST_TEST_THROWS(fs::copy(root_dir / "d1", target_dir / "f1"), fs::filesystem_error); in test_copy_errors()
284 BOOST_TEST_THROWS(fs::copy(target_dir, target_dir), fs::filesystem_error); in test_copy_errors()
285 BOOST_TEST_THROWS(fs::copy(target_dir / "f1", target_dir / "f1"), fs::filesystem_error); in test_copy_errors()
290BOOST_TEST_THROWS(fs::copy(root_dir, target_dir, fs::copy_options::create_symlinks), fs::filesyste… in test_copy_errors()
/third_party/boost/libs/static_string/test/
Dstatic_string.cpp41 BOOST_TEST_THROWS((s.substr(pos, n)), std::out_of_range); in testS()
58 BOOST_TEST_THROWS((s.subview(pos, n)), std::out_of_range); in testSV()
83 BOOST_TEST_THROWS((s.insert(pos, str, n)), std::out_of_range); in testI()
100 BOOST_TEST_THROWS(s.erase(pos, n), std::out_of_range); in testE()
130 BOOST_TEST_THROWS(s.compare(pos, n1, str, n2), std::out_of_range); in testC()
199 BOOST_TEST_THROWS((s.replace(pos, n1, n2, c)), std::out_of_range); in testR()
223 BOOST_TEST_THROWS((s.replace(pos, n1, str, n2)), std::out_of_range); in testR()
275 BOOST_TEST_THROWS( in testConstruct()
299 BOOST_TEST_THROWS( in testConstruct()
327 BOOST_TEST_THROWS( in testConstruct()
[all …]

123