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

Method RunContext

lib/catch2/catch.hpp:12717–12729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12715 }
12716
12717 RunContext::RunContext(IConfigPtr const& _config, IStreamingReporterPtr&& reporter)
12718 : m_runInfo(_config->name()),
12719 m_context(getCurrentMutableContext()),
12720 m_config(_config),
12721 m_reporter(std::move(reporter)),
12722 m_lastAssertionInfo{ StringRef(), SourceLineInfo("",0), StringRef(), ResultDisposition::Normal },
12723 m_includeSuccessfulResults( m_config->includeSuccessfulResults() || m_reporter->getPreferences().shouldReportAllAssertions )
12724 {
12725 m_context.setRunner(this);
12726 m_context.setConfig(m_config);
12727 m_context.setResultCapture(this);
12728 m_reporter->testRunStarting(m_runInfo);
12729 }
12730
12731 RunContext::~RunContext() {
12732 m_reporter->testRunEnded(TestRunStats(m_runInfo, m_totals, aborting()));

Callers

nothing calls this directly

Calls 9

StringRefClass · 0.85
SourceLineInfoClass · 0.85
setRunnerMethod · 0.80
setConfigMethod · 0.80
setResultCaptureMethod · 0.80
nameMethod · 0.45
getPreferencesMethod · 0.45
testRunStartingMethod · 0.45

Tested by

no test coverage detected