• Home
  • Raw
  • Download

Lines Matching refs:rhs_

5536     explicit name##Matcher(const Rhs& rhs) : rhs_(rhs) {} \
5539 return MakeMatcher(new Impl<Lhs>(rhs_)); \
5545 explicit Impl(const Rhs& rhs) : rhs_(rhs) {} \
5548 return lhs op rhs_; \
5552 UniversalPrint(rhs_, os); \
5556 UniversalPrint(rhs_, os); \
5559 Rhs rhs_; \
5562 Rhs rhs_; \
6477 rhs_(rhs), nan_eq_nan_(nan_eq_nan), max_abs_error_(-1) {
6484 rhs_(rhs), nan_eq_nan_(nan_eq_nan), max_abs_error_(max_abs_error) {
6494 rhs_(rhs), nan_eq_nan_(nan_eq_nan), max_abs_error_(max_abs_error) {}
6498 const FloatingPoint<FloatType> lhs(value), rhs(rhs_);
6513 return value == rhs_ || fabs(value - rhs_) <= max_abs_error_;
6525 if (FloatingPoint<FloatType>(rhs_).is_nan()) {
6532 *os << "is approximately " << rhs_;
6544 if (FloatingPoint<FloatType>(rhs_).is_nan()) {
6551 *os << "isn't approximately " << rhs_;
6565 const FloatType rhs_;
6580 return MakeMatcher(new Impl<FloatType>(rhs_, nan_eq_nan_, max_abs_error_));
6585 new Impl<const FloatType&>(rhs_, nan_eq_nan_, max_abs_error_));
6589 return MakeMatcher(new Impl<FloatType&>(rhs_, nan_eq_nan_, max_abs_error_));
6593 const FloatType rhs_;
6945 explicit ContainerEqMatcher(const Container& rhs) : rhs_(View::Copy(rhs)) {
6954 UniversalPrint(rhs_, os);
6958 UniversalPrint(rhs_, os);
6970 if (lhs_stl_container == rhs_)
6980 if (internal::ArrayAwareFind(rhs_.begin(), rhs_.end(), *it) ==
6981 rhs_.end()) {
6994 for (typename StlContainer::const_iterator it = rhs_.begin();
6995 it != rhs_.end(); ++it) {
7015 const StlContainer rhs_;
7117 : tuple_matcher_(tuple_matcher), rhs_(RhsView::Copy(rhs)) {
7126 return MakeMatcher(new Impl<LhsContainer>(tuple_matcher_, rhs_));
7146 rhs_(rhs) {}
7149 *os << "contains " << rhs_.size()
7151 UniversalPrinter<RhsStlContainer>::Print(rhs_, os);
7156 *os << "doesn't contain exactly " << rhs_.size()
7159 UniversalPrint(rhs_, os);
7168 if (actual_size != rhs_.size()) {
7174 typename RhsStlContainer::const_iterator right = rhs_.begin();
7201 const RhsStlContainer rhs_;
7208 const RhsStlContainer rhs_;