MCPcopy Create free account
hub / github.com/apache/trafficserver / runCurrentTest

Method runCurrentTest

lib/catch2/catch.hpp:12974–12998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 }

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