Lines Matching defs:value
96 int value() const { return value_; }
99 return value() == rhs.value();
103 return value() >= rhs.value();
263 // Tests duplicated value -- expect no explanation.
677 explicit SampleOptional(T value)
678 : value_(std::move(value)), has_value_(true) {}
690 EXPECT_EQ("value is equal to 1", Describe(m));
695 EXPECT_EQ("whose value 1 matches", Explain(m, SampleOptional<int>(1)));
696 EXPECT_EQ("whose value 2 doesn't match", Explain(m, SampleOptional<int>(2)));
726 friend bool holds_alternative(const SampleVariantIntString& value) {
727 return value.has_int_ == std::is_same<T, int>::value;
731 friend const T& get(const SampleVariantIntString& value) {
732 return value.get_impl(static_cast<T*>(nullptr));
746 EXPECT_THAT(Describe(m), ContainsRegex("is a variant<> with value of type "
747 "'.*' and the value is equal to 1"));
753 ContainsRegex("whose value 1"));
755 HasSubstr("whose value is not of type '"));
757 "whose value 2 doesn't match");
837 EXPECT_THAT(Describe(m), ContainsRegex("is an 'any' type with value of type "
838 "'.*' and the value is equal to 1"));
844 EXPECT_THAT(Explain(m, SampleAnyType(1)), ContainsRegex("whose value 1"));
846 HasSubstr("whose value is not of type '"));
847 EXPECT_THAT(Explain(m, SampleAnyType(2)), "whose value 2 doesn't match");
964 bool MatchAndExplain(std::tuple<char, int> value,
966 const int diff = std::get<0>(value) - std::get<1>(value);
968 *listener << "where the first value is " << diff
983 "where the first value is 55 more than the second",
1061 // value being matched.
1136 explicit UncopyableFoo(char value) : value_(value) { (void)value_; }