|
6 | 6 |
|
7 | 7 | // SPDX-License-Identifier: BSL-1.0 |
8 | 8 |
|
9 | | -// Catch v3.5.3 |
10 | | -// Generated: 2024-03-01 22:05:56.038084 |
| 9 | +// Catch v3.5.4 |
| 10 | +// Generated: 2024-04-10 12:03:46.281848 |
11 | 11 | // ---------------------------------------------------------- |
12 | 12 | // This file is an amalgamation of multiple different files. |
13 | 13 | // You probably shouldn't edit it directly. |
@@ -187,7 +187,7 @@ namespace Catch { |
187 | 187 | double const* last, |
188 | 188 | Estimator& estimator ) { |
189 | 189 | auto n = static_cast<size_t>( last - first ); |
190 | | - std::uniform_int_distribution<size_t> dist( 0, n - 1 ); |
| 190 | + Catch::uniform_integer_distribution<size_t> dist( 0, n - 1 ); |
191 | 191 |
|
192 | 192 | sample out; |
193 | 193 | out.reserve( resamples ); |
@@ -807,14 +807,16 @@ namespace Catch { |
807 | 807 |
|
808 | 808 | // Insert the default reporter if user hasn't asked for a specific one |
809 | 809 | if ( m_data.reporterSpecifications.empty() ) { |
810 | | - m_data.reporterSpecifications.push_back( { |
811 | 810 | #if defined( CATCH_CONFIG_DEFAULT_REPORTER ) |
812 | | - CATCH_CONFIG_DEFAULT_REPORTER, |
| 811 | + const auto default_spec = CATCH_CONFIG_DEFAULT_REPORTER; |
813 | 812 | #else |
814 | | - "console", |
| 813 | + const auto default_spec = "console"; |
815 | 814 | #endif |
816 | | - {}, {}, {} |
817 | | - } ); |
| 815 | + auto parsed = parseReporterSpec(default_spec); |
| 816 | + CATCH_ENFORCE( parsed, |
| 817 | + "Cannot parse the provided default reporter spec: '" |
| 818 | + << default_spec << '\'' ); |
| 819 | + m_data.reporterSpecifications.push_back( std::move( *parsed ) ); |
818 | 820 | } |
819 | 821 |
|
820 | 822 | if ( enableBazelEnvSupport() ) { |
@@ -2271,7 +2273,7 @@ namespace Catch { |
2271 | 2273 | } |
2272 | 2274 |
|
2273 | 2275 | Version const& libraryVersion() { |
2274 | | - static Version version( 3, 5, 3, "", 0 ); |
| 2276 | + static Version version( 3, 5, 4, "", 0 ); |
2275 | 2277 | return version; |
2276 | 2278 | } |
2277 | 2279 |
|
@@ -6601,6 +6603,8 @@ namespace Catch { |
6601 | 6603 | return getRegistryHub().getTestCaseRegistry().getAllTestsSorted( config ); |
6602 | 6604 | } |
6603 | 6605 |
|
| 6606 | + TestRegistry::~TestRegistry() = default; |
| 6607 | + |
6604 | 6608 | void TestRegistry::registerTest(Detail::unique_ptr<TestCaseInfo> testInfo, Detail::unique_ptr<ITestInvoker> testInvoker) { |
6605 | 6609 | m_handles.emplace_back(testInfo.get(), testInvoker.get()); |
6606 | 6610 | m_viewed_test_infos.push_back(testInfo.get()); |
|
0 commit comments