| 26 | } |
| 27 | |
| 28 | [[nodiscard]] auto run() -> bool { |
| 29 | #if defined(__cpp_lib_parallel_algorithm) |
| 30 | std::for_each(std::execution::par, std::cbegin(suites_), std::cend(suites_), |
| 31 | [&](const auto& suite) { suite.first(); }); |
| 32 | #else |
| 33 | std::for_each(std::cbegin(suites_), std::cend(suites_), |
| 34 | [&](const auto& suite) { suite.first(); }); |
| 35 | #endif |
| 36 | |
| 37 | suites_.clear(); |
| 38 | |
| 39 | return fails_ > 0; |
| 40 | } |
| 41 | }; |
| 42 | } // namespace cfg |
| 43 |