Lines Matching defs:value

285     *listener << "value % " << 2;
303 EXPECT_EQ("value % 2 == 0", Explain(m, 2));
304 EXPECT_EQ("value % 2 == 1", Explain(m, 3));
320 // Tests that value can be used in place of Eq(value).
471 // Using a polymorphic matcher to match a value type.
543 int value() const { return value_; }
550 return foo.value() > 0;
614 ConvertibleFromAny(int a_value) : value(a_value) {}
616 explicit ConvertibleFromAny(const T& /*a_value*/) : value(-1) {
619 int value;
623 return a.value == b.value;
627 return os << a.value;
644 IntReferenceWrapper(const int& a_value) : value(&a_value) {}
645 const int* value;
649 return a.value == b.value;
782 // Tests that A<T>() matches any value of type T.
784 // Tests a matcher for a value type.
811 // Tests that An<T>() matches any value of type T.
813 // Tests a matcher for a value type.
832 // value of that type.
834 // Uses _ as a matcher for a value type.
853 // Tests that Eq(x) matches any value equal to x.
914 // Type<T>::IsTypeOf(v) compiles iff the type of value v is T, where T
1309 EXPECT_EQ("whose first field is a value which is 5 less than 10",
1311 EXPECT_EQ("whose first field is a value which is 5 more than 10",
1399 EXPECT_EQ("whose both fields match, where the first field is a value "
1400 "which is 1 more than 0, and the second field is a value "
1407 EXPECT_EQ("whose both fields match, where the first field is a value "
1414 EXPECT_EQ("whose both fields match, where the second field is a value "
2021 // Tests that Not(m) matches any value that doesn't match m.
2055 // Tests that AllOf(m1, ..., mn) matches any value that matches all of
2253 // Tests that AnyOf(m1, ..., mn) matches any value that matches at
2455 // a zero value.
2537 // Tests Value(value, matcher). Since Value() is a simple wrapper for
2620 // Tests that ASSERT_THAT() and EXPECT_THAT() work when the value
2629 // Tests that ASSERT_THAT() and EXPECT_THAT() work when the value
2801 // Maximum representable value that's not infinity.
2810 static RawType AsBits(T value) {
2811 return Floating::ReinterpretBits(static_cast<Bits>(value));
3249 EXPECT_EQ(prefix + "points to a value that is anything", Describe(matcher));
3250 EXPECT_EQ(prefix + "does not point to a value that is anything",
3321 // Tests that we can write Pointee(value) instead of Pointee(Eq(value)).
3334 EXPECT_EQ("points to a value that is > 3", Describe(m));
3335 EXPECT_EQ("does not point to a value that is > 3",
3362 int value() const { return value_; }
3370 // Returns true iff x.value() is positive.
3371 bool ValueIsPositive(const Uncopyable& x) { return x.value() > 0; }
3374 return ExplainMatchResult(inner_matcher, arg.value(), result_listener);
3381 : x(rhs.x), y(rhs.y), z(rhs.z.value()), p(rhs.p) {}
3651 // passed by value.
3815 EXPECT_EQ("is mapped by the given callable to a value that "
3817 EXPECT_EQ("is mapped by the given callable to a value that "
4040 int value() const { return value_; }
4043 return value() == rhs.value();
4047 return value() >= rhs.value();
4224 // Tests duplicated value -- expect no explanation.
4534 explicit PostIncrProxy(const value_type& value) : value_(value) {}
4823 // The element with value '3' matches nothing: fail fast.
5443 EXPECT_EQ("contains 3 values, where each value and its corresponding value "
5446 EXPECT_EQ("doesn't contain exactly 3 values, or contains a value x at some "
5447 "index i where x and the i-th value of { 1, 2, 3 } are a pair "
5511 EXPECT_EQ("where the value pair (2, 6) at index #1 don't match, "