Lines Matching refs:first
173 // can talk to 'listener' without checking its validity first.
554 // (first to create T from M and then to create Matcher<T> from T).
729 // iff the first N fields of matcher_tuple matches the first N
739 // describes failures in matching the first N fields of matchers
740 // against the first N fields of values. If there is no failure,
746 // First, describes failures in the first N - 1 fields.
1424 static const char* Desc() { return "a pair where the first < the second"; }
1428 static const char* Desc() { return "a pair where the first > the second"; }
1432 static const char* Desc() { return "a pair where the first <= the second"; }
1436 static const char* Desc() { return "a pair where the first >= the second"; }
1556 // * Head is the type of the first matcher of the list.
1578 SafeMatcherCast<T>(matchers.first),
1598 SafeMatcherCast<T>(matchers.first),
1925 // Compares NaNs first, if nan_eq_nan_ is true.
2206 // The first argument of MatchAndExplainImpl() is needed to help
2223 // the first argument.
2267 // The first argument of MatchAndExplainImpl() is needed to help
2294 // false_type() as the first argument.
2560 // Something is different. Check for extra values first.
2935 // Key(inner_matcher) matches an std::pair whose 'first' field matches
2950 // Returns true iff 'key_value.first' (the key) matches the inner matcher.
2954 const bool match = inner_matcher_.MatchAndExplain(key_value.first,
2958 *listener << "whose first field is a value " << explanation;
3017 *os << "has a first field that ";
3025 *os << "has a first field that ";
3031 // Returns true iff 'a_pair.first' matches first_matcher and 'a_pair.second'
3038 return first_matcher_.Matches(a_pair.first) &&
3042 if (!first_matcher_.MatchAndExplain(a_pair.first,
3044 *listener << "whose first field does not match";
3066 *listener << ", where the first field is a value " << first_explanation;
3119 ElementsAreMatcherImpl(InputIter first, InputIter last) {
3120 while (first != last) {
3121 matchers_.push_back(MatcherCast<const Element&>(*first++));
3359 UnorderedElementsAreMatcherImpl(InputIter first, InputIter last) {
3360 for (; first != last; ++first) {
3361 matchers_.push_back(MatcherCast<const Element&>(*first));
3507 UnorderedElementsAreArrayMatcher(Iter first, Iter last)
3508 : matchers_(first, last) {}
3528 ElementsAreArrayMatcher(Iter first, Iter last) : matchers_(first, last) {}
3628 // ElementsAreArray(first, last)
3646 ElementsAreArray(Iter first, Iter last) {
3648 return internal::ElementsAreArrayMatcher<T>(first, last);
3677 // UnorderedElementsAreArray(first, last)
3688 UnorderedElementsAreArray(Iter first, Iter last) {
3690 return internal::UnorderedElementsAreArrayMatcher<T>(first, last);
4081 // first field == the second field.
4085 // first field >= the second field.
4089 // first field > the second field.
4093 // first field <= the second field.
4097 // first field < the second field.
4101 // first field != the second field.
4318 // Key(inner_matcher) matches an std::pair whose 'first' field matches
4326 // Pair(first_matcher, second_matcher) matches a std::pair whose 'first' field