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