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

Method RunContext

unittests/catch.hpp:8551–8563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8549 };
8550
8551 RunContext::RunContext(IConfigPtr const& _config, IStreamingReporterPtr&& reporter)
8552 : m_runInfo(_config->name()),
8553 m_context(getCurrentMutableContext()),
8554 m_config(_config),
8555 m_reporter(std::move(reporter)),
8556 m_lastAssertionInfo{ StringRef(), SourceLineInfo("",0), StringRef(), ResultDisposition::Normal },
8557 m_includeSuccessfulResults( m_config->includeSuccessfulResults() )
8558 {
8559 m_context.setRunner(this);
8560 m_context.setConfig(m_config);
8561 m_context.setResultCapture(this);
8562 m_reporter->testRunStarting(m_runInfo);
8563 }
8564
8565 RunContext::~RunContext() {
8566 m_reporter->testRunEnded(TestRunStats(m_runInfo, m_totals, aborting()));

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected