mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
ResultData -> AssertionResultData
This commit is contained in:
parent
c597a893fa
commit
a5fa78284d
@ -13,9 +13,9 @@
|
|||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
struct ResultData
|
struct AssertionResultData
|
||||||
{
|
{
|
||||||
ResultData() : resultType( ResultWas::Unknown ) {}
|
AssertionResultData() : resultType( ResultWas::Unknown ) {}
|
||||||
|
|
||||||
std::string macroName;
|
std::string macroName;
|
||||||
SourceLineInfo lineInfo;
|
SourceLineInfo lineInfo;
|
||||||
@ -28,7 +28,7 @@ namespace Catch {
|
|||||||
class AssertionResult {
|
class AssertionResult {
|
||||||
public:
|
public:
|
||||||
AssertionResult();
|
AssertionResult();
|
||||||
AssertionResult( const ResultData& data );
|
AssertionResult( const AssertionResultData& data );
|
||||||
~AssertionResult();
|
~AssertionResult();
|
||||||
|
|
||||||
bool ok() const;
|
bool ok() const;
|
||||||
@ -44,7 +44,7 @@ namespace Catch {
|
|||||||
std::string getTestMacroName() const;
|
std::string getTestMacroName() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ResultData m_data;
|
AssertionResultData m_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace Catch
|
} // end namespace Catch
|
||||||
|
@ -14,7 +14,7 @@ namespace Catch {
|
|||||||
|
|
||||||
AssertionResult::AssertionResult() {}
|
AssertionResult::AssertionResult() {}
|
||||||
|
|
||||||
AssertionResult::AssertionResult( const ResultData& data ) : m_data( data ) {}
|
AssertionResult::AssertionResult( const AssertionResultData& data ) : m_data( data ) {}
|
||||||
|
|
||||||
AssertionResult::~AssertionResult() {}
|
AssertionResult::~AssertionResult() {}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ResultData m_data;
|
AssertionResultData m_data;
|
||||||
std::string m_lhs, m_rhs, m_op;
|
std::string m_lhs, m_rhs, m_op;
|
||||||
bool m_isFalse;
|
bool m_isFalse;
|
||||||
};
|
};
|
||||||
|
@ -65,7 +65,7 @@ namespace Catch {
|
|||||||
|
|
||||||
AssertionResult AssertionResultBuilder::build() const
|
AssertionResult AssertionResultBuilder::build() const
|
||||||
{
|
{
|
||||||
ResultData data = m_data;
|
AssertionResultData data = m_data;
|
||||||
data.reconstructedExpression = reconstructExpression();
|
data.reconstructedExpression = reconstructExpression();
|
||||||
if( m_isFalse ) {
|
if( m_isFalse ) {
|
||||||
if( m_op == "" ) {
|
if( m_op == "" ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user