Lines Matching refs:rhs

164   explicit GreaterThanMatcher(int rhs) : rhs_(rhs) {}
875 const Unprintable& /* rhs */) {
3380 AStruct(const AStruct& rhs)
3381 : x(rhs.x), y(rhs.y), z(rhs.z.value()), p(rhs.p) {}
4042 bool operator==(const NotCopyable& rhs) const {
4043 return value() == rhs.value();
4046 bool operator>=(const NotCopyable& rhs) const {
4047 return value() >= rhs.value();
5036 void PushMatch(size_t lhs, size_t rhs) {
5037 matches_.push_back(ElementMatcherPair(lhs, rhs));
5038 lhs_used_[lhs] = rhs;
5039 rhs_used_[rhs] = lhs;
5438 vector<int> rhs;
5439 rhs.push_back(1);
5440 rhs.push_back(2);
5441 rhs.push_back(3);
5442 const Matcher<const vector<int>&> m = Pointwise(IsHalfOf(), rhs);
5453 list<signed char> rhs;
5454 rhs.push_back(2);
5455 rhs.push_back(4);
5458 const Matcher<const int (&)[2]> m = Pointwise(IsHalfOf(), rhs);
5461 // Changing rhs now shouldn't affect m, which made a copy of rhs.
5462 rhs.push_back(6);
5468 vector<int> rhs;
5469 rhs.push_back(2);
5470 rhs.push_back(4);
5471 rhs.push_back(6);
5472 EXPECT_THAT(lhs, Pointwise(Lt(), rhs));
5473 EXPECT_THAT(lhs, Not(Pointwise(Gt(), rhs)));
5477 const int rhs[] = {1, 2, 3};
5482 EXPECT_THAT(lhs, Pointwise(Gt(), rhs));
5483 EXPECT_THAT(lhs, Not(Pointwise(Lt(), rhs)));
5498 const int rhs[1] = {0};
5499 EXPECT_THAT(lhs, Not(Pointwise(Gt(), rhs)));
5501 Explain(Pointwise(Gt(), rhs), lhs));
5509 const int rhs[3] = {2, 6, 4};
5510 EXPECT_THAT(lhs, Not(Pointwise(IsHalfOf(), rhs)));
5513 Explain(Pointwise(IsHalfOf(), rhs), lhs));
5518 const int rhs[3] = {2, 4, 6};
5519 EXPECT_THAT(lhs, Pointwise(IsHalfOf(), rhs));
5520 EXPECT_EQ("", Explain(Pointwise(IsHalfOf(), rhs), lhs));
5525 const int rhs[3] = {2, 4, 6};
5527 EXPECT_THAT(lhs, Pointwise(m1, rhs));
5528 EXPECT_EQ("", Explain(Pointwise(m1, rhs), lhs));
5533 EXPECT_THAT(lhs, Pointwise(m2, rhs));
5534 EXPECT_EQ("", Explain(Pointwise(m2, rhs), lhs));
5538 vector<int> rhs;
5539 rhs.push_back(1);
5540 rhs.push_back(2);
5541 rhs.push_back(3);
5542 const Matcher<const vector<int>&> m = UnorderedPointwise(IsHalfOf(), rhs);
5564 list<signed char> rhs;
5565 rhs.push_back(2);
5566 rhs.push_back(4);
5569 const Matcher<const int (&)[2]> m = UnorderedPointwise(IsHalfOf(), rhs);
5572 // Changing rhs now shouldn't affect m, which made a copy of rhs.
5573 rhs.push_back(6);
5579 vector<int> rhs;
5580 rhs.push_back(4);
5581 rhs.push_back(6);
5582 rhs.push_back(2);
5583 EXPECT_THAT(lhs, UnorderedPointwise(Lt(), rhs));
5584 EXPECT_THAT(lhs, Not(UnorderedPointwise(Gt(), rhs)));
5588 const int rhs[] = {1, 2, 3};
5593 EXPECT_THAT(lhs, UnorderedPointwise(Gt(), rhs));
5594 EXPECT_THAT(lhs, Not(UnorderedPointwise(Lt(), rhs)));
5609 const int rhs[1] = {0};
5610 EXPECT_THAT(lhs, Not(UnorderedPointwise(Gt(), rhs)));
5612 Explain(UnorderedPointwise(Gt(), rhs), lhs));
5620 const int rhs[3] = {2, 6, 6};
5621 EXPECT_THAT(lhs, Not(UnorderedPointwise(IsHalfOf(), rhs)));
5624 Explain(UnorderedPointwise(IsHalfOf(), rhs), lhs));
5629 const int rhs[3] = {2, 4, 6};
5630 EXPECT_THAT(lhs, UnorderedPointwise(IsHalfOf(), rhs));
5635 const int rhs[3] = {6, 4, 2};
5636 EXPECT_THAT(lhs, UnorderedPointwise(IsHalfOf(), rhs));
5641 const int rhs[3] = {4, 6, 2};
5643 EXPECT_THAT(lhs, UnorderedPointwise(m1, rhs));
5648 EXPECT_THAT(lhs, UnorderedPointwise(m2, rhs));