ResultData -> AssertionResultData

This commit is contained in:
Phil Nash 2012-10-16 08:33:13 +01:00
parent c597a893fa
commit a5fa78284d
4 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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() {}

View File

@ -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;
}; };

View File

@ -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 == "" ) {