Lines Matching refs:Matcher
156 Matcher<const char*> starts_with_he = StartsWith("he"); in TEST()
159 Matcher<const std::string&> ends_with_ok = EndsWith("ok"); in TEST()
166 Matcher<int> is_greater_than_5 = Gt(5); in TEST()
175 const Matcher<int*> m = Pointee(Ge(0)); in TEST()
185 const Matcher<const double*> m = Pointee(Ge(0)); in TEST()
195 const Matcher<int* const&> m = Pointee(Ge(0)); in TEST()
205 const Matcher<double*&> m = Pointee(Ge(0)); in TEST()
217 const Matcher<std::unique_ptr<int>> m = Pointee(Ge(0)); in TEST()
224 const Matcher<std::unique_ptr<const int>> m = Pointee(Ge(0)); in TEST()
235 const Matcher<int*> m = Pointer(Eq(&n)); in TEST()
246 const Matcher<const int*> m = Pointer(Eq(&n)); in TEST()
258 const Matcher<std::unique_ptr<int>> m = Pointer(Eq(raw_n)); in TEST()
266 const Matcher<std::unique_ptr<const int>> m = Pointer(Eq(raw_n)); in TEST()
298 const Matcher<ConstPropagatingPtr<int>> m = Pointee(Lt(5)); in TEST()
310 const Matcher<const char*> m = Pointee(_); in TEST()
316 const Matcher<int*> m = Pointee(5); in TEST()
326 const Matcher<int*> m = Pointee(Gt(3)); in TEST()
332 const Matcher<const std::string*> m = Pointee(StartsWith("Hi")); in TEST_P()
336 const Matcher<long*> m2 = Pointee(GreaterThan(1)); // NOLINT in TEST_P()
343 const Matcher<int*> m = Pointee(0); in TEST()
391 Matcher<AStruct> m = Field(&AStruct::x, Ge(0)); in TEST()
392 Matcher<AStruct> m_with_name = Field("x", &AStruct::x, Ge(0)); in TEST()
406 Matcher<AStruct> m = Field(&AStruct::y, Ge(0.0)); in TEST()
407 Matcher<AStruct> m_with_name = Field("y", &AStruct::y, Ge(0.0)); in TEST()
420 Matcher<AStruct> m = Field(&AStruct::z, Truly(ValueIsPositive)); in TEST()
429 Matcher<AStruct> m = Field(&AStruct::p, static_cast<const char*>(nullptr)); in TEST()
445 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
458 Matcher<const DerivedStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
470 Matcher<const AStruct&> m = Field(&AStruct::x, Matcher<signed char>(Ge(0))); in TEST()
480 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
487 Matcher<const AStruct&> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
496 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0)); in TEST_P()
509 Matcher<const AStruct&> m = Field("field_name", &AStruct::x, Ge(0)); in TEST_P()
525 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
535 Matcher<AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
545 Matcher<AStruct* const&> m = Field(&AStruct::x, Ge(0)); in TEST()
555 Matcher<const AStruct*> m = Field(&AStruct::x, _); in TEST()
564 Matcher<DerivedStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
574 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
581 Matcher<const AStruct*> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
590 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST_P()
605 Matcher<const AStruct*> m = Field("field_name", &AStruct::x, Ge(0)); in TEST_P()
663 Matcher<const AClass&> m = Property(&AClass::n, Ge(0)); in TEST()
664 Matcher<const AClass&> m_with_name = Property("n", &AClass::n, Ge(0)); in TEST()
679 Matcher<const AClass&> m = Property(&AClass::s, StartsWith("hi")); in TEST()
680 Matcher<const AClass&> m_with_name = in TEST()
696 Matcher<const AClass&> m = Property(&AClass::s_ref, StartsWith("hi")); in TEST()
697 Matcher<const AClass&> m_with_name = in TEST()
716 Matcher<const AClass&> m = Property(&AClass::x, Ref(x)); in TEST()
726 Matcher<AClass> m = Property(&AClass::s, StartsWith("hi")); in TEST()
741 Matcher<const DerivedClass&> m = Property(&AClass::n, Ge(0)); in TEST()
755 Matcher<const AClass&> m = Property(&AClass::n, Matcher<signed char>(Ge(0))); in TEST()
757 Matcher<const AClass&> m_with_name = in TEST()
758 Property("n", &AClass::n, Matcher<signed char>(Ge(0))); in TEST()
770 Matcher<const AClass&> m = Property(&AClass::n, Ge(0)); in TEST()
778 Matcher<const AClass&> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
787 Matcher<const AClass&> m = Property(&AClass::n, Ge(0)); in TEST_P()
800 Matcher<const AClass&> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST_P()
816 Matcher<const AClass*> m = Property(&AClass::n, Ge(0)); in TEST()
828 Matcher<AClass*> m = Property(&AClass::s, StartsWith("hi")); in TEST()
841 Matcher<AClass* const&> m = Property(&AClass::s, StartsWith("hi")); in TEST()
853 Matcher<const AClass*> m = Property(&AClass::x, _); in TEST()
862 Matcher<const DerivedClass*> m = Property(&AClass::n, Ge(0)); in TEST()
874 Matcher<const AClass*> m = Property(&AClass::n, Ge(0)); in TEST()
882 Matcher<const AClass*> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
891 Matcher<const AClass*> m = Property(&AClass::n, Ge(0)); in TEST_P()
907 Matcher<const AClass*> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST_P()
933 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(std::string("foo"))); in TEST()
941 Matcher<int> matcher = ResultOf(&IntToStringFunction, StrEq("foo")); in TEST()
955 Matcher<int> matcher = in TEST()
967 Matcher<int> matcher = ResultOf(&IntFunction, Ge(85)); in TEST_P()
978 Matcher<int> matcher = ResultOf("magic int conversion", &IntFunction, Ge(85)); in TEST_P()
991 Matcher<int> matcher = ResultOf(&IntFunction, Eq(80)); in TEST()
1008 Matcher<double&> matcher = ResultOf(&DoubleFunction, Ref(x)); in TEST()
1016 Matcher<Uncopyable&> matcher2 = ResultOf(&RefUncopyableFunction, Ref(obj)); in TEST()
1029 Matcher<const std::string&> matcher = ResultOf(&StringFunction, Ref(s)); in TEST()
1039 Matcher<int> matcher = ResultOf(IntFunction, Matcher<signed char>(Ge(85))); in TEST()
1057 Matcher<int> matcher = ResultOf(IntToStringFunction, StrEq("foo")); in TEST()
1069 Matcher<int> matcher = ResultOf(Functor(), Eq(std::string("foo"))); in TEST()
1086 Matcher<int> matcher_int = ResultOf(PolymorphicFunctor(), Ge(5)); in TEST()
1091 Matcher<const char*> matcher_string = ResultOf(PolymorphicFunctor(), Ge(5)); in TEST()
1098 Matcher<int*> matcher = ResultOf(PolymorphicFunctor(), "good ptr"); in TEST()
1106 Matcher<int> matcher = ResultOf( in TEST()
1116 Matcher<std::unique_ptr<int>> matcher = ResultOf( in TEST()
1135 Matcher<const int&> matcher2 = ResultOf(ReferencingFunction, Eq(&n)); in TEST()
1139 Matcher<const int&> matcher3 = ResultOf(ReferencingFunctor(), Eq(&n)); in TEST()
1170 Matcher<const vector<int>&> m = SizeIs(1); in TEST()
1194 Matcher<vector<int>> m = SizeIs(2); in TEST()
1200 Matcher<vector<int>> m1 = SizeIs(2); in TEST()
1201 Matcher<vector<int>> m2 = SizeIs(Lt(2u)); in TEST()
1202 Matcher<vector<int>> m3 = SizeIs(AnyOf(0, 3)); in TEST()
1203 Matcher<vector<int>> m4 = SizeIs(Gt(1u)); in TEST()
1256 const Matcher<vector<int>> m = WhenSortedBy(less<int>(), ElementsAre(1, 2)); in TEST()
1337 Matcher<const std::vector<int>&> vector_match = ElementsAre(1, 2); in TEST()
1339 Matcher<const std::vector<int>&> not_vector_match = ElementsAre(2, 1); in TEST()
1456 Matcher<vector<int>> m = BeginEndDistanceIs(2); in TEST()
1469 Matcher<vector<int>> m1 = BeginEndDistanceIs(2); in TEST_P()
1470 Matcher<vector<int>> m2 = BeginEndDistanceIs(Lt(2)); in TEST_P()
1471 Matcher<vector<int>> m3 = BeginEndDistanceIs(AnyOf(0, 3)); in TEST_P()
1472 Matcher<vector<int>> m4 = BeginEndDistanceIs(GreaterThan(1)); in TEST_P()
1510 Matcher<const std::vector<int>&> vector_match = ElementsAre(1, 2, 3, 4, 5); in TEST()
1907 EXPECT_THAT(a, UnorderedElementsAreArray<Matcher<int>>( in TEST()
1909 EXPECT_THAT(a, Not(UnorderedElementsAreArray<Matcher<int>>( in TEST()
1946 std::vector<Matcher<int>> mv; in TEST_F()
1981 std::vector<Matcher<int>> mv; in TEST_F()
1997 std::vector<Matcher<int>> mv; in TEST_F()
2148 Matcher<set<int>> m = Each(2); in TEST_P()
2151 Matcher<const int(&)[1]> n = Each(1); // NOLINT in TEST_P()
2171 Matcher<vector<int>> m = Each(1); in TEST()
2174 Matcher<vector<int>> m2 = Not(m); in TEST()
2268 const Matcher<const vector<int>&> m = Pointwise(IsHalfOf(), rhs); in TEST()
2286 const Matcher<const int(&)[2]> m = Pointwise(IsHalfOf(), rhs); in TEST()
2360 const Matcher<std::tuple<const double&, const int&>> m1 = IsHalfOf(); in TEST()
2366 const Matcher<std::tuple<double, int>> m2 = IsHalfOf(); in TEST()
2387 const Matcher<const vector<int>&> m = UnorderedPointwise(IsHalfOf(), rhs); in TEST()
2414 const Matcher<const int(&)[2]> m = UnorderedPointwise(IsHalfOf(), rhs); in TEST()
2484 const Matcher<std::tuple<const double&, const int&>> m1 = IsHalfOf(); in TEST()
2489 const Matcher<std::tuple<double, int>> m2 = IsHalfOf(); in TEST()
2549 PredicateFormatterFromMatcher<Matcher<Behavior>> predicate_formatter( in RunPredicateFormatter()
2587 Matcher<const vector<int>&> m = ElementsAre(); in TEST()
2592 Matcher<vector<int>> m = ElementsAre(Gt(5)); in TEST()
2597 Matcher<list<std::string>> m = ElementsAre(StrEq("one"), "two"); in TEST()
2606 Matcher<vector<int>> m = ElementsAre(); in TEST()
2611 Matcher<const list<int>&> m = ElementsAre(Gt(5)); in TEST()
2619 Matcher<const list<std::string>&> m = ElementsAre("one", "two"); in TEST()
2628 Matcher<const list<int>&> m = ElementsAre(1, Ne(2)); in TEST()
2637 Matcher<const vector<int>&> m = in TEST_P()
2649 Matcher<const list<int>&> m = ElementsAre(1, 3); in TEST()
2660 Matcher<const vector<int>&> m = ElementsAre(1, GreaterThan(5)); in TEST_P()
2740 Matcher<vector<std::string>> m = ElementsAre(StrEq("test string")); in TEST()
2748 Matcher<vector<std::string>> m = ElementsAre(StrEq("test string")); in TEST()
2758 Matcher<vector<std::string>> m = in TEST()
2905 const Matcher<std::string> kMatcherArray[] = {StrEq("one"), StrEq("two"), in TEST()
2953 a, ElementsAreArray<Matcher<int>>({Eq(1), Ne(-2), Ge(3), Le(4), Eq(5)})); in TEST()
2954 EXPECT_THAT(a, Not(ElementsAreArray<Matcher<int>>( in TEST()
2960 const Matcher<int> kMatchers[] = {Eq(1), Eq(2), Eq(3)}; in TEST()
2962 const vector<Matcher<int>> expected(std::begin(kMatchers), in TEST()
3069 Matcher<const int(&)[2]> m = Contains(2); in TEST_P()
3083 Matcher<vector<int>> m = Contains(1); in TEST()
3086 Matcher<vector<int>> m2 = Not(m); in TEST()