mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Remove pointless member variable from RunContext
This commit is contained in:
parent
3c8fb6bbb2
commit
28437e1214
@ -167,13 +167,12 @@ namespace Catch {
|
|||||||
|
|
||||||
RunContext::RunContext(IConfig const* _config, IEventListenerPtr&& reporter)
|
RunContext::RunContext(IConfig const* _config, IEventListenerPtr&& reporter)
|
||||||
: m_runInfo(_config->name()),
|
: m_runInfo(_config->name()),
|
||||||
m_context(getCurrentMutableContext()),
|
|
||||||
m_config(_config),
|
m_config(_config),
|
||||||
m_reporter(CATCH_MOVE(reporter)),
|
m_reporter(CATCH_MOVE(reporter)),
|
||||||
m_lastAssertionInfo{ StringRef(), SourceLineInfo("",0), StringRef(), ResultDisposition::Normal },
|
m_lastAssertionInfo{ StringRef(), SourceLineInfo("",0), StringRef(), ResultDisposition::Normal },
|
||||||
m_includeSuccessfulResults( m_config->includeSuccessfulResults() || m_reporter->getPreferences().shouldReportAllAssertions )
|
m_includeSuccessfulResults( m_config->includeSuccessfulResults() || m_reporter->getPreferences().shouldReportAllAssertions )
|
||||||
{
|
{
|
||||||
m_context.setResultCapture(this);
|
getCurrentMutableContext().setResultCapture( this );
|
||||||
m_reporter->testRunStarting(m_runInfo);
|
m_reporter->testRunStarting(m_runInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
class IMutableContext;
|
|
||||||
class IGeneratorTracker;
|
class IGeneratorTracker;
|
||||||
class IConfig;
|
class IConfig;
|
||||||
|
|
||||||
@ -132,7 +131,6 @@ namespace Catch {
|
|||||||
void handleUnfinishedSections();
|
void handleUnfinishedSections();
|
||||||
|
|
||||||
TestRunInfo m_runInfo;
|
TestRunInfo m_runInfo;
|
||||||
IMutableContext& m_context;
|
|
||||||
TestCaseHandle const* m_activeTestCase = nullptr;
|
TestCaseHandle const* m_activeTestCase = nullptr;
|
||||||
ITracker* m_testCaseTracker = nullptr;
|
ITracker* m_testCaseTracker = nullptr;
|
||||||
Optional<AssertionResult> m_lastResult;
|
Optional<AssertionResult> m_lastResult;
|
||||||
|
Loading…
Reference in New Issue
Block a user