Electroneum
Loading...
Searching...
No Matches
testing::internal::NotNullMatcher 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 997 of file gmock-matchers.h.

Member Function Documentation

◆ DescribeNegationTo()

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

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

1010 {
1011 *os << "is NULL";
1012 }

◆ DescribeTo()

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

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

1009{ *os << "isn't NULL"; }

◆ MatchAndExplain()

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

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

1001 {
1002#if GTEST_LANG_CXX11
1003 return p != nullptr;
1004#else // GTEST_LANG_CXX11
1005 return GetRawPointer(p) != NULL;
1006#endif // GTEST_LANG_CXX11
1007 }
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:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h