class IsEmptyMatcher
Defined at line 64 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-more-matchers.h
Implements the polymorphic IsEmpty matcher, which
can be used as a Matcher
<T
> as long as T is either a container that defines
empty() and size() (e.g. std::vector or std::string), or a C-style string.
Public Methods
template <typename MatcheeContainerType>
bool MatchAndExplain (const MatcheeContainerType & c, MatchResultListener * listener)
Matches anything that defines empty() and size().
Defined at line 68 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-more-matchers.h
bool MatchAndExplain (const char * s, MatchResultListener * listener)
Matches C-style strings.
Defined at line 78 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-more-matchers.h
void DescribeTo (std::ostream * os)
Describes what this matcher matches.
Defined at line 83 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-more-matchers.h
void DescribeNegationTo (std::ostream * os)
Defined at line 85 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-more-matchers.h