class AssertionResult
Defined at line 140 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-assertion-result.h
Public Methods
void AssertionResult (const AssertionResult & other)
Copy constructor.
Used in EXPECT_TRUE/FALSE(assertion_result).
template <typename T>
void AssertionResult (const T & success, typename std::enable_if<!std::is_convertible<T, AssertionResult>::value>::type * )
Used in the EXPECT_TRUE/FALSE(bool_expression).
T must be contextually convertible to bool.
The second parameter prevents this overload from being considered if
the argument is implicitly convertible to AssertionResult. In that case
we want AssertionResult's copy constructor to be used.
Defined at line 162 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-assertion-result.h
AssertionResult & operator= (AssertionResult other)
Assignment operator.
Defined at line 175 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-assertion-result.h
bool operator bool ()
Returns true if and only if the assertion succeeded.
Defined at line 181 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-assertion-result.h
const char * message ()
Returns the text streamed into this AssertionResult. Test assertions
use it when they fail (i.e., the predicate's outcome doesn't match the
assertion's expectation). When nothing has been streamed into the
object, returns an empty string.
Defined at line 190 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-assertion-result.h
const char * failure_message ()
Deprecated; please use message() instead.
Defined at line 194 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-assertion-result.h
AssertionResult operator! ()
Returns the assertion's negation. Used with EXPECT/ASSERT_FALSE.
template <typename T>
AssertionResult & operator<< (const T & value)
Streams a custom failure message into this object.
Defined at line 198 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-assertion-result.h
AssertionResult & operator<< (::std::ostream &(*)(::std::ostream &) basic_manipulator)
Allows streaming basic output manipulators such as endl or flush into
this object.
Defined at line 205 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-assertion-result.h