Horizon
Public Member Functions | List of all members
Catch::RunContext Class Reference
Inheritance diagram for Catch::RunContext:
Catch::IResultCapture

Public Member Functions

 RunContext (RunContext const &)=delete
 
RunContextoperator= (RunContext const &)=delete
 
 RunContext (IConfig const *_config, IEventListenerPtr &&reporter)
 
Totals runTest (TestCaseHandle const &testCase)
 
void handleExpr (AssertionInfo const &info, ITransientExpression const &expr, AssertionReaction &reaction) override
 
void handleMessage (AssertionInfo const &info, ResultWas::OfType resultType, StringRef message, AssertionReaction &reaction) override
 
void handleUnexpectedExceptionNotThrown (AssertionInfo const &info, AssertionReaction &reaction) override
 
void handleUnexpectedInflightException (AssertionInfo const &info, std::string const &message, AssertionReaction &reaction) override
 
void handleIncomplete (AssertionInfo const &info) override
 
void handleNonExpr (AssertionInfo const &info, ResultWas::OfType resultType, AssertionReaction &reaction) override
 
bool sectionStarted (SectionInfo const &sectionInfo, Counts &assertions) override
 
void sectionEnded (SectionEndInfo const &endInfo) override
 
void sectionEndedEarly (SectionEndInfo const &endInfo) override
 
auto acquireGeneratorTracker (StringRef generatorName, SourceLineInfo const &lineInfo) -> IGeneratorTracker &override
 
void benchmarkPreparing (StringRef name) override
 
void benchmarkStarting (BenchmarkInfo const &info) override
 
void benchmarkEnded (BenchmarkStats<> const &stats) override
 
void benchmarkFailed (StringRef error) override
 
void pushScopedMessage (MessageInfo const &message) override
 
void popScopedMessage (MessageInfo const &message) override
 
void emplaceUnscopedMessage (MessageBuilder const &builder) override
 
std::string getCurrentTestName () const override
 
const AssertionResultgetLastResult () const override
 
void exceptionEarlyReported () override
 
void handleFatalErrorCondition (StringRef message) override
 
bool lastAssertionPassed () override
 
void assertionPassed () override
 
bool aborting () const
 
virtual bool sectionStarted (SectionInfo const &sectionInfo, Counts &assertions)=0
 
virtual void sectionEnded (SectionEndInfo const &endInfo)=0
 
virtual void sectionEndedEarly (SectionEndInfo const &endInfo)=0
 
virtual auto acquireGeneratorTracker (StringRef generatorName, SourceLineInfo const &lineInfo) -> IGeneratorTracker &=0
 
virtual void benchmarkPreparing (StringRef name)=0
 
virtual void benchmarkStarting (BenchmarkInfo const &info)=0
 
virtual void benchmarkEnded (BenchmarkStats<> const &stats)=0
 
virtual void benchmarkFailed (StringRef error)=0
 
virtual void pushScopedMessage (MessageInfo const &message)=0
 
virtual void popScopedMessage (MessageInfo const &message)=0
 
virtual void emplaceUnscopedMessage (MessageBuilder const &builder)=0
 
virtual void handleFatalErrorCondition (StringRef message)=0
 
virtual void handleExpr (AssertionInfo const &info, ITransientExpression const &expr, AssertionReaction &reaction)=0
 
virtual void handleMessage (AssertionInfo const &info, ResultWas::OfType resultType, StringRef message, AssertionReaction &reaction)=0
 
virtual void handleUnexpectedExceptionNotThrown (AssertionInfo const &info, AssertionReaction &reaction)=0
 
virtual void handleUnexpectedInflightException (AssertionInfo const &info, std::string const &message, AssertionReaction &reaction)=0
 
virtual void handleIncomplete (AssertionInfo const &info)=0
 
virtual void handleNonExpr (AssertionInfo const &info, ResultWas::OfType resultType, AssertionReaction &reaction)=0
 
virtual bool lastAssertionPassed ()=0
 
virtual void assertionPassed ()=0
 
virtual std::string getCurrentTestName () const =0
 
virtual const AssertionResultgetLastResult () const =0
 
virtual void exceptionEarlyReported ()=0
 

Member Function Documentation

◆ acquireGeneratorTracker()

auto Catch::RunContext::acquireGeneratorTracker ( StringRef  generatorName,
SourceLineInfo const &  lineInfo 
) -> IGeneratorTracker&
overridevirtual

Implements Catch::IResultCapture.

◆ assertionPassed()

void Catch::RunContext::assertionPassed ( )
overridevirtual

Implements Catch::IResultCapture.

◆ benchmarkEnded()

void Catch::RunContext::benchmarkEnded ( BenchmarkStats<> const &  stats)
overridevirtual

Implements Catch::IResultCapture.

◆ benchmarkFailed()

void Catch::RunContext::benchmarkFailed ( StringRef  error)
overridevirtual

Implements Catch::IResultCapture.

◆ benchmarkPreparing()

void Catch::RunContext::benchmarkPreparing ( StringRef  name)
overridevirtual

Implements Catch::IResultCapture.

◆ benchmarkStarting()

void Catch::RunContext::benchmarkStarting ( BenchmarkInfo const &  info)
overridevirtual

Implements Catch::IResultCapture.

◆ emplaceUnscopedMessage()

void Catch::RunContext::emplaceUnscopedMessage ( MessageBuilder const &  builder)
overridevirtual

Implements Catch::IResultCapture.

◆ exceptionEarlyReported()

void Catch::RunContext::exceptionEarlyReported ( )
overridevirtual

Implements Catch::IResultCapture.

◆ getCurrentTestName()

std::string Catch::RunContext::getCurrentTestName ( ) const
overridevirtual

Implements Catch::IResultCapture.

◆ getLastResult()

const AssertionResult * Catch::RunContext::getLastResult ( ) const
overridevirtual

Implements Catch::IResultCapture.

◆ handleExpr()

void Catch::RunContext::handleExpr ( AssertionInfo const &  info,
ITransientExpression const &  expr,
AssertionReaction reaction 
)
overridevirtual

Implements Catch::IResultCapture.

◆ handleFatalErrorCondition()

void Catch::RunContext::handleFatalErrorCondition ( StringRef  message)
overridevirtual

Implements Catch::IResultCapture.

◆ handleIncomplete()

void Catch::RunContext::handleIncomplete ( AssertionInfo const &  info)
overridevirtual

Implements Catch::IResultCapture.

◆ handleMessage()

void Catch::RunContext::handleMessage ( AssertionInfo const &  info,
ResultWas::OfType  resultType,
StringRef  message,
AssertionReaction reaction 
)
overridevirtual

Implements Catch::IResultCapture.

◆ handleNonExpr()

void Catch::RunContext::handleNonExpr ( AssertionInfo const &  info,
ResultWas::OfType  resultType,
AssertionReaction reaction 
)
overridevirtual

Implements Catch::IResultCapture.

◆ handleUnexpectedExceptionNotThrown()

void Catch::RunContext::handleUnexpectedExceptionNotThrown ( AssertionInfo const &  info,
AssertionReaction reaction 
)
overridevirtual

Implements Catch::IResultCapture.

◆ handleUnexpectedInflightException()

void Catch::RunContext::handleUnexpectedInflightException ( AssertionInfo const &  info,
std::string const &  message,
AssertionReaction reaction 
)
overridevirtual

Implements Catch::IResultCapture.

◆ lastAssertionPassed()

bool Catch::RunContext::lastAssertionPassed ( )
overridevirtual

Implements Catch::IResultCapture.

◆ popScopedMessage()

void Catch::RunContext::popScopedMessage ( MessageInfo const &  message)
overridevirtual

Implements Catch::IResultCapture.

◆ pushScopedMessage()

void Catch::RunContext::pushScopedMessage ( MessageInfo const &  message)
overridevirtual

Implements Catch::IResultCapture.

◆ sectionEnded()

void Catch::RunContext::sectionEnded ( SectionEndInfo const &  endInfo)
overridevirtual

Implements Catch::IResultCapture.

◆ sectionEndedEarly()

void Catch::RunContext::sectionEndedEarly ( SectionEndInfo const &  endInfo)
overridevirtual

Implements Catch::IResultCapture.

◆ sectionStarted()

bool Catch::RunContext::sectionStarted ( SectionInfo const &  sectionInfo,
Counts assertions 
)
overridevirtual

Implements Catch::IResultCapture.


The documentation for this class was generated from the following files: