Xmipp  v3.23.11-Nereus
Public Member Functions | List of all members
testing::internal::IsEmptyMatcher Class Reference

#include <gmock-more-matchers.h>

Public Member Functions

template<typename MatcheeContainerType >
bool MatchAndExplain (const MatcheeContainerType &c, MatchResultListener *listener) const
 
bool MatchAndExplain (const char *s, MatchResultListener *listener) const
 
void DescribeTo (std::ostream *os) const
 
void DescribeNegationTo (std::ostream *os) const
 

Detailed Description

Definition at line 67 of file gmock-more-matchers.h.

Member Function Documentation

◆ DescribeNegationTo()

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

Definition at line 88 of file gmock-more-matchers.h.

88 { *os << "isn't empty"; }

◆ DescribeTo()

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

Definition at line 86 of file gmock-more-matchers.h.

86 { *os << "is empty"; }

◆ MatchAndExplain() [1/2]

template<typename MatcheeContainerType >
bool testing::internal::IsEmptyMatcher::MatchAndExplain ( const MatcheeContainerType &  c,
MatchResultListener *  listener 
) const
inline

Definition at line 71 of file gmock-more-matchers.h.

72  {
73  if (c.empty()) {
74  return true;
75  }
76  *listener << "whose size is " << c.size();
77  return false;
78  }
doublereal * c

◆ MatchAndExplain() [2/2]

bool testing::internal::IsEmptyMatcher::MatchAndExplain ( const char *  s,
MatchResultListener *  listener 
) const
inline

Definition at line 81 of file gmock-more-matchers.h.

81  {
82  return MatchAndExplain(std::string(s), listener);
83  }
bool MatchAndExplain(const MatcheeContainerType &c, MatchResultListener *listener) const

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