Wire Sysio Wire Sysion 1.0.0
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 1166 of file gmock-matchers.h.

Member Function Documentation

◆ DescribeNegationTo()

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

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

1179 {
1180 *os << "is NULL";
1181 }
os_t os

◆ DescribeTo()

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

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

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

◆ MatchAndExplain()

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

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

1170 {
1171#if GTEST_LANG_CXX11
1172 return p != nullptr;
1173#else // GTEST_LANG_CXX11
1174 return GetRawPointer(p) != NULL;
1175#endif // GTEST_LANG_CXX11
1176 }
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: