Electroneum
testing::internal::IsNullMatcher Class Reference

#include <gmock-matchers.h>

Public Member Functions

template<typename Pointer >
bool MatchAndExplain (const Pointer &p, MatchResultListener *) const
 
void DescribeTo (::std::ostream *os) const
 
void DescribeNegationTo (::std::ostream *os) const
 

Detailed Description

Definition at line 977 of file gmock-matchers.h.

Member Function Documentation

◆ DescribeNegationTo()

void testing::internal::IsNullMatcher::DescribeNegationTo ( ::std::ostream *  os) const
inline

Definition at line 990 of file gmock-matchers.h.

990  {
991  *os << "isn't NULL";
992  }

◆ DescribeTo()

void testing::internal::IsNullMatcher::DescribeTo ( ::std::ostream *  os) const
inline

Definition at line 989 of file gmock-matchers.h.

989 { *os << "is NULL"; }

◆ MatchAndExplain()

template<typename Pointer >
bool testing::internal::IsNullMatcher::MatchAndExplain ( const Pointer p,
MatchResultListener  
) const
inline

Definition at line 980 of file gmock-matchers.h.

981  {
982 #if GTEST_LANG_CXX11
983  return p == nullptr;
984 #else // GTEST_LANG_CXX11
985  return GetRawPointer(p) == NULL;
986 #endif // GTEST_LANG_CXX11
987  }
const Pointer::element_type * GetRawPointer(const Pointer &p)
Here is the call graph for this function:

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