Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::AssertionResult Class Reference

#include <gtest.h>

Public Member Functions

 AssertionResult (const AssertionResult &other)
 
template<typename T >
 AssertionResult (const T &success, typename internal::EnableIf< !internal::ImplicitlyConvertible< T, AssertionResult >::value >::type *=NULL)
 
AssertionResultoperator= (AssertionResult other)
 
 operator bool () const
 
AssertionResult operator! () const
 
const char * message () const
 
const char * failure_message () const
 
template<typename T >
AssertionResultoperator<< (const T &value)
 
AssertionResultoperator<< (::std::ostream &(*basic_manipulator)(::std::ostream &stream))
 

Detailed Description

Definition at line 269 of file gtest.h.

Constructor & Destructor Documentation

◆ AssertionResult() [1/2]

testing::AssertionResult::AssertionResult ( const AssertionResult & other)

Definition at line 1001 of file gtest.cc.

1002 : success_(other.success_),
1003 message_(other.message_.get() != NULL ?
1004 new ::std::string(*other.message_) :
1005 static_cast< ::std::string*>(NULL)) {
1006}

◆ AssertionResult() [2/2]

template<typename T >
testing::AssertionResult::AssertionResult ( const T & success,
typename internal::EnableIf< !internal::ImplicitlyConvertible< T, AssertionResult >::value >::type * = NULL )
inlineexplicit

Definition at line 287 of file gtest.h.

292 : success_(success) {}

Member Function Documentation

◆ failure_message()

const char * testing::AssertionResult::failure_message ( ) const
inline

Definition at line 319 of file gtest.h.

319{ return message(); }
const char * message() const
Definition gtest.h:314

◆ message()

const char * testing::AssertionResult::message ( ) const
inline

Definition at line 314 of file gtest.h.

314 {
315 return message_.get() != NULL ? message_->c_str() : "";
316 }
Here is the caller graph for this function:

◆ operator bool()

testing::AssertionResult::operator bool ( ) const
inline

Definition at line 305 of file gtest.h.

305{ return success_; } // NOLINT

◆ operator!()

AssertionResult testing::AssertionResult::operator! ( ) const

Definition at line 1016 of file gtest.cc.

1016 {
1017 AssertionResult negation(!success_);
1018 if (message_.get() != NULL)
1019 negation << *message_;
1020 return negation;
1021}
AssertionResult(const AssertionResult &other)
Definition gtest.cc:1001
Here is the call graph for this function:

◆ operator<<() [1/2]

AssertionResult & testing::AssertionResult::operator<< ( ::std::ostream &(* basic_manipulator )(::std::ostream &stream))
inline

Definition at line 329 of file gtest.h.

330 {
331 AppendMessage(Message() << basic_manipulator);
332 return *this;
333 }

◆ operator<<() [2/2]

template<typename T >
AssertionResult & testing::AssertionResult::operator<< ( const T & value)
inline

Definition at line 322 of file gtest.h.

322 {
323 AppendMessage(Message() << value);
324 return *this;
325 }
#define value
Definition pkcs11.h:157

◆ operator=()

AssertionResult & testing::AssertionResult::operator= ( AssertionResult other)
inline

Definition at line 299 of file gtest.h.

299 {
300 swap(other);
301 return *this;
302 }

The documentation for this class was generated from the following files: