Class AssertionResult

Synopsis

#include <include/internal/catch_assertionresult.h>

class AssertionResult

Description

No description yet.

Methods

AssertionResult overload
getExpandedExpression
getExpression
getExpressionInMacro
getMessage
getResultType
getSourceInfo
getTestMacroName
hasExpandedExpression
hasExpression
hasMessage
isOk
succeeded

Source

Lines 34-55 in include/internal/catch_assertionresult.h.

class AssertionResult {
public:
    AssertionResult() = delete;
    AssertionResult( AssertionInfo const& info, AssertionResultData const& data );
    bool isOk() const;
    bool succeeded() const;
    ResultWas::OfType getResultType() const;
    bool hasExpression() const;
    bool hasMessage() const;
    std::string getExpression() const;
    std::string getExpressionInMacro() const;
    bool hasExpandedExpression() const;
    std::string getExpandedExpression() const;
    std::string getMessage() const;
    SourceLineInfo getSourceInfo() const;
    StringRef getTestMacroName() const;
//protected:
    AssertionInfo m_info;
    AssertionResultData m_resultData;
};





Add Discussion as Guest

Log in