Lines Matching defs:value

117     *listener << "value % " << 2;
133 EXPECT_EQ("value % 2 == 0", Explain(m, 2));
134 EXPECT_EQ("value % 2 == 1", Explain(m, 3));
150 // Tests that value can be used in place of Eq(value).
278 std::string value = "cats";
279 Matcher<std::string> m1 = Eq(std::ref(value));
283 Matcher<const std::string&> m2 = Eq(std::ref(value));
329 // Using a polymorphic matcher to match a value type.
406 int value() const { return value_; }
413 bool IsPositiveIntValue(const IntValue& foo) { return foo.value() > 0; }
474 // Tests that MatcherCast<T>(m) works when m is a value of the same type as the
475 // value type of the Matcher.
482 // Tests that MatcherCast<T>(m) works when m is a value of the type implicitly
483 // convertible to the value type of the Matcher.
505 // implicitly convertible to the value type of the Matcher, but the value type
541 ConvertibleFromAny(int a_value) : value(a_value) {}
543 ConvertibleFromAny(const T& /*a_value*/) : value(-1) {
546 int value;
550 return a.value == b.value;
554 return os << a.value;
574 IntReferenceWrapper(const int& a_value) : value(&a_value) {}
575 const int* value;
579 return a.value == b.value;
728 // Tests that A<T>() matches any value of type T.
730 // Tests a matcher for a value type.
755 // Tests that An<T>() matches any value of type T.
757 // Tests a matcher for a value type.
774 // value of that type.
776 // Uses _ as a matcher for a value type.
795 // Tests that Eq(x) matches any value equal to x.
855 // Type<T>::IsTypeOf(v) compiles if and only if the type of value v is T, where
1376 EXPECT_EQ("whose first field is a value which is 5 less than 10",
1378 EXPECT_EQ("whose first field is a value which is 5 more than 10",
1410 auto get(const PairWithGet& value) -> decltype(value.GetImpl(Tag<I>())) {
1411 return value.GetImpl(Tag<I>());
1504 "whose both fields match, where the first field is a value "
1505 "which is 1 more than 0, and the second field is a value "
1513 "whose both fields match, where the first field is a value "
1521 "whose both fields match, where the second field is a value "
1615 "where field #0 is a value which is 1 more than 0"
1616 ", and field #1 is a value which is 2 more than 0"
1617 ", and field #2 is a value which is 3 more than 0",
1624 "where field #0 is a value which is 1 more than 0"
1625 ", and field #2 is a value which is 3 more than 0",
1632 "where field #1 is a value which is 1 more than 0",
2136 EXPECT_TRUE((std::is_constructible<M, int>::value));
2137 EXPECT_FALSE((std::is_convertible<int, M>::value));
2234 EXPECT_EQ(prefix + "points to a value that is anything", Describe(matcher));
2235 EXPECT_EQ(prefix + "does not point to a value that is anything",