Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
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 1146 of file gmock-matchers.h.

Member Function Documentation

◆ DescribeNegationTo()

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

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

1159 {
1160 *os << "isn't NULL";
1161 }
os_t os

◆ DescribeTo()

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

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

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

◆ MatchAndExplain()

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

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

1150 {
1151#if GTEST_LANG_CXX11
1152 return p == nullptr;
1153#else // GTEST_LANG_CXX11
1154 return GetRawPointer(p) == NULL;
1155#endif // GTEST_LANG_CXX11
1156 }
const mie::Vuint & p
Definition bn.cpp:27
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: