Function RunContext

Summary

#include <include/internal/catch_run_context.h>

(1) RunContext(RunContext const &)=delete

(2) explicit RunContext(IConfigPtr const &_config, IStreamingReporterPtr &&reporter)

Function overload

Synopsis

#include <include/internal/catch_run_context.h>

RunContext(RunContext const &)=delete

Description

No description yet.

Source

Line 37 in include/internal/catch_run_context.h.

Synopsis

#include <include/internal/catch_run_context.h>

explicit RunContext(IConfigPtr const &_config, IStreamingReporterPtr &&reporter)

Description

No description yet.

Source

Lines 105-117 in include/internal/catch_run_context.cpp. Line 40 in include/internal/catch_run_context.h.

RunContext::RunContext(IConfigPtr const& _config, IStreamingReporterPtr&& reporter)
:   m_runInfo(_config->name()),
    m_context(getCurrentMutableContext()),
    m_config(_config),
    m_reporter(std::move(reporter)),
    m_lastAssertionInfo{ StringRef(), SourceLineInfo("",0), StringRef(), ResultDisposition::Normal },
    m_includeSuccessfulResults( m_config->includeSuccessfulResults() || m_reporter->getPreferences().shouldReportAllAssertions )
{
    m_context.setRunner(this);
    m_context.setConfig(m_config);
    m_context.setResultCapture(this);
    m_reporter->testRunStarting(m_runInfo);
}





Add Discussion as Guest

Log in