Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_assertionresult.h
Go to the documentation of this file.
1/*
2 * Created by Phil on 28/10/2010.
3 * Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
4 *
5 * Distributed under the Boost Software License, Version 1.0. (See accompanying
6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 */
8#ifndef TWOBLUECUBES_CATCH_ASSERTIONRESULT_H_INCLUDED
9#define TWOBLUECUBES_CATCH_ASSERTIONRESULT_H_INCLUDED
10
11#include <string>
12#include "catch_assertioninfo.h"
13#include "catch_result_type.h"
14#include "catch_common.h"
15#include "catch_stringref.h"
17
18namespace Catch {
19
21 {
23
24 AssertionResultData( ResultWas::OfType _resultType, LazyExpression const& _lazyExpression );
25
26 std::string message;
27 mutable std::string reconstructedExpression;
30
31 std::string reconstructExpression() const;
32 };
33
35 public:
36 AssertionResult() = delete;
37 AssertionResult( AssertionInfo const& info, AssertionResultData const& data );
38
39 bool isOk() const;
40 bool succeeded() const;
42 bool hasExpression() const;
43 bool hasMessage() const;
44 std::string getExpression() const;
45 std::string getExpressionInMacro() const;
46 bool hasExpandedExpression() const;
47 std::string getExpandedExpression() const;
48 std::string getMessage() const;
51
52 //protected:
55 };
56
57} // end namespace Catch
58
59#endif // TWOBLUECUBES_CATCH_ASSERTIONRESULT_H_INCLUDED
std::string getExpression() const
SourceLineInfo getSourceInfo() const
std::string getExpandedExpression() const
std::string getExpressionInMacro() const
ResultWas::OfType getResultType() const
AssertionResultData m_resultData
std::string reconstructExpression() const