Class RunContext

Inheritance Relationships

Base Type

Class Documentation

class RunContext : public Catch::IResultCapture

Public Functions

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