MCPcopy Create free account
hub / github.com/RenderKit/oidn / runCurrentTest

Method runCurrentTest

external/catch.hpp:12963–12987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 5

StringRefClass · 0.85
seedRngFunction · 0.85
sectionStartingMethod · 0.45
getPreferencesMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected