Searched refs:REQUIRE_THROWS_AS (Results 1 – 16 of 16) sorted by relevance
/external/catch2/projects/SelfTest/UsageTests/ |
D | Approx.tests.cpp | 168 REQUIRE_THROWS_AS(Approx(0).margin(-2), std::domain_error); 173 REQUIRE_THROWS_AS(Approx(0).epsilon(-0.001), std::domain_error); 174 REQUIRE_THROWS_AS(Approx(0).epsilon(1.0001), std::domain_error);
|
D | ToStringVariant.tests.cpp | 47 REQUIRE_THROWS_AS(value.emplace<MyType2>(MyType2{}), int); 73 REQUIRE_THROWS_AS( std::get<0>(value).emplace<MyType1>(MyType1{}), int );
|
D | Exception.tests.cpp | 78 REQUIRE_THROWS_AS( thisThrows(), std::domain_error ); 155 REQUIRE_THROWS_AS( throwCustom(), std::exception );
|
D | Matchers.tests.cpp | 361 REQUIRE_THROWS_AS(WithinAbs(1.f, -1.f), std::domain_error); 364 REQUIRE_THROWS_AS(WithinULP(1.f, -1), std::domain_error); 403 REQUIRE_THROWS_AS(WithinAbs(1., -1.), std::domain_error); 406 REQUIRE_THROWS_AS(WithinULP(1., -1), std::domain_error);
|
D | Generators.tests.cpp | 128 … REQUIRE_THROWS_AS(filter([] (int) {return false; }, value(1)), Catch::GeneratorException); in __anona7eeee530202() 167 REQUIRE_THROWS_AS(chunk(2, value(1)), Catch::GeneratorException);
|
/external/catch2/docs/ |
D | assertions.md | 120 * **REQUIRE_THROWS_AS(** _expression_, _exception type_ **)** and 174 compiler, multiple-argument assertions (e.g. `REQUIRE_THROWS_AS`) have 176 `REQUIRE_THROWS_AS(std::pair<int, int>(1, 2), std::invalid_argument);` 183 REQUIRE_THROWS_AS(int_pair(1, 2), std::invalid_argument);
|
D | list-of-examples.md | 27 - Assertion: [REQUIRE_THROWS_AS](../examples/070-Asn-RequireThrowsAs.cpp)
|
D | release-notes.md | 621 * Catch no longer attempts to ensure the exception type passed by user in `REQUIRE_THROWS_AS` is a … 622 * It was causing trouble when `REQUIRE_THROWS_AS` was used inside templated functions 750 * `REQUIRE_THROWS_AS` now catches exception by `const&` and reports expected type
|
/external/catch2/examples/ |
D | 207-Rpt-TeamCityReporter.cpp | 66 REQUIRE_THROWS_AS( throw std::bad_alloc(), std::runtime_error );
|
/external/catch2/projects/ExtraTests/ |
D | CMakeLists.txt | 30 …" REQUIRE; REQUIRE_FALSE; REQUIRE_THROWS; REQUIRE_THROWS_AS; REQUIRE_THROWS_WITH; REQUIRE_THROWS_M…
|
/external/catch2/include/ |
D | catch.hpp | 189 #define REQUIRE_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( "REQUIRE_THROWS_AS", exc… macro 356 #define REQUIRE_THROWS_AS( expr, exceptionType ) (void)(0) macro
|
/external/catch2/projects/SelfTest/IntrospectiveTests/ |
D | GeneratorsImpl.tests.cpp | 55 REQUIRE_THROWS_AS(filter([] (int) { return false; }, value(1)), Catch::GeneratorException); in __anon8726b07f0202()
|
/external/catch2/projects/SelfTest/Baselines/ |
D | console.sw.approved.txt | 1470 REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error ) 1479 REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error ) 1482 REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error ) 2180 REQUIRE_THROWS_AS( throwCustom(), std::exception ) 2736 REQUIRE_THROWS_AS( WithinAbs(1., -1.), std::domain_error ) 2742 REQUIRE_THROWS_AS( WithinULP(1., -1), std::domain_error ) 2876 REQUIRE_THROWS_AS( WithinAbs(1.f, -1.f), std::domain_error ) 2882 REQUIRE_THROWS_AS( WithinULP(1.f, -1), std::domain_error ) 2932 REQUIRE_THROWS_AS( filter([] (int) {return false; }, value(1)), Catch::GeneratorException ) 3229 REQUIRE_THROWS_AS( chunk(2, value(1)), Catch::GeneratorException ) [all …]
|
D | console.std.approved.txt | 271 REQUIRE_THROWS_AS( throwCustom(), std::exception )
|
/external/catch2/single_include/catch2/ |
D | catch.hpp | 14675 #define REQUIRE_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( "REQUIRE_THROWS_AS", exc… macro 14840 #define REQUIRE_THROWS_AS( expr, exceptionType ) (void)(0) macro
|
/external/bcc/tests/cc/ |
D | catch.hpp | 10376 #define REQUIRE_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Cat… macro
|