template <typename PairType>

class KeyMatcherImpl

Defined at line 3111 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

Implements Key(inner_matcher) for the given argument pair type.

Key(inner_matcher) matches an std::pair whose 'first' field matches

inner_matcher. For example, Contains(Key(Ge(5))) can be used to match an

std::map that contains at least one element whose key is >= 5.

Public Methods

template <typename InnerMatcher>
void KeyMatcherImpl<PairType> (InnerMatcher inner_matcher)

Defined at line 3117 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

bool MatchAndExplain (PairType key_value, MatchResultListener * listener)

Returns true if and only if 'key_value.first' (the key) matches the inner

matcher.

Defined at line 3123 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

void DescribeTo (::std::ostream * os)

Describes what this matcher does.

Defined at line 3136 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h

void DescribeNegationTo (::std::ostream * os)

Describes what the negation of this matcher does.

Defined at line 3142 of file ../../third_party/googletest/src/googlemock/include/gmock/gmock-matchers.h