Lines Matching refs:Matcher

134 Matcher<int> GreaterThan(int n) {  in GreaterThan()
148 std::string Describe(const Matcher<T>& m) { in Describe()
154 std::string DescribeNegation(const Matcher<T>& m) { in DescribeNegation()
244 Matcher<int> m = MakeMatcher(new NewEvenMatcherImpl); in TEST()
253 Matcher<double> m; in TEST()
259 Matcher<int> m(impl); in TEST()
266 Matcher<int> m1 = 5; in TEST()
273 Matcher<int*> m1 = nullptr; in TEST()
287 Matcher<int> m1 = Undefined::kInt; in TEST()
293 TEST(MatcherTest, CanAcceptAbstractClass) { Matcher<const Undefined&> m = _; } in TEST()
298 Matcher<bool> m1 = Eq(false); in TEST()
312 Describe(Matcher<int>(new EvenMatcherImpl))); in TEST()
317 Matcher<int> m = GreaterThan(0); in TEST()
330 Matcher<std::string> m1 = "hi"; in TEST()
334 Matcher<const std::string&> m2 = "hi"; in TEST()
342 Matcher<std::string> m1 = std::string("hi"); in TEST()
346 Matcher<const std::string&> m2 = std::string("hi"); in TEST()
355 Matcher<std::string> m1 = ::string("hi"); in TEST()
359 Matcher<const std::string&> m2 = ::string("hi"); in TEST()
369 Matcher< ::string> m1 = "hi"; in TEST()
373 Matcher<const ::string&> m2 = "hi"; in TEST()
381 Matcher< ::string> m1 = std::string("hi"); in TEST()
385 Matcher<const ::string&> m2 = std::string("hi"); in TEST()
393 Matcher< ::string> m1 = ::string("hi"); in TEST()
397 Matcher<const ::string&> m2 = ::string("hi"); in TEST()
407 Matcher<absl::string_view> m1 = "cats"; in TEST()
411 Matcher<const absl::string_view&> m2 = "cats"; in TEST()
419 Matcher<absl::string_view> m1 = std::string("cats"); in TEST()
423 Matcher<const absl::string_view&> m2 = std::string("cats"); in TEST()
432 Matcher<absl::string_view> m1 = ::string("cats"); in TEST()
436 Matcher<const absl::string_view&> m2 = ::string("cats"); in TEST()
445 Matcher<absl::string_view> m1 = absl::string_view("cats"); in TEST()
449 Matcher<const absl::string_view&> m2 = absl::string_view("cats"); in TEST()
460 Matcher<std::string> m1 = Eq(std::ref(value)); in TEST()
464 Matcher<const std::string&> m2 = Eq(std::ref(value)); in TEST()
474 Matcher<int> m = MakeMatcher(dummy_impl); in TEST()
504 Matcher<const int&> m1 = ReferencesBarOrIsZero(); in TEST()
512 Matcher<double> m2 = ReferencesBarOrIsZero(); in TEST()
547 const Matcher<int> m1 = PolymorphicIsEven(); in TEST()
552 const Matcher<int> not_m1 = Not(m1); in TEST()
558 const Matcher<char> m2 = PolymorphicIsEven(); in TEST()
563 const Matcher<char> not_m2 = Not(m2); in TEST()
571 Matcher<int> m = MatcherCast<int>(Eq(5)); in TEST()
596 Matcher<double> m1 = Eq(2.0); in TEST()
597 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
601 Matcher<IntValue> m3 = Truly(IsPositiveIntValue); in TEST()
602 Matcher<int> m4 = MatcherCast<int>(m3); in TEST()
612 Matcher<const int&> m1 = Eq(0); in TEST()
613 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
620 Matcher<int&> m1 = Eq(0); in TEST()
621 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
628 Matcher<int> m1 = Eq(0); in TEST()
629 Matcher<const int&> m2 = MatcherCast<const int&>(m1); in TEST()
636 Matcher<int> m1 = Eq(0); in TEST()
637 Matcher<int&> m2 = MatcherCast<int&>(m1); in TEST()
646 Matcher<int> m1 = Eq(0); in TEST()
647 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
655 Matcher<int> m = MatcherCast<int>(42); in TEST()
664 Matcher<int> m = MatcherCast<int>('c'); in TEST()
686 Matcher<NonImplicitlyConstructibleTypeWithOperatorEq> m1 = in TEST()
690 Matcher<NonImplicitlyConstructibleTypeWithOperatorEq> m2 = in TEST()
696 Matcher<int> m3 = in TEST()
736 Matcher<ConvertibleFromAny> m = MatcherCast<ConvertibleFromAny>(1); in TEST()
742 Matcher<ConvertibleFromAny> m = in TEST()
762 Matcher<IntReferenceWrapper> m = MatcherCast<IntReferenceWrapper>(n); in TEST()
785 Matcher<char> m2 = SafeMatcherCast<char>(Eq(32)); in TEST()
794 Matcher<double> m1 = DoubleEq(1.0); in TEST()
795 Matcher<float> m2 = SafeMatcherCast<float>(m1); in TEST()
799 Matcher<char> m3 = SafeMatcherCast<char>(TypedEq<int>('a')); in TEST()
808 Matcher<Base*> m1 = Eq(&d); in TEST()
809 Matcher<Derived*> m2 = SafeMatcherCast<Derived*>(m1); in TEST()
813 Matcher<Base&> m3 = Ref(d); in TEST()
814 Matcher<Derived&> m4 = SafeMatcherCast<Derived&>(m3); in TEST()
822 Matcher<const int&> m1 = Ref(n); in TEST()
823 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()
831 Matcher<int> m1 = Eq(0); in TEST()
832 Matcher<const int&> m2 = SafeMatcherCast<const int&>(m1); in TEST()
839 Matcher<int> m1 = Eq(0); in TEST()
840 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()
849 Matcher<int> m1 = Eq(0); in TEST()
850 Matcher<int> m2 = SafeMatcherCast<int>(m1); in TEST()
859 Matcher<ConvertibleFromAny> m = SafeMatcherCast<ConvertibleFromAny>(1); in TEST()
865 Matcher<ConvertibleFromAny> m = in TEST()
876 Matcher<IntReferenceWrapper> m = SafeMatcherCast<IntReferenceWrapper>(n); in TEST()
899 Matcher<double> m1 = A<double>(); in TEST()
906 Matcher<int&> m2 = A<int&>(); in TEST()
928 Matcher<int> m1 = An<int>(); in TEST()
935 Matcher<int&> m2 = An<int&>(); in TEST()
949 Matcher<int> m1 = _; in TEST()
956 Matcher<const bool&> m2 = _; in TEST()
963 Matcher<int> m = _; in TEST()
973 Matcher<const char*> m1 = Eq(a1); in TEST()
992 Matcher<Unprintable> m = Eq(Unprintable()); in TEST()
999 Matcher<int> m1 = Eq(1); in TEST()
1003 Matcher<char> m2 = Eq(1); in TEST()
1010 Matcher<char> m1 = TypedEq<char>('a'); in TEST()
1014 Matcher<int> m2 = TypedEq<int>(6); in TEST()
1040 Type<Matcher<int> >::IsTypeOf(TypedEq<int>(5)); in TEST()
1041 Type<Matcher<double> >::IsTypeOf(TypedEq<double>(5)); in TEST()
1046 Matcher<int> m1 = Ge(0); in TEST()
1054 Matcher<int> m = Ge(5); in TEST()
1060 Matcher<double> m1 = Gt(0); in TEST()
1068 Matcher<int> m = Gt(5); in TEST()
1074 Matcher<char> m1 = Le('b'); in TEST()
1082 Matcher<int> m = Le(5); in TEST()
1088 Matcher<const std::string&> m1 = Lt("Hello"); in TEST()
1096 Matcher<int> m = Lt(5); in TEST()
1102 Matcher<int> m1 = Ne(0); in TEST()
1110 Matcher<int> m = Ne(5); in TEST()
1157 Matcher<int*> m1 = IsNull(); in TEST()
1163 Matcher<const char*> m2 = IsNull(); in TEST()
1168 Matcher<void*> m3 = IsNull(); in TEST()
1175 const Matcher<std::function<void()>> m = IsNull(); in TEST()
1183 Matcher<int*> m = IsNull(); in TEST()
1190 Matcher<int*> m1 = NotNull(); in TEST()
1196 Matcher<const char*> m2 = NotNull(); in TEST()
1203 const Matcher<std::shared_ptr<int>> m = NotNull(); in TEST()
1212 const Matcher<const std::shared_ptr<double>&> m = NotNull(); in TEST()
1221 const Matcher<std::function<void()>> m = NotNull(); in TEST()
1229 Matcher<int*> m = NotNull(); in TEST()
1238 Matcher<int&> m = Ref(a); in TEST()
1246 Matcher<int&> m = Ref(n); in TEST()
1257 Matcher<const int&> m = Ref(a); in TEST()
1269 Matcher<const Base&> m1 = Ref(base); in TEST()
1282 EXPECT_THAT(Explain(Matcher<const int&>(Ref(n)), n), in TEST()
1286 EXPECT_THAT(Explain(Matcher<const int&>(Ref(n)), m), in TEST()
1293 Matcher<const char*> m = StrEq(std::string("Hello")); in TEST()
1298 Matcher<const std::string&> m2 = StrEq("Hello"); in TEST()
1303 Matcher<const absl::string_view&> m3 = StrEq("Hello"); in TEST()
1308 Matcher<const absl::string_view&> m_empty = StrEq(""); in TEST()
1316 Matcher<std::string> m = StrEq("Hi-\'\"?\\\a\b\f\n\r\t\v\xD3"); in TEST()
1322 Matcher<std::string> m2 = StrEq(str); in TEST()
1325 Matcher<std::string> m3 = StrEq(str); in TEST()
1330 Matcher<const char*> m = StrNe("Hello"); in TEST()
1335 Matcher<std::string> m2 = StrNe(std::string("Hello")); in TEST()
1340 Matcher<const absl::string_view> m3 = StrNe("Hello"); in TEST()
1348 Matcher<const char*> m = StrNe("Hi"); in TEST()
1353 Matcher<const char*> m = StrCaseEq(std::string("Hello")); in TEST()
1359 Matcher<const std::string&> m2 = StrCaseEq("Hello"); in TEST()
1364 Matcher<const absl::string_view&> m3 = StrCaseEq(std::string("Hello")); in TEST()
1375 Matcher<const std::string&> m0 = StrCaseEq(str1); in TEST()
1379 Matcher<const std::string&> m1 = StrCaseEq(str1); in TEST()
1384 Matcher<const std::string&> m2 = StrCaseEq(str1); in TEST()
1388 Matcher<const std::string&> m3 = StrCaseEq(str1); in TEST()
1398 Matcher<std::string> m = StrCaseEq("Hi"); in TEST()
1403 Matcher<const char*> m = StrCaseNe("Hello"); in TEST()
1409 Matcher<std::string> m2 = StrCaseNe(std::string("Hello")); in TEST()
1414 Matcher<const absl::string_view> m3 = StrCaseNe("Hello"); in TEST()
1423 Matcher<const char*> m = StrCaseNe("Hi"); in TEST()
1429 const Matcher<std::string> m1 = HasSubstr("foo"); in TEST()
1433 const Matcher<const std::string&> m2 = HasSubstr("foo"); in TEST()
1437 const Matcher<std::string> m_empty = HasSubstr(""); in TEST()
1444 const Matcher<char*> m1 = HasSubstr("foo"); in TEST()
1449 const Matcher<const char*> m2 = HasSubstr("foo"); in TEST()
1454 const Matcher<const char*> m_empty = HasSubstr(""); in TEST()
1463 const Matcher<absl::string_view> m1 = HasSubstr("foo"); in TEST()
1468 const Matcher<const absl::string_view&> m2 = HasSubstr("foo"); in TEST()
1473 const Matcher<const absl::string_view&> m3 = HasSubstr(""); in TEST()
1482 Matcher<std::string> m = HasSubstr("foo\n\""); in TEST()
1487 Matcher<const pair<std::string, int>&> m = Key("foo"); in TEST()
1493 Matcher<pair<int, bool> > m = Key(GreaterThan(10)); in TEST()
1541 Matcher<int> is_positive = Gt(0); in TEST()
1542 Matcher<int> is_negative = Lt(0); in TEST()
1575 Matcher<const pair<const char*, int>&> m1 = Pair("foo", 42); in TEST()
1576 Matcher<const pair<const char*, int> > m2 = Pair("foo", 42); in TEST()
1577 Matcher<pair<const char*, int> > m3 = Pair("foo", 42); in TEST()
1579 Matcher<pair<int, const std::string> > m4 = Pair(25, "42"); in TEST()
1580 Matcher<pair<const std::string, int> > m5 = Pair("25", 42); in TEST()
1584 Matcher<const pair<std::string, int>&> m1 = Pair("foo", 42); in TEST()
1592 Matcher<const pair<int, int>&> m2 = Not(Pair(Not(13), 42)); in TEST()
1601 const Matcher<pair<int, int> > m = Pair(GreaterThan(0), GreaterThan(0)); in TEST()
1623 const Matcher<pair<int, int> > explain_first = Pair(GreaterThan(0), 0); in TEST()
1630 const Matcher<pair<int, int> > explain_second = Pair(0, GreaterThan(0)); in TEST()
1663 Matcher<int> is_positive = Gt(0); in TEST()
1664 Matcher<int> is_negative = Lt(0); in TEST()
1702 const Matcher<const char*> m1 = StartsWith(std::string("")); in TEST()
1707 const Matcher<const std::string&> m2 = StartsWith("Hi"); in TEST()
1715 const Matcher<absl::string_view> m_empty = StartsWith(""); in TEST()
1723 Matcher<const std::string> m = StartsWith("Hi"); in TEST()
1730 const Matcher<const char*> m1 = EndsWith(""); in TEST()
1735 const Matcher<const std::string&> m2 = EndsWith(std::string("Hi")); in TEST()
1743 const Matcher<const ::string&> m3 = EndsWith(::string("Hi")); in TEST()
1752 const Matcher<const absl::string_view&> m4 = EndsWith(""); in TEST()
1761 Matcher<const std::string> m = EndsWith("Hi"); in TEST()
1768 const Matcher<const char*> m1 = MatchesRegex("a.*z"); in TEST()
1773 const Matcher<const std::string&> m2 = MatchesRegex(new RE("a.*z")); in TEST()
1779 const Matcher<const absl::string_view&> m3 = MatchesRegex("a.*z"); in TEST()
1784 const Matcher<const absl::string_view&> m4 = MatchesRegex(""); in TEST()
1791 Matcher<const std::string> m1 = MatchesRegex(std::string("Hi.*")); in TEST()
1794 Matcher<const char*> m2 = MatchesRegex(new RE("a.*")); in TEST()
1798 Matcher<const absl::string_view> m3 = MatchesRegex(new RE("0.*")); in TEST()
1806 const Matcher<const char*> m1 = ContainsRegex(std::string("a.*z")); in TEST()
1811 const Matcher<const std::string&> m2 = ContainsRegex(new RE("a.*z")); in TEST()
1817 const Matcher<const absl::string_view&> m3 = ContainsRegex(new RE("a.*z")); in TEST()
1822 const Matcher<const absl::string_view&> m4 = ContainsRegex(""); in TEST()
1829 Matcher<const std::string> m1 = ContainsRegex("Hi.*"); in TEST()
1832 Matcher<const char*> m2 = ContainsRegex(new RE("a.*")); in TEST()
1836 Matcher<const absl::string_view> m3 = ContainsRegex(new RE("0.*")); in TEST()
1844 Matcher<const wchar_t*> m = StrEq(::std::wstring(L"Hello")); in TEST()
1849 Matcher<const ::std::wstring&> m2 = StrEq(L"Hello"); in TEST()
1853 Matcher<const ::std::wstring&> m3 = StrEq(L"\xD3\x576\x8D3\xC74D"); in TEST()
1859 Matcher<const ::std::wstring&> m4 = StrEq(str); in TEST()
1862 Matcher<const ::std::wstring&> m5 = StrEq(str); in TEST()
1867 Matcher< ::std::wstring> m = StrEq(L"Hi-\'\"?\\\a\b\f\n\r\t\v"); in TEST()
1871 Matcher< ::std::wstring> m2 = StrEq(L"\xD3\x576\x8D3\xC74D"); in TEST()
1877 Matcher<const ::std::wstring&> m4 = StrEq(str); in TEST()
1880 Matcher<const ::std::wstring&> m5 = StrEq(str); in TEST()
1885 Matcher<const wchar_t*> m = StrNe(L"Hello"); in TEST()
1890 Matcher< ::std::wstring> m2 = StrNe(::std::wstring(L"Hello")); in TEST()
1896 Matcher<const wchar_t*> m = StrNe(L"Hi"); in TEST()
1901 Matcher<const wchar_t*> m = StrCaseEq(::std::wstring(L"Hello")); in TEST()
1907 Matcher<const ::std::wstring&> m2 = StrCaseEq(L"Hello"); in TEST()
1915 Matcher<const ::std::wstring&> m0 = StrCaseEq(str1); in TEST()
1919 Matcher<const ::std::wstring&> m1 = StrCaseEq(str1); in TEST()
1924 Matcher<const ::std::wstring&> m2 = StrCaseEq(str1); in TEST()
1928 Matcher<const ::std::wstring&> m3 = StrCaseEq(str1); in TEST()
1938 Matcher< ::std::wstring> m = StrCaseEq(L"Hi"); in TEST()
1943 Matcher<const wchar_t*> m = StrCaseNe(L"Hello"); in TEST()
1949 Matcher< ::std::wstring> m2 = StrCaseNe(::std::wstring(L"Hello")); in TEST()
1955 Matcher<const wchar_t*> m = StrCaseNe(L"Hi"); in TEST()
1961 const Matcher< ::std::wstring> m1 = HasSubstr(L"foo"); in TEST()
1965 const Matcher<const ::std::wstring&> m2 = HasSubstr(L"foo"); in TEST()
1972 const Matcher<wchar_t*> m1 = HasSubstr(L"foo"); in TEST()
1977 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo"); in TEST()
1985 Matcher< ::std::wstring> m = HasSubstr(L"foo\n\""); in TEST()
1992 const Matcher<const wchar_t*> m1 = StartsWith(::std::wstring(L"")); in TEST()
1997 const Matcher<const ::std::wstring&> m2 = StartsWith(L"Hi"); in TEST()
2006 Matcher<const ::std::wstring> m = StartsWith(L"Hi"); in TEST()
2013 const Matcher<const wchar_t*> m1 = EndsWith(L""); in TEST()
2018 const Matcher<const ::std::wstring&> m2 = EndsWith(::std::wstring(L"Hi")); in TEST()
2027 Matcher<const ::std::wstring> m = EndsWith(L"Hi"); in TEST()
2035 Matcher<const wchar_t*> m = StrEq(::wstring(L"Hello")); in TEST()
2040 Matcher<const ::wstring&> m2 = StrEq(L"Hello"); in TEST()
2044 Matcher<const ::wstring&> m3 = StrEq(L"\xD3\x576\x8D3\xC74D"); in TEST()
2050 Matcher<const ::wstring&> m4 = StrEq(str); in TEST()
2053 Matcher<const ::wstring&> m5 = StrEq(str); in TEST()
2058 Matcher< ::wstring> m = StrEq(L"Hi-\'\"?\\\a\b\f\n\r\t\v"); in TEST()
2062 Matcher< ::wstring> m2 = StrEq(L"\xD3\x576\x8D3\xC74D"); in TEST()
2068 Matcher<const ::wstring&> m4 = StrEq(str); in TEST()
2071 Matcher<const ::wstring&> m5 = StrEq(str); in TEST()
2076 Matcher<const wchar_t*> m = StrNe(L"Hello"); in TEST()
2081 Matcher< ::wstring> m2 = StrNe(::wstring(L"Hello")); in TEST()
2087 Matcher<const wchar_t*> m = StrNe(L"Hi"); in TEST()
2092 Matcher<const wchar_t*> m = StrCaseEq(::wstring(L"Hello")); in TEST()
2098 Matcher<const ::wstring&> m2 = StrCaseEq(L"Hello"); in TEST()
2106 Matcher<const ::wstring&> m0 = StrCaseEq(str1); in TEST()
2110 Matcher<const ::wstring&> m1 = StrCaseEq(str1); in TEST()
2115 Matcher<const ::wstring&> m2 = StrCaseEq(str1); in TEST()
2119 Matcher<const ::wstring&> m3 = StrCaseEq(str1); in TEST()
2129 Matcher< ::wstring> m = StrCaseEq(L"Hi"); in TEST()
2134 Matcher<const wchar_t*> m = StrCaseNe(L"Hello"); in TEST()
2140 Matcher< ::wstring> m2 = StrCaseNe(::wstring(L"Hello")); in TEST()
2146 Matcher<const wchar_t*> m = StrCaseNe(L"Hi"); in TEST()
2152 const Matcher< ::wstring> m1 = HasSubstr(L"foo"); in TEST()
2156 const Matcher<const ::wstring&> m2 = HasSubstr(L"foo"); in TEST()
2163 const Matcher<wchar_t*> m1 = HasSubstr(L"foo"); in TEST()
2168 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo"); in TEST()
2176 Matcher< ::wstring> m = HasSubstr(L"foo\n\""); in TEST()
2183 const Matcher<const wchar_t*> m1 = StartsWith(::wstring(L"")); in TEST()
2188 const Matcher<const ::wstring&> m2 = StartsWith(L"Hi"); in TEST()
2197 Matcher<const ::wstring> m = StartsWith(L"Hi"); in TEST()
2204 const Matcher<const wchar_t*> m1 = EndsWith(L""); in TEST()
2209 const Matcher<const ::wstring&> m2 = EndsWith(::wstring(L"Hi")); in TEST()
2218 Matcher<const ::wstring> m = EndsWith(L"Hi"); in TEST()
2229 Matcher<const Tuple2&> m = Eq(); in TEST()
2236 Matcher<const Tuple2&> m = Eq(); in TEST()
2243 Matcher<const Tuple2&> m = Ge(); in TEST()
2251 Matcher<const Tuple2&> m = Ge(); in TEST()
2258 Matcher<const Tuple2&> m = Gt(); in TEST()
2266 Matcher<const Tuple2&> m = Gt(); in TEST()
2273 Matcher<const Tuple2&> m = Le(); in TEST()
2281 Matcher<const Tuple2&> m = Le(); in TEST()
2288 Matcher<const Tuple2&> m = Lt(); in TEST()
2296 Matcher<const Tuple2&> m = Lt(); in TEST()
2303 Matcher<const Tuple2&> m = Ne(); in TEST()
2311 Matcher<const Tuple2&> m = Ne(); in TEST()
2317 Matcher<Pointers> matcher = Eq(); in TEST()
2328 Matcher<const Tpl&> m = FloatEq(); in TEST()
2336 Matcher<const ::std::tuple<float, float>&> m = FloatEq(); in TEST()
2344 Matcher<const Tpl&> m = NanSensitiveFloatEq(); in TEST()
2355 Matcher<const ::std::tuple<float, float>&> m = NanSensitiveFloatEq(); in TEST()
2363 Matcher<const Tpl&> m = DoubleEq(); in TEST()
2371 Matcher<const ::std::tuple<double, double>&> m = DoubleEq(); in TEST()
2379 Matcher<const Tpl&> m = NanSensitiveDoubleEq(); in TEST()
2390 Matcher<const ::std::tuple<double, double>&> m = NanSensitiveDoubleEq(); in TEST()
2398 Matcher<const Tpl&> m = FloatNear(0.5f); in TEST()
2406 Matcher<const ::std::tuple<float, float>&> m = FloatNear(0.5f); in TEST()
2414 Matcher<const Tpl&> m = NanSensitiveFloatNear(0.5f); in TEST()
2426 Matcher<const ::std::tuple<float, float>&> m = NanSensitiveFloatNear(0.5f); in TEST()
2434 Matcher<const Tpl&> m = DoubleNear(0.5); in TEST()
2442 Matcher<const ::std::tuple<double, double>&> m = DoubleNear(0.5); in TEST()
2450 Matcher<const Tpl&> m = NanSensitiveDoubleNear(0.5f); in TEST()
2462 Matcher<const ::std::tuple<double, double>&> m = NanSensitiveDoubleNear(0.5f); in TEST()
2468 Matcher<int> m; in TEST()
2476 Matcher<int> m = Not(Eq(5)); in TEST()
2483 Matcher<int> greater_than_5 = Gt(5); in TEST()
2485 Matcher<const int&> m = Not(greater_than_5); in TEST()
2486 Matcher<int&> m2 = Not(greater_than_5); in TEST()
2487 Matcher<int&> m3 = Not(m); in TEST()
2491 void AllOfMatches(int num, const Matcher<int>& m) { in AllOfMatches()
2503 Matcher<int> m; in TEST()
2557 Matcher<int> m; in TEST()
2581 Matcher<int> m; in TEST()
2612 Matcher<int> greater_than_5 = Gt(5); in TEST()
2613 Matcher<int> less_than_10 = Lt(10); in TEST()
2615 Matcher<const int&> m = AllOf(greater_than_5, less_than_10); in TEST()
2616 Matcher<int&> m2 = AllOf(greater_than_5, less_than_10); in TEST()
2617 Matcher<int&> m3 = AllOf(greater_than_5, m2); in TEST()
2620 Matcher<const int&> m4 = AllOf(greater_than_5, less_than_10, less_than_10); in TEST()
2621 Matcher<int&> m5 = AllOf(greater_than_5, less_than_10, less_than_10); in TEST()
2625 Matcher<int> m; in TEST()
2668 static void AnyOfMatches(int num, const Matcher<int>& m) { in AnyOfMatches()
2677 static void AnyOfStringMatches(int num, const Matcher<std::string>& m) { in AnyOfStringMatches()
2690 Matcher<int> m; in TEST()
2734 Matcher<int> m = ::testing::AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); in TEST()
2781 Matcher<int> m; in TEST()
2803 Matcher<int> m; in TEST()
2828 Matcher<int> greater_than_5 = Gt(5); in TEST()
2829 Matcher<int> less_than_10 = Lt(10); in TEST()
2831 Matcher<const int&> m = AnyOf(greater_than_5, less_than_10); in TEST()
2832 Matcher<int&> m2 = AnyOf(greater_than_5, less_than_10); in TEST()
2833 Matcher<int&> m3 = AnyOf(greater_than_5, m2); in TEST()
2836 Matcher<const int&> m4 = AnyOf(greater_than_5, less_than_10, less_than_10); in TEST()
2837 Matcher<int&> m5 = AnyOf(greater_than_5, less_than_10, less_than_10); in TEST()
2841 Matcher<int> m; in TEST()
2918 Matcher<double> m = Truly(IsPositive); in TEST()
2925 Matcher<int> m = Truly(IsGreaterThan(5)); in TEST()
2948 Matcher<int> m = Truly(IsNotZero); in TEST()
2955 Matcher<double> m = Truly(IsPositive); in TEST()
2963 Matcher<const int&> m = Truly(ReferencesFooAndIsZero); in TEST()
2987 Matcher<int> eq5 = Eq(5); in TEST()
3001 const Matcher<int> is_zero = Eq(0); in TEST()
3006 const Matcher<const int&> ref_n = Ref(n); in TEST()
3022 const Matcher<int> is_even = PolymorphicIsEven(); in TEST()
3027 const Matcher<const double&> is_zero = Eq(0); in TEST()
3047 const Matcher<int> monomorphic = Le(0); in TEST()
3182 Matcher<const char*> starts_with_he = StartsWith("he"); in TEST()
3185 Matcher<const std::string&> ends_with_ok = EndsWith("ok"); in TEST()
3192 Matcher<int> is_greater_than_5 = Gt(5); in TEST()
3237 Matcher<RawType> m1 = matcher_maker(0.0); in TestMatches()
3243 Matcher<RawType> m2 = matcher_maker(close_to_positive_zero_); in TestMatches()
3246 Matcher<RawType> m3 = matcher_maker(1.0); in TestMatches()
3253 Matcher<RawType> m4 = matcher_maker(-infinity_); in TestMatches()
3256 Matcher<RawType> m5 = matcher_maker(infinity_); in TestMatches()
3265 Matcher<const RawType&> m6 = matcher_maker(0.0); in TestMatches()
3272 Matcher<RawType&> m7 = matcher_maker(0.0); in TestMatches()
3320 Matcher<RawType> m1 = matcher_maker(0.0, 0.0); in TestNearMatches()
3327 Matcher<RawType> m2 = matcher_maker(0.0, 1.0); in TestNearMatches()
3337 Matcher<RawType> m3 = matcher_maker(ParentType::infinity_, 0.0); in TestNearMatches()
3342 Matcher<RawType> m4 = matcher_maker(-ParentType::infinity_, 0.0); in TestNearMatches()
3348 Matcher<RawType> m5 = matcher_maker(ParentType::max_, ParentType::max_); in TestNearMatches()
3352 Matcher<RawType> m6 = matcher_maker(-ParentType::max_, ParentType::max_); in TestNearMatches()
3356 Matcher<RawType> m7 = matcher_maker(ParentType::max_, 0); in TestNearMatches()
3360 Matcher<RawType> m8 = matcher_maker(-ParentType::max_, 0); in TestNearMatches()
3366 Matcher<RawType> m9 = matcher_maker( in TestNearMatches()
3372 Matcher<const RawType&> m10 = matcher_maker(0.0, 1.0); in TestNearMatches()
3379 Matcher<RawType&> m11 = matcher_maker(0.0, 1.0); in TestNearMatches()
3406 Matcher<float> m = FloatEq(nan1_); in TEST_F()
3414 Matcher<float> m = NanSensitiveFloatEq(nan1_); in TEST_F()
3421 Matcher<float> m1 = FloatEq(2.0f); in TEST_F()
3425 Matcher<float> m2 = FloatEq(0.5f); in TEST_F()
3429 Matcher<float> m3 = FloatEq(nan1_); in TEST_F()
3435 Matcher<float> m1 = NanSensitiveFloatEq(2.0f); in TEST_F()
3439 Matcher<float> m2 = NanSensitiveFloatEq(0.5f); in TEST_F()
3443 Matcher<float> m3 = NanSensitiveFloatEq(nan1_); in TEST_F()
3461 Matcher<float> m1 = FloatNear(2.0f, 0.5f); in TEST_F()
3466 Matcher<float> m2 = FloatNear(0.5f, 0.5f); in TEST_F()
3471 Matcher<float> m3 = FloatNear(nan1_, 0.0); in TEST_F()
3477 Matcher<float> m1 = NanSensitiveFloatNear(2.0f, 0.5f); in TEST_F()
3482 Matcher<float> m2 = NanSensitiveFloatNear(0.5f, 0.5f); in TEST_F()
3487 Matcher<float> m3 = NanSensitiveFloatNear(nan1_, 0.1f); in TEST_F()
3494 Matcher<float> m = FloatNear(ParentType::nan1_, 0.1f); in TEST_F()
3502 Matcher<float> m = NanSensitiveFloatNear(nan1_, 0.1f); in TEST_F()
3521 Matcher<double> m = DoubleEq(nan1_); in TEST_F()
3529 Matcher<double> m = NanSensitiveDoubleEq(nan1_); in TEST_F()
3536 Matcher<double> m1 = DoubleEq(2.0); in TEST_F()
3540 Matcher<double> m2 = DoubleEq(0.5); in TEST_F()
3544 Matcher<double> m3 = DoubleEq(nan1_); in TEST_F()
3550 Matcher<double> m1 = NanSensitiveDoubleEq(2.0); in TEST_F()
3554 Matcher<double> m2 = NanSensitiveDoubleEq(0.5); in TEST_F()
3558 Matcher<double> m3 = NanSensitiveDoubleEq(nan1_); in TEST_F()
3576 Matcher<double> m1 = DoubleNear(2.0, 0.5); in TEST_F()
3581 Matcher<double> m2 = DoubleNear(0.5, 0.5); in TEST_F()
3586 Matcher<double> m3 = DoubleNear(nan1_, 0.0); in TEST_F()
3606 Matcher<double> m1 = NanSensitiveDoubleNear(2.0, 0.5); in TEST_F()
3611 Matcher<double> m2 = NanSensitiveDoubleNear(0.5, 0.5); in TEST_F()
3616 Matcher<double> m3 = NanSensitiveDoubleNear(nan1_, 0.1); in TEST_F()
3623 Matcher<double> m = DoubleNear(ParentType::nan1_, 0.1); in TEST_F()
3631 Matcher<double> m = NanSensitiveDoubleNear(nan1_, 0.1); in TEST_F()
3638 const Matcher<int*> m = Pointee(Ge(0)); in TEST()
3648 const Matcher<const double*> m = Pointee(Ge(0)); in TEST()
3658 const Matcher<int* const &> m = Pointee(Ge(0)); in TEST()
3668 const Matcher<double* &> m = Pointee(Ge(0)); in TEST()
3740 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_)); in TEST()
3749 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_)); in TEST()
3757 Matcher<const Base&> ref_matcher = WhenDynamicCastTo<const OtherDerived&>(_); in TEST()
3798 const Matcher< ConstPropagatingPtr<int> > m = Pointee(Lt(5)); in TEST()
3810 const Matcher<const char*> m = Pointee(_); in TEST()
3816 const Matcher<int*> m = Pointee(5); in TEST()
3826 const Matcher<int*> m = Pointee(Gt(3)); in TEST()
3833 const Matcher<const std::string*> m = Pointee(StartsWith("Hi")); in TEST()
3837 const Matcher<long*> m2 = Pointee(GreaterThan(1)); // NOLINT in TEST()
3844 const Matcher<int*> m = Pointee(0); in TEST()
3895 Matcher<AStruct> m = Field(&AStruct::x, Ge(0)); in TEST()
3896 Matcher<AStruct> m_with_name = Field("x", &AStruct::x, Ge(0)); in TEST()
3910 Matcher<AStruct> m = Field(&AStruct::y, Ge(0.0)); in TEST()
3911 Matcher<AStruct> m_with_name = Field("y", &AStruct::y, Ge(0.0)); in TEST()
3924 Matcher<AStruct> m = Field(&AStruct::z, Truly(ValueIsPositive)); in TEST()
3933 Matcher<AStruct> m = Field(&AStruct::p, static_cast<const char*>(nullptr)); in TEST()
3949 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
3962 Matcher<const DerivedStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
3974 Matcher<const AStruct&> m = Field(&AStruct::x, in TEST()
3975 Matcher<signed char>(Ge(0))); in TEST()
3985 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
3992 Matcher<const AStruct&> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
4001 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
4014 Matcher<const AStruct&> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
4028 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
4038 Matcher<AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
4048 Matcher<AStruct* const&> m = Field(&AStruct::x, Ge(0)); in TEST()
4058 Matcher<const AStruct*> m = Field(&AStruct::x, _); in TEST()
4067 Matcher<DerivedStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
4077 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
4084 Matcher<const AStruct*> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
4093 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
4107 Matcher<const AStruct*> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
4162 Matcher<const AClass&> m = Property(&AClass::n, Ge(0)); in TEST()
4163 Matcher<const AClass&> m_with_name = Property("n", &AClass::n, Ge(0)); in TEST()
4178 Matcher<const AClass&> m = Property(&AClass::s, StartsWith("hi")); in TEST()
4179 Matcher<const AClass&> m_with_name = in TEST()
4195 Matcher<const AClass&> m = Property(&AClass::s_ref, StartsWith("hi")); in TEST()
4196 Matcher<const AClass&> m_with_name = in TEST()
4215 Matcher<const AClass&> m = Property(&AClass::x, Ref(x)); in TEST()
4225 Matcher<AClass> m = Property(&AClass::s, StartsWith("hi")); in TEST()
4240 Matcher<const DerivedClass&> m = Property(&AClass::n, Ge(0)); in TEST()
4254 Matcher<const AClass&> m = Property(&AClass::n, in TEST()
4255 Matcher<signed char>(Ge(0))); in TEST()
4257 Matcher<const AClass&> m_with_name = in TEST()
4258 Property("n", &AClass::n, Matcher<signed char>(Ge(0))); in TEST()
4270 Matcher<const AClass&> m = Property(&AClass::n, Ge(0)); in TEST()
4278 Matcher<const AClass&> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
4287 Matcher<const AClass&> m = Property(&AClass::n, Ge(0)); in TEST()
4300 Matcher<const AClass&> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
4314 Matcher<const AClass*> m = Property(&AClass::n, Ge(0)); in TEST()
4326 Matcher<AClass*> m = Property(&AClass::s, StartsWith("hi")); in TEST()
4339 Matcher<AClass* const&> m = Property(&AClass::s, StartsWith("hi")); in TEST()
4351 Matcher<const AClass*> m = Property(&AClass::x, _); in TEST()
4360 Matcher<const DerivedClass*> m = Property(&AClass::n, Ge(0)); in TEST()
4372 Matcher<const AClass*> m = Property(&AClass::n, Ge(0)); in TEST()
4380 Matcher<const AClass*> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
4389 Matcher<const AClass*> m = Property(&AClass::n, Ge(0)); in TEST()
4405 Matcher<const AClass*> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
4429 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(std::string("foo"))); in TEST()
4437 Matcher<int> matcher = ResultOf(&IntToStringFunction, StrEq("foo")); in TEST()
4449 Matcher<int> matcher = ResultOf(&IntFunction, Ge(85)); in TEST()
4461 Matcher<int> matcher = ResultOf(&IntFunction, Eq(80)); in TEST()
4478 Matcher<double&> matcher = ResultOf(&DoubleFunction, Ref(x)); in TEST()
4486 Matcher<Uncopyable&> matcher2 = in TEST()
4500 Matcher<const std::string&> matcher = ResultOf(&StringFunction, Ref(s)); in TEST()
4510 Matcher<int> matcher = ResultOf(IntFunction, Matcher<signed char>(Ge(85))); in TEST()
4528 Matcher<int> matcher = ResultOf(IntToStringFunction, StrEq("foo")); in TEST()
4542 Matcher<int> matcher = ResultOf(Functor(), Eq(std::string("foo"))); in TEST()
4559 Matcher<int> matcher_int = ResultOf(PolymorphicFunctor(), Ge(5)); in TEST()
4564 Matcher<const char*> matcher_string = ResultOf(PolymorphicFunctor(), Ge(5)); in TEST()
4571 Matcher<int*> matcher = ResultOf(PolymorphicFunctor(), "good ptr"); in TEST()
4579 Matcher<int> matcher = in TEST()
4595 Matcher<const int&> matcher2 = ResultOf(ReferencingFunction, Eq(&n)); in TEST()
4599 Matcher<const int&> matcher3 = ResultOf(ReferencingFunctor(), Eq(&n)); in TEST()
4638 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3)); in TEST()
4645 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3)); in TEST()
4652 const Matcher<int> m = AllOf(Ge(1), DivisibleBy(3)); in TEST()
4659 const Matcher<int> m = AllOf(DivisibleBy(2), DivisibleBy(3)); in TEST()
4664 const Matcher<int> m = AllOf(Ge(2), Le(3)); in TEST()
4669 const Matcher<int> m = GreaterThan(5); in TEST()
4698 const Matcher<const NotCopyable&> m = Eq(ByRef(const_value1)); in TEST()
4707 const Matcher<NotCopyable&> m = Ge(ByRef(value2)); in TEST()
4733 Matcher<vector<int> > m = IsEmpty(); in TEST()
4739 Matcher<vector<int> > m = IsEmpty(); in TEST()
4814 Matcher<const vector<int>&> m = SizeIs(1); in TEST()
4838 Matcher<vector<int> > m = SizeIs(2); in TEST()
4844 Matcher<vector<int> > m1 = SizeIs(2); in TEST()
4845 Matcher<vector<int> > m2 = SizeIs(Lt(2u)); in TEST()
4846 Matcher<vector<int> > m3 = SizeIs(AnyOf(0, 3)); in TEST()
4847 Matcher<vector<int> > m4 = SizeIs(GreaterThan(1)); in TEST()
4883 const Matcher<TypeParam> m = ContainerEq(my_set); in TYPED_TEST()
4894 const Matcher<TypeParam> m = ContainerEq(my_set); in TYPED_TEST()
4906 const Matcher<const TypeParam&> m = ContainerEq(my_set); in TYPED_TEST()
4917 const Matcher<TypeParam> m = ContainerEq(my_set); in TYPED_TEST()
4930 const Matcher<const TypeParam&> m = ContainerEq(my_set); in TYPED_TEST()
4944 const Matcher<vector<int> > m = ContainerEq(my_set); in TEST()
4957 const Matcher<const list<size_t>&> m = ContainerEq(my_set); in TEST()
4969 const Matcher<const list<size_t> > m = ContainerEq(my_set); in TEST()
4983 const Matcher<vector<int> > m = ContainerEq(my_set); in TEST()
5001 const Matcher<const map<int, std::string>&> m = ContainerEq(my_map); in TEST()
5057 const Matcher<const std::string(&)[2][3]> m = ContainerEq(a2); in TEST()
5103 const Matcher<vector<int> > m = WhenSortedBy(less<int>(), ElementsAre(1, 2)); in TEST()
5188 Matcher<const std::vector<int>&> vector_match = ElementsAre(1, 2); in TEST()
5190 Matcher<const std::vector<int>&> not_vector_match = ElementsAre(2, 1); in TEST()
5304 Matcher<vector<int> > m = BeginEndDistanceIs(2); in TEST()
5317 Matcher<vector<int> > m1 = BeginEndDistanceIs(2); in TEST()
5318 Matcher<vector<int> > m2 = BeginEndDistanceIs(Lt(2)); in TEST()
5319 Matcher<vector<int> > m3 = BeginEndDistanceIs(AnyOf(0, 3)); in TEST()
5320 Matcher<vector<int> > m4 = BeginEndDistanceIs(GreaterThan(1)); in TEST()
5358 Matcher<const std::vector<int>&> vector_match = ElementsAre(1, 2, 3, 4, 5); in TEST()
5755 EXPECT_THAT(a, UnorderedElementsAreArray<Matcher<int> >( in TEST()
5757 EXPECT_THAT(a, Not(UnorderedElementsAreArray<Matcher<int> >( in TEST()
5795 std::vector<Matcher<int> > mv; in TEST_F()
5830 std::vector<Matcher<int> > mv; in TEST_F()
5846 std::vector<Matcher<int> > mv; in TEST_F()
6262 std::make_tuple(Matcher<char>(Eq('a')), GreaterThan(5)), in TEST()
6268 std::make_tuple(GreaterThan(5), Matcher<char>(Eq('a'))), in TEST()
6278 std::make_tuple(GreaterThan(5), Matcher<char>(Eq('a'))), in TEST()
6291 Matcher<set<int> > m = Each(2); in TEST()
6294 Matcher<const int(&)[1]> n = Each(1); // NOLINT in TEST()
6314 Matcher<vector<int> > m = Each(1); in TEST()
6317 Matcher<vector<int> > m2 = Not(m); in TEST()
6411 const Matcher<const vector<int>&> m = Pointwise(IsHalfOf(), rhs); in TEST()
6427 const Matcher<const int (&)[2]> m = Pointwise(IsHalfOf(), rhs); in TEST()
6503 const Matcher<std::tuple<const double&, const int&>> m1 = IsHalfOf(); in TEST()
6509 const Matcher<std::tuple<double, int>> m2 = IsHalfOf(); in TEST()
6530 const Matcher<const vector<int>&> m = UnorderedPointwise(IsHalfOf(), rhs); in TEST()
6557 const Matcher<const int (&)[2]> m = UnorderedPointwise(IsHalfOf(), rhs); in TEST()
6628 const Matcher<std::tuple<const double&, const int&>> m1 = IsHalfOf(); in TEST()
6633 const Matcher<std::tuple<double, int>> m2 = IsHalfOf(); in TEST()
6662 const Matcher<SampleOptional<int>> m = Optional(Eq(1)); in TEST()
6667 const Matcher<SampleOptional<int>> m = Optional(Eq(1)); in TEST()
6673 const Matcher<SampleOptional<int>> m1 = Optional(1); in TEST()
6674 const Matcher<SampleOptional<int>> m2 = Optional(Eq(2)); in TEST()
6675 const Matcher<SampleOptional<int>> m3 = Optional(Lt(3)); in TEST()
6683 const Matcher<SampleOptional<int>> m = Optional(1); in TEST()
6689 Matcher<SampleOptional<std::unique_ptr<int>>> m = Optional(Eq(nullptr)); in TEST()
6718 const Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6724 const Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6734 Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6742 Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6750 Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6779 Matcher<SampleAnyType> m = AnyWith<int>(Eq(1)); in TEST()
6784 Matcher<SampleAnyType> m = AnyWith<std::string>(Eq("fail")); in TEST()
6809 const Matcher<const SampleAnyType&> m = AnyWith<int>(Eq(1)); in TEST()
6815 const Matcher<const SampleAnyType&> m = AnyWith<int>(Eq(1)); in TEST()
6887 const Matcher<Tuple3> m = Args<1, 2>(Lt()); in TEST()
6894 const Matcher<const Tuple3&> m = Args<0, 1>(Lt()); in TEST()
6914 const Matcher<std::tuple<int, bool, char> > m = Args<2, 0>(Lt()); in TEST()
6921 const Matcher<const std::tuple<int, bool, char, int>&> m = in TEST()
6929 const Matcher<std::tuple<int, char> > m = Args<1, 0>(Gt()); in TEST()
6936 const Matcher<std::tuple<bool, int, int> > m = Args<1, 2>(Eq()); in TEST()
6959 Matcher<std::tuple<char, int> > LessThan() { in LessThan()
6964 const Matcher<std::tuple<char, int, int> > m = Args<0, 2>(LessThan()); in TEST()
7016 PredicateFormatterFromMatcher<Matcher<Behavior>> predicate_formatter( in RunPredicateFormatter()