| 12961 | } |
| 12962 | |
| 12963 | void RunContext::runCurrentTest(std::string & redirectedCout, std::string & redirectedCerr) { |
| 12964 | auto const& testCaseInfo = m_activeTestCase->getTestCaseInfo(); |
| 12965 | SectionInfo testCaseSection(testCaseInfo.lineInfo, testCaseInfo.name); |
| 12966 | m_reporter->sectionStarting(testCaseSection); |
| 12967 | Counts prevAssertions = m_totals.assertions; |
| 12968 | double duration = 0; |
| 12969 | m_shouldReportUnexpected = true; |
| 12970 | m_lastAssertionInfo = { "TEST_CASE"_sr, testCaseInfo.lineInfo, StringRef(), ResultDisposition::Normal }; |
| 12971 | |
| 12972 | seedRng(*m_config); |
| 12973 | |
| 12974 | Timer timer; |
| 12975 | CATCH_TRY { |
| 12976 | if (m_reporter->getPreferences().shouldRedirectStdOut) { |
| 12977 | #if !defined(CATCH_CONFIG_EXPERIMENTAL_REDIRECT) |
| 12978 | RedirectedStreams redirectedStreams(redirectedCout, redirectedCerr); |
| 12979 | |
| 12980 | timer.start(); |
| 12981 | invokeActiveTestCase(); |
| 12982 | #else |
| 12983 | OutputRedirect r(redirectedCout, redirectedCerr); |
| 12984 | timer.start(); |
| 12985 | invokeActiveTestCase(); |
| 12986 | #endif |
| 12987 | } else { |
| 12988 | timer.start(); |
| 12989 | invokeActiveTestCase(); |
| 12990 | } |
nothing calls this directly
no test coverage detected