MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / RunContext

Method RunContext

extlibs/catch/include/catch/catch.hpp:12096–12108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12094 }
12095
12096 RunContext::RunContext(IConfigPtr const& _config, IStreamingReporterPtr&& reporter)
12097 : m_runInfo(_config->name()),
12098 m_context(getCurrentMutableContext()),
12099 m_config(_config),
12100 m_reporter(std::move(reporter)),
12101 m_lastAssertionInfo{ StringRef(), SourceLineInfo("",0), StringRef(), ResultDisposition::Normal },
12102 m_includeSuccessfulResults( m_config->includeSuccessfulResults() || m_reporter->getPreferences().shouldReportAllAssertions )
12103 {
12104 m_context.setRunner(this);
12105 m_context.setConfig(m_config);
12106 m_context.setResultCapture(this);
12107 m_reporter->testRunStarting(m_runInfo);
12108 }
12109
12110 RunContext::~RunContext() {
12111 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