• Home
  • Raw
  • Download

Lines Matching refs:Matcher

137 Matcher<int> GreaterThan(int n) {  in GreaterThan()
151 std::string Describe(const Matcher<T>& m) { in Describe()
157 std::string DescribeNegation(const Matcher<T>& m) { in DescribeNegation()
247 Matcher<int> m = MakeMatcher(new NewEvenMatcherImpl); in TEST()
256 Matcher<double> m; in TEST()
262 Matcher<int> m(impl); in TEST()
269 Matcher<int> m1 = 5; in TEST()
276 Matcher<int*> m1 = nullptr; in TEST()
290 Matcher<int> m1 = Undefined::kInt; in TEST()
296 TEST(MatcherTest, CanAcceptAbstractClass) { Matcher<const Undefined&> m = _; } in TEST()
301 Matcher<bool> m1 = Eq(false); in TEST()
315 Describe(Matcher<int>(new EvenMatcherImpl))); in TEST()
320 Matcher<int> m = GreaterThan(0); in TEST()
333 Matcher<std::string> m1 = "hi"; in TEST()
337 Matcher<const std::string&> m2 = "hi"; in TEST()
345 Matcher<std::string> m1 = std::string("hi"); in TEST()
349 Matcher<const std::string&> m2 = std::string("hi"); in TEST()
358 Matcher<absl::string_view> m1 = "cats"; in TEST()
362 Matcher<const absl::string_view&> m2 = "cats"; in TEST()
370 Matcher<absl::string_view> m1 = std::string("cats"); in TEST()
374 Matcher<const absl::string_view&> m2 = std::string("cats"); in TEST()
382 Matcher<absl::string_view> m1 = absl::string_view("cats"); in TEST()
386 Matcher<const absl::string_view&> m2 = absl::string_view("cats"); in TEST()
397 Matcher<std::string> m1 = Eq(std::ref(value)); in TEST()
401 Matcher<const std::string&> m2 = Eq(std::ref(value)); in TEST()
411 Matcher<int> m = MakeMatcher(dummy_impl); in TEST()
441 Matcher<const int&> m1 = ReferencesBarOrIsZero(); in TEST()
449 Matcher<double> m2 = ReferencesBarOrIsZero(); in TEST()
484 const Matcher<int> m1 = PolymorphicIsEven(); in TEST()
489 const Matcher<int> not_m1 = Not(m1); in TEST()
495 const Matcher<char> m2 = PolymorphicIsEven(); in TEST()
500 const Matcher<char> not_m2 = Not(m2); in TEST()
508 Matcher<int> m = MatcherCast<int>(Eq(5)); in TEST()
533 Matcher<double> m1 = Eq(2.0); in TEST()
534 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
538 Matcher<IntValue> m3 = Truly(IsPositiveIntValue); in TEST()
539 Matcher<int> m4 = MatcherCast<int>(m3); in TEST()
549 Matcher<const int&> m1 = Eq(0); in TEST()
550 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
557 Matcher<int&> m1 = Eq(0); in TEST()
558 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
565 Matcher<int> m1 = Eq(0); in TEST()
566 Matcher<const int&> m2 = MatcherCast<const int&>(m1); in TEST()
573 Matcher<int> m1 = Eq(0); in TEST()
574 Matcher<int&> m2 = MatcherCast<int&>(m1); in TEST()
583 Matcher<int> m1 = Eq(0); in TEST()
584 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
592 Matcher<int> m = MatcherCast<int>(42); in TEST()
601 Matcher<int> m = MatcherCast<int>('c'); in TEST()
623 Matcher<NonImplicitlyConstructibleTypeWithOperatorEq> m1 = in TEST()
627 Matcher<NonImplicitlyConstructibleTypeWithOperatorEq> m2 = in TEST()
633 Matcher<int> m3 = in TEST()
673 Matcher<ConvertibleFromAny> m = MatcherCast<ConvertibleFromAny>(1); in TEST()
679 Matcher<ConvertibleFromAny> m = in TEST()
699 Matcher<IntReferenceWrapper> m = MatcherCast<IntReferenceWrapper>(n); in TEST()
722 Matcher<char> m2 = SafeMatcherCast<char>(Eq(32)); in TEST()
731 Matcher<double> m1 = DoubleEq(1.0); in TEST()
732 Matcher<float> m2 = SafeMatcherCast<float>(m1); in TEST()
736 Matcher<char> m3 = SafeMatcherCast<char>(TypedEq<int>('a')); in TEST()
745 Matcher<Base*> m1 = Eq(&d); in TEST()
746 Matcher<Derived*> m2 = SafeMatcherCast<Derived*>(m1); in TEST()
750 Matcher<Base&> m3 = Ref(d); in TEST()
751 Matcher<Derived&> m4 = SafeMatcherCast<Derived&>(m3); in TEST()
759 Matcher<const int&> m1 = Ref(n); in TEST()
760 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()
768 Matcher<int> m1 = Eq(0); in TEST()
769 Matcher<const int&> m2 = SafeMatcherCast<const int&>(m1); in TEST()
776 Matcher<int> m1 = Eq(0); in TEST()
777 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()
786 Matcher<int> m1 = Eq(0); in TEST()
787 Matcher<int> m2 = SafeMatcherCast<int>(m1); in TEST()
796 Matcher<ConvertibleFromAny> m = SafeMatcherCast<ConvertibleFromAny>(1); in TEST()
802 Matcher<ConvertibleFromAny> m = in TEST()
813 Matcher<IntReferenceWrapper> m = SafeMatcherCast<IntReferenceWrapper>(n); in TEST()
836 Matcher<double> m1 = A<double>(); in TEST()
843 Matcher<int&> m2 = A<int&>(); in TEST()
865 Matcher<int> m1 = An<int>(); in TEST()
872 Matcher<int&> m2 = An<int&>(); in TEST()
886 Matcher<int> m1 = _; in TEST()
893 Matcher<const bool&> m2 = _; in TEST()
900 Matcher<int> m = _; in TEST()
910 Matcher<const char*> m1 = Eq(a1); in TEST()
929 Matcher<Unprintable> m = Eq(Unprintable()); in TEST()
936 Matcher<int> m1 = Eq(1); in TEST()
940 Matcher<char> m2 = Eq(1); in TEST()
947 Matcher<char> m1 = TypedEq<char>('a'); in TEST()
951 Matcher<int> m2 = TypedEq<int>(6); in TEST()
976 Type<Matcher<int> >::IsTypeOf(TypedEq<int>(5)); in TEST()
977 Type<Matcher<double> >::IsTypeOf(TypedEq<double>(5)); in TEST()
982 Matcher<int> m1 = Ge(0); in TEST()
990 Matcher<int> m = Ge(5); in TEST()
996 Matcher<double> m1 = Gt(0); in TEST()
1004 Matcher<int> m = Gt(5); in TEST()
1010 Matcher<char> m1 = Le('b'); in TEST()
1018 Matcher<int> m = Le(5); in TEST()
1024 Matcher<const std::string&> m1 = Lt("Hello"); in TEST()
1032 Matcher<int> m = Lt(5); in TEST()
1038 Matcher<int> m1 = Ne(0); in TEST()
1046 Matcher<int> m = Ne(5); in TEST()
1093 Matcher<int*> m1 = IsNull(); in TEST()
1099 Matcher<const char*> m2 = IsNull(); in TEST()
1104 Matcher<void*> m3 = IsNull(); in TEST()
1111 const Matcher<std::function<void()>> m = IsNull(); in TEST()
1119 Matcher<int*> m = IsNull(); in TEST()
1126 Matcher<int*> m1 = NotNull(); in TEST()
1132 Matcher<const char*> m2 = NotNull(); in TEST()
1139 const Matcher<std::shared_ptr<int>> m = NotNull(); in TEST()
1148 const Matcher<const std::shared_ptr<double>&> m = NotNull(); in TEST()
1157 const Matcher<std::function<void()>> m = NotNull(); in TEST()
1165 Matcher<int*> m = NotNull(); in TEST()
1174 Matcher<int&> m = Ref(a); in TEST()
1182 Matcher<int&> m = Ref(n); in TEST()
1193 Matcher<const int&> m = Ref(a); in TEST()
1205 Matcher<const Base&> m1 = Ref(base); in TEST()
1218 EXPECT_THAT(Explain(Matcher<const int&>(Ref(n)), n), in TEST()
1222 EXPECT_THAT(Explain(Matcher<const int&>(Ref(n)), m), in TEST()
1229 Matcher<const char*> m = StrEq(std::string("Hello")); in TEST()
1234 Matcher<const std::string&> m2 = StrEq("Hello"); in TEST()
1239 Matcher<const absl::string_view&> m3 = StrEq("Hello"); in TEST()
1244 Matcher<const absl::string_view&> m_empty = StrEq(""); in TEST()
1252 Matcher<std::string> m = StrEq("Hi-\'\"?\\\a\b\f\n\r\t\v\xD3"); in TEST()
1258 Matcher<std::string> m2 = StrEq(str); in TEST()
1261 Matcher<std::string> m3 = StrEq(str); in TEST()
1266 Matcher<const char*> m = StrNe("Hello"); in TEST()
1271 Matcher<std::string> m2 = StrNe(std::string("Hello")); in TEST()
1276 Matcher<const absl::string_view> m3 = StrNe("Hello"); in TEST()
1284 Matcher<const char*> m = StrNe("Hi"); in TEST()
1289 Matcher<const char*> m = StrCaseEq(std::string("Hello")); in TEST()
1295 Matcher<const std::string&> m2 = StrCaseEq("Hello"); in TEST()
1300 Matcher<const absl::string_view&> m3 = StrCaseEq(std::string("Hello")); in TEST()
1311 Matcher<const std::string&> m0 = StrCaseEq(str1); in TEST()
1315 Matcher<const std::string&> m1 = StrCaseEq(str1); in TEST()
1320 Matcher<const std::string&> m2 = StrCaseEq(str1); in TEST()
1324 Matcher<const std::string&> m3 = StrCaseEq(str1); in TEST()
1334 Matcher<std::string> m = StrCaseEq("Hi"); in TEST()
1339 Matcher<const char*> m = StrCaseNe("Hello"); in TEST()
1345 Matcher<std::string> m2 = StrCaseNe(std::string("Hello")); in TEST()
1350 Matcher<const absl::string_view> m3 = StrCaseNe("Hello"); in TEST()
1359 Matcher<const char*> m = StrCaseNe("Hi"); in TEST()
1365 const Matcher<std::string> m1 = HasSubstr("foo"); in TEST()
1369 const Matcher<const std::string&> m2 = HasSubstr("foo"); in TEST()
1373 const Matcher<std::string> m_empty = HasSubstr(""); in TEST()
1380 const Matcher<char*> m1 = HasSubstr("foo"); in TEST()
1385 const Matcher<const char*> m2 = HasSubstr("foo"); in TEST()
1390 const Matcher<const char*> m_empty = HasSubstr(""); in TEST()
1399 const Matcher<absl::string_view> m1 = HasSubstr("foo"); in TEST()
1404 const Matcher<const absl::string_view&> m2 = HasSubstr("foo"); in TEST()
1409 const Matcher<const absl::string_view&> m3 = HasSubstr(""); in TEST()
1418 Matcher<std::string> m = HasSubstr("foo\n\""); in TEST()
1423 Matcher<const pair<std::string, int>&> m = Key("foo"); in TEST()
1429 Matcher<pair<int, bool> > m = Key(GreaterThan(10)); in TEST()
1477 Matcher<int> is_positive = Gt(0); in TEST()
1478 Matcher<int> is_negative = Lt(0); in TEST()
1511 Matcher<const pair<const char*, int>&> m1 = Pair("foo", 42); in TEST()
1512 Matcher<const pair<const char*, int> > m2 = Pair("foo", 42); in TEST()
1513 Matcher<pair<const char*, int> > m3 = Pair("foo", 42); in TEST()
1515 Matcher<pair<int, const std::string> > m4 = Pair(25, "42"); in TEST()
1516 Matcher<pair<const std::string, int> > m5 = Pair("25", 42); in TEST()
1520 Matcher<const pair<std::string, int>&> m1 = Pair("foo", 42); in TEST()
1528 Matcher<const pair<int, int>&> m2 = Not(Pair(Not(13), 42)); in TEST()
1537 const Matcher<pair<int, int> > m = Pair(GreaterThan(0), GreaterThan(0)); in TEST()
1559 const Matcher<pair<int, int> > explain_first = Pair(GreaterThan(0), 0); in TEST()
1566 const Matcher<pair<int, int> > explain_second = Pair(0, GreaterThan(0)); in TEST()
1599 Matcher<int> is_positive = Gt(0); in TEST()
1600 Matcher<int> is_negative = Lt(0); in TEST()
1639 const Matcher<const char*> m1 = StartsWith(std::string("")); in TEST()
1644 const Matcher<const std::string&> m2 = StartsWith("Hi"); in TEST()
1652 const Matcher<absl::string_view> m_empty = StartsWith(""); in TEST()
1660 Matcher<const std::string> m = StartsWith("Hi"); in TEST()
1667 const Matcher<const char*> m1 = EndsWith(""); in TEST()
1672 const Matcher<const std::string&> m2 = EndsWith(std::string("Hi")); in TEST()
1680 const Matcher<const absl::string_view&> m4 = EndsWith(""); in TEST()
1689 Matcher<const std::string> m = EndsWith("Hi"); in TEST()
1696 const Matcher<const char*> m1 = MatchesRegex("a.*z"); in TEST()
1701 const Matcher<const std::string&> m2 = MatchesRegex(new RE("a.*z")); in TEST()
1707 const Matcher<const absl::string_view&> m3 = MatchesRegex("a.*z"); in TEST()
1712 const Matcher<const absl::string_view&> m4 = MatchesRegex(""); in TEST()
1719 Matcher<const std::string> m1 = MatchesRegex(std::string("Hi.*")); in TEST()
1722 Matcher<const char*> m2 = MatchesRegex(new RE("a.*")); in TEST()
1726 Matcher<const absl::string_view> m3 = MatchesRegex(new RE("0.*")); in TEST()
1734 const Matcher<const char*> m1 = ContainsRegex(std::string("a.*z")); in TEST()
1739 const Matcher<const std::string&> m2 = ContainsRegex(new RE("a.*z")); in TEST()
1745 const Matcher<const absl::string_view&> m3 = ContainsRegex(new RE("a.*z")); in TEST()
1750 const Matcher<const absl::string_view&> m4 = ContainsRegex(""); in TEST()
1757 Matcher<const std::string> m1 = ContainsRegex("Hi.*"); in TEST()
1760 Matcher<const char*> m2 = ContainsRegex(new RE("a.*")); in TEST()
1764 Matcher<const absl::string_view> m3 = ContainsRegex(new RE("0.*")); in TEST()
1772 Matcher<const wchar_t*> m = StrEq(::std::wstring(L"Hello")); in TEST()
1777 Matcher<const ::std::wstring&> m2 = StrEq(L"Hello"); in TEST()
1781 Matcher<const ::std::wstring&> m3 = StrEq(L"\xD3\x576\x8D3\xC74D"); in TEST()
1787 Matcher<const ::std::wstring&> m4 = StrEq(str); in TEST()
1790 Matcher<const ::std::wstring&> m5 = StrEq(str); in TEST()
1795 Matcher< ::std::wstring> m = StrEq(L"Hi-\'\"?\\\a\b\f\n\r\t\v"); in TEST()
1799 Matcher< ::std::wstring> m2 = StrEq(L"\xD3\x576\x8D3\xC74D"); in TEST()
1805 Matcher<const ::std::wstring&> m4 = StrEq(str); in TEST()
1808 Matcher<const ::std::wstring&> m5 = StrEq(str); in TEST()
1813 Matcher<const wchar_t*> m = StrNe(L"Hello"); in TEST()
1818 Matcher< ::std::wstring> m2 = StrNe(::std::wstring(L"Hello")); in TEST()
1824 Matcher<const wchar_t*> m = StrNe(L"Hi"); in TEST()
1829 Matcher<const wchar_t*> m = StrCaseEq(::std::wstring(L"Hello")); in TEST()
1835 Matcher<const ::std::wstring&> m2 = StrCaseEq(L"Hello"); in TEST()
1843 Matcher<const ::std::wstring&> m0 = StrCaseEq(str1); in TEST()
1847 Matcher<const ::std::wstring&> m1 = StrCaseEq(str1); in TEST()
1852 Matcher<const ::std::wstring&> m2 = StrCaseEq(str1); in TEST()
1856 Matcher<const ::std::wstring&> m3 = StrCaseEq(str1); in TEST()
1866 Matcher< ::std::wstring> m = StrCaseEq(L"Hi"); in TEST()
1871 Matcher<const wchar_t*> m = StrCaseNe(L"Hello"); in TEST()
1877 Matcher< ::std::wstring> m2 = StrCaseNe(::std::wstring(L"Hello")); in TEST()
1883 Matcher<const wchar_t*> m = StrCaseNe(L"Hi"); in TEST()
1889 const Matcher< ::std::wstring> m1 = HasSubstr(L"foo"); in TEST()
1893 const Matcher<const ::std::wstring&> m2 = HasSubstr(L"foo"); in TEST()
1900 const Matcher<wchar_t*> m1 = HasSubstr(L"foo"); in TEST()
1905 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo"); in TEST()
1913 Matcher< ::std::wstring> m = HasSubstr(L"foo\n\""); in TEST()
1920 const Matcher<const wchar_t*> m1 = StartsWith(::std::wstring(L"")); in TEST()
1925 const Matcher<const ::std::wstring&> m2 = StartsWith(L"Hi"); in TEST()
1934 Matcher<const ::std::wstring> m = StartsWith(L"Hi"); in TEST()
1941 const Matcher<const wchar_t*> m1 = EndsWith(L""); in TEST()
1946 const Matcher<const ::std::wstring&> m2 = EndsWith(::std::wstring(L"Hi")); in TEST()
1955 Matcher<const ::std::wstring> m = EndsWith(L"Hi"); in TEST()
1966 Matcher<const Tuple2&> m = Eq(); in TEST()
1973 Matcher<const Tuple2&> m = Eq(); in TEST()
1980 Matcher<const Tuple2&> m = Ge(); in TEST()
1988 Matcher<const Tuple2&> m = Ge(); in TEST()
1995 Matcher<const Tuple2&> m = Gt(); in TEST()
2003 Matcher<const Tuple2&> m = Gt(); in TEST()
2010 Matcher<const Tuple2&> m = Le(); in TEST()
2018 Matcher<const Tuple2&> m = Le(); in TEST()
2025 Matcher<const Tuple2&> m = Lt(); in TEST()
2033 Matcher<const Tuple2&> m = Lt(); in TEST()
2040 Matcher<const Tuple2&> m = Ne(); in TEST()
2048 Matcher<const Tuple2&> m = Ne(); in TEST()
2054 Matcher<Pointers> matcher = Eq(); in TEST()
2067 Matcher<float> m = IsNan(); in TEST()
2072 Matcher<float&> m_ref = IsNan(); in TEST()
2077 Matcher<const float&> m_cref = IsNan(); in TEST()
2089 Matcher<double> m = IsNan(); in TEST()
2094 Matcher<double&> m_ref = IsNan(); in TEST()
2099 Matcher<const double&> m_cref = IsNan(); in TEST()
2111 Matcher<long double> m = IsNan(); in TEST()
2116 Matcher<long double&> m_ref = IsNan(); in TEST()
2121 Matcher<const long double&> m_cref = IsNan(); in TEST()
2129 Matcher<float> mf = Not(IsNan()); in TEST()
2134 Matcher<double> md = Not(IsNan()); in TEST()
2139 Matcher<long double> mld = Not(IsNan()); in TEST()
2147 Matcher<float> mf = IsNan(); in TEST()
2150 Matcher<double> md = IsNan(); in TEST()
2153 Matcher<long double> mld = IsNan(); in TEST()
2159 Matcher<float> mf = Not(IsNan()); in TEST()
2162 Matcher<double> md = Not(IsNan()); in TEST()
2165 Matcher<long double> mld = Not(IsNan()); in TEST()
2173 Matcher<const Tpl&> m = FloatEq(); in TEST()
2181 Matcher<const ::std::tuple<float, float>&> m = FloatEq(); in TEST()
2189 Matcher<const Tpl&> m = NanSensitiveFloatEq(); in TEST()
2200 Matcher<const ::std::tuple<float, float>&> m = NanSensitiveFloatEq(); in TEST()
2208 Matcher<const Tpl&> m = DoubleEq(); in TEST()
2216 Matcher<const ::std::tuple<double, double>&> m = DoubleEq(); in TEST()
2224 Matcher<const Tpl&> m = NanSensitiveDoubleEq(); in TEST()
2235 Matcher<const ::std::tuple<double, double>&> m = NanSensitiveDoubleEq(); in TEST()
2243 Matcher<const Tpl&> m = FloatNear(0.5f); in TEST()
2251 Matcher<const ::std::tuple<float, float>&> m = FloatNear(0.5f); in TEST()
2259 Matcher<const Tpl&> m = NanSensitiveFloatNear(0.5f); in TEST()
2271 Matcher<const ::std::tuple<float, float>&> m = NanSensitiveFloatNear(0.5f); in TEST()
2279 Matcher<const Tpl&> m = DoubleNear(0.5); in TEST()
2287 Matcher<const ::std::tuple<double, double>&> m = DoubleNear(0.5); in TEST()
2295 Matcher<const Tpl&> m = NanSensitiveDoubleNear(0.5f); in TEST()
2307 Matcher<const ::std::tuple<double, double>&> m = NanSensitiveDoubleNear(0.5f); in TEST()
2313 Matcher<int> m; in TEST()
2321 Matcher<int> m = Not(Eq(5)); in TEST()
2328 Matcher<int> greater_than_5 = Gt(5); in TEST()
2330 Matcher<const int&> m = Not(greater_than_5); in TEST()
2331 Matcher<int&> m2 = Not(greater_than_5); in TEST()
2332 Matcher<int&> m3 = Not(m); in TEST()
2336 void AllOfMatches(int num, const Matcher<int>& m) { in AllOfMatches()
2348 Matcher<int> m; in TEST()
2402 Matcher<int> m; in TEST()
2426 Matcher<int> m; in TEST()
2457 Matcher<int> greater_than_5 = Gt(5); in TEST()
2458 Matcher<int> less_than_10 = Lt(10); in TEST()
2460 Matcher<const int&> m = AllOf(greater_than_5, less_than_10); in TEST()
2461 Matcher<int&> m2 = AllOf(greater_than_5, less_than_10); in TEST()
2462 Matcher<int&> m3 = AllOf(greater_than_5, m2); in TEST()
2465 Matcher<const int&> m4 = AllOf(greater_than_5, less_than_10, less_than_10); in TEST()
2466 Matcher<int&> m5 = AllOf(greater_than_5, less_than_10, less_than_10); in TEST()
2470 Matcher<int> m; in TEST()
2513 static void AnyOfMatches(int num, const Matcher<int>& m) { in AnyOfMatches()
2522 static void AnyOfStringMatches(int num, const Matcher<std::string>& m) { in AnyOfStringMatches()
2535 Matcher<int> m; in TEST()
2579 Matcher<int> m = ::testing::AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); in TEST()
2626 Matcher<int> m; in TEST()
2648 Matcher<int> m; in TEST()
2673 Matcher<int> greater_than_5 = Gt(5); in TEST()
2674 Matcher<int> less_than_10 = Lt(10); in TEST()
2676 Matcher<const int&> m = AnyOf(greater_than_5, less_than_10); in TEST()
2677 Matcher<int&> m2 = AnyOf(greater_than_5, less_than_10); in TEST()
2678 Matcher<int&> m3 = AnyOf(greater_than_5, m2); in TEST()
2681 Matcher<const int&> m4 = AnyOf(greater_than_5, less_than_10, less_than_10); in TEST()
2682 Matcher<int&> m5 = AnyOf(greater_than_5, less_than_10, less_than_10); in TEST()
2686 Matcher<int> m; in TEST()
2763 Matcher<double> m = Truly(IsPositive); in TEST()
2770 Matcher<int> m = Truly(IsGreaterThan(5)); in TEST()
2793 Matcher<int> m = Truly(IsNotZero); in TEST()
2800 Matcher<double> m = Truly(IsPositive); in TEST()
2808 Matcher<const int&> m = Truly(ReferencesFooAndIsZero); in TEST()
2832 Matcher<int> eq5 = Eq(5); in TEST()
2846 const Matcher<int> is_zero = Eq(0); in TEST()
2851 const Matcher<const int&> ref_n = Ref(n); in TEST()
2867 const Matcher<int> is_even = PolymorphicIsEven(); in TEST()
2872 const Matcher<const double&> is_zero = Eq(0); in TEST()
2892 const Matcher<int> monomorphic = Le(0); in TEST()
3022 Matcher<const char*> starts_with_he = StartsWith("he"); in TEST()
3025 Matcher<const std::string&> ends_with_ok = EndsWith("ok"); in TEST()
3032 Matcher<int> is_greater_than_5 = Gt(5); in TEST()
3077 Matcher<RawType> m1 = matcher_maker(0.0); in TestMatches()
3083 Matcher<RawType> m2 = matcher_maker(close_to_positive_zero_); in TestMatches()
3086 Matcher<RawType> m3 = matcher_maker(1.0); in TestMatches()
3093 Matcher<RawType> m4 = matcher_maker(-infinity_); in TestMatches()
3096 Matcher<RawType> m5 = matcher_maker(infinity_); in TestMatches()
3105 Matcher<const RawType&> m6 = matcher_maker(0.0); in TestMatches()
3112 Matcher<RawType&> m7 = matcher_maker(0.0); in TestMatches()
3160 Matcher<RawType> m1 = matcher_maker(0.0, 0.0); in TestNearMatches()
3167 Matcher<RawType> m2 = matcher_maker(0.0, 1.0); in TestNearMatches()
3177 Matcher<RawType> m3 = matcher_maker(ParentType::infinity_, 0.0); in TestNearMatches()
3182 Matcher<RawType> m4 = matcher_maker(-ParentType::infinity_, 0.0); in TestNearMatches()
3188 Matcher<RawType> m5 = matcher_maker(ParentType::max_, ParentType::max_); in TestNearMatches()
3192 Matcher<RawType> m6 = matcher_maker(-ParentType::max_, ParentType::max_); in TestNearMatches()
3196 Matcher<RawType> m7 = matcher_maker(ParentType::max_, 0); in TestNearMatches()
3200 Matcher<RawType> m8 = matcher_maker(-ParentType::max_, 0); in TestNearMatches()
3206 Matcher<RawType> m9 = matcher_maker( in TestNearMatches()
3212 Matcher<const RawType&> m10 = matcher_maker(0.0, 1.0); in TestNearMatches()
3219 Matcher<RawType&> m11 = matcher_maker(0.0, 1.0); in TestNearMatches()
3246 Matcher<float> m = FloatEq(nan1_); in TEST_F()
3254 Matcher<float> m = NanSensitiveFloatEq(nan1_); in TEST_F()
3261 Matcher<float> m1 = FloatEq(2.0f); in TEST_F()
3265 Matcher<float> m2 = FloatEq(0.5f); in TEST_F()
3269 Matcher<float> m3 = FloatEq(nan1_); in TEST_F()
3275 Matcher<float> m1 = NanSensitiveFloatEq(2.0f); in TEST_F()
3279 Matcher<float> m2 = NanSensitiveFloatEq(0.5f); in TEST_F()
3283 Matcher<float> m3 = NanSensitiveFloatEq(nan1_); in TEST_F()
3301 Matcher<float> m1 = FloatNear(2.0f, 0.5f); in TEST_F()
3306 Matcher<float> m2 = FloatNear(0.5f, 0.5f); in TEST_F()
3311 Matcher<float> m3 = FloatNear(nan1_, 0.0); in TEST_F()
3317 Matcher<float> m1 = NanSensitiveFloatNear(2.0f, 0.5f); in TEST_F()
3322 Matcher<float> m2 = NanSensitiveFloatNear(0.5f, 0.5f); in TEST_F()
3327 Matcher<float> m3 = NanSensitiveFloatNear(nan1_, 0.1f); in TEST_F()
3334 Matcher<float> m = FloatNear(ParentType::nan1_, 0.1f); in TEST_F()
3342 Matcher<float> m = NanSensitiveFloatNear(nan1_, 0.1f); in TEST_F()
3361 Matcher<double> m = DoubleEq(nan1_); in TEST_F()
3369 Matcher<double> m = NanSensitiveDoubleEq(nan1_); in TEST_F()
3376 Matcher<double> m1 = DoubleEq(2.0); in TEST_F()
3380 Matcher<double> m2 = DoubleEq(0.5); in TEST_F()
3384 Matcher<double> m3 = DoubleEq(nan1_); in TEST_F()
3390 Matcher<double> m1 = NanSensitiveDoubleEq(2.0); in TEST_F()
3394 Matcher<double> m2 = NanSensitiveDoubleEq(0.5); in TEST_F()
3398 Matcher<double> m3 = NanSensitiveDoubleEq(nan1_); in TEST_F()
3416 Matcher<double> m1 = DoubleNear(2.0, 0.5); in TEST_F()
3421 Matcher<double> m2 = DoubleNear(0.5, 0.5); in TEST_F()
3426 Matcher<double> m3 = DoubleNear(nan1_, 0.0); in TEST_F()
3446 Matcher<double> m1 = NanSensitiveDoubleNear(2.0, 0.5); in TEST_F()
3451 Matcher<double> m2 = NanSensitiveDoubleNear(0.5, 0.5); in TEST_F()
3456 Matcher<double> m3 = NanSensitiveDoubleNear(nan1_, 0.1); in TEST_F()
3463 Matcher<double> m = DoubleNear(ParentType::nan1_, 0.1); in TEST_F()
3471 Matcher<double> m = NanSensitiveDoubleNear(nan1_, 0.1); in TEST_F()
3478 const Matcher<int*> m = Pointee(Ge(0)); in TEST()
3488 const Matcher<const double*> m = Pointee(Ge(0)); in TEST()
3498 const Matcher<int* const &> m = Pointee(Ge(0)); in TEST()
3508 const Matcher<double* &> m = Pointee(Ge(0)); in TEST()
3580 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_)); in TEST()
3589 Matcher<Base*> matcher = WhenDynamicCastTo<Derived*>(Pointee(_)); in TEST()
3597 Matcher<const Base&> ref_matcher = WhenDynamicCastTo<const OtherDerived&>(_); in TEST()
3638 const Matcher< ConstPropagatingPtr<int> > m = Pointee(Lt(5)); in TEST()
3650 const Matcher<const char*> m = Pointee(_); in TEST()
3656 const Matcher<int*> m = Pointee(5); in TEST()
3666 const Matcher<int*> m = Pointee(Gt(3)); in TEST()
3673 const Matcher<const std::string*> m = Pointee(StartsWith("Hi")); in TEST()
3677 const Matcher<long*> m2 = Pointee(GreaterThan(1)); // NOLINT in TEST()
3684 const Matcher<int*> m = Pointee(0); in TEST()
3735 Matcher<AStruct> m = Field(&AStruct::x, Ge(0)); in TEST()
3736 Matcher<AStruct> m_with_name = Field("x", &AStruct::x, Ge(0)); in TEST()
3750 Matcher<AStruct> m = Field(&AStruct::y, Ge(0.0)); in TEST()
3751 Matcher<AStruct> m_with_name = Field("y", &AStruct::y, Ge(0.0)); in TEST()
3764 Matcher<AStruct> m = Field(&AStruct::z, Truly(ValueIsPositive)); in TEST()
3773 Matcher<AStruct> m = Field(&AStruct::p, static_cast<const char*>(nullptr)); in TEST()
3789 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
3802 Matcher<const DerivedStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
3814 Matcher<const AStruct&> m = Field(&AStruct::x, in TEST()
3815 Matcher<signed char>(Ge(0))); in TEST()
3825 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
3832 Matcher<const AStruct&> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
3841 Matcher<const AStruct&> m = Field(&AStruct::x, Ge(0)); in TEST()
3854 Matcher<const AStruct&> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
3868 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
3878 Matcher<AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
3888 Matcher<AStruct* const&> m = Field(&AStruct::x, Ge(0)); in TEST()
3898 Matcher<const AStruct*> m = Field(&AStruct::x, _); in TEST()
3907 Matcher<DerivedStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
3917 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
3924 Matcher<const AStruct*> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
3933 Matcher<const AStruct*> m = Field(&AStruct::x, Ge(0)); in TEST()
3947 Matcher<const AStruct*> m = Field("field_name", &AStruct::x, Ge(0)); in TEST()
4002 Matcher<const AClass&> m = Property(&AClass::n, Ge(0)); in TEST()
4003 Matcher<const AClass&> m_with_name = Property("n", &AClass::n, Ge(0)); in TEST()
4018 Matcher<const AClass&> m = Property(&AClass::s, StartsWith("hi")); in TEST()
4019 Matcher<const AClass&> m_with_name = in TEST()
4035 Matcher<const AClass&> m = Property(&AClass::s_ref, StartsWith("hi")); in TEST()
4036 Matcher<const AClass&> m_with_name = in TEST()
4055 Matcher<const AClass&> m = Property(&AClass::x, Ref(x)); in TEST()
4065 Matcher<AClass> m = Property(&AClass::s, StartsWith("hi")); in TEST()
4080 Matcher<const DerivedClass&> m = Property(&AClass::n, Ge(0)); in TEST()
4094 Matcher<const AClass&> m = Property(&AClass::n, in TEST()
4095 Matcher<signed char>(Ge(0))); in TEST()
4097 Matcher<const AClass&> m_with_name = in TEST()
4098 Property("n", &AClass::n, Matcher<signed char>(Ge(0))); in TEST()
4110 Matcher<const AClass&> m = Property(&AClass::n, Ge(0)); in TEST()
4118 Matcher<const AClass&> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
4127 Matcher<const AClass&> m = Property(&AClass::n, Ge(0)); in TEST()
4140 Matcher<const AClass&> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
4154 Matcher<const AClass*> m = Property(&AClass::n, Ge(0)); in TEST()
4166 Matcher<AClass*> m = Property(&AClass::s, StartsWith("hi")); in TEST()
4179 Matcher<AClass* const&> m = Property(&AClass::s, StartsWith("hi")); in TEST()
4191 Matcher<const AClass*> m = Property(&AClass::x, _); in TEST()
4200 Matcher<const DerivedClass*> m = Property(&AClass::n, Ge(0)); in TEST()
4212 Matcher<const AClass*> m = Property(&AClass::n, Ge(0)); in TEST()
4220 Matcher<const AClass*> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
4229 Matcher<const AClass*> m = Property(&AClass::n, Ge(0)); in TEST()
4245 Matcher<const AClass*> m = Property("fancy_name", &AClass::n, Ge(0)); in TEST()
4269 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(std::string("foo"))); in TEST()
4277 Matcher<int> matcher = ResultOf(&IntToStringFunction, StrEq("foo")); in TEST()
4289 Matcher<int> matcher = ResultOf(&IntFunction, Ge(85)); in TEST()
4301 Matcher<int> matcher = ResultOf(&IntFunction, Eq(80)); in TEST()
4318 Matcher<double&> matcher = ResultOf(&DoubleFunction, Ref(x)); in TEST()
4326 Matcher<Uncopyable&> matcher2 = in TEST()
4340 Matcher<const std::string&> matcher = ResultOf(&StringFunction, Ref(s)); in TEST()
4350 Matcher<int> matcher = ResultOf(IntFunction, Matcher<signed char>(Ge(85))); in TEST()
4368 Matcher<int> matcher = ResultOf(IntToStringFunction, StrEq("foo")); in TEST()
4382 Matcher<int> matcher = ResultOf(Functor(), Eq(std::string("foo"))); in TEST()
4399 Matcher<int> matcher_int = ResultOf(PolymorphicFunctor(), Ge(5)); in TEST()
4404 Matcher<const char*> matcher_string = ResultOf(PolymorphicFunctor(), Ge(5)); in TEST()
4411 Matcher<int*> matcher = ResultOf(PolymorphicFunctor(), "good ptr"); in TEST()
4419 Matcher<int> matcher = ResultOf( in TEST()
4429 Matcher<std::unique_ptr<int>> matcher = ResultOf( in TEST()
4448 Matcher<const int&> matcher2 = ResultOf(ReferencingFunction, Eq(&n)); in TEST()
4452 Matcher<const int&> matcher3 = ResultOf(ReferencingFunctor(), Eq(&n)); in TEST()
4491 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3)); in TEST()
4498 const Matcher<int> m = AllOf(DivisibleBy(4), DivisibleBy(3)); in TEST()
4505 const Matcher<int> m = AllOf(Ge(1), DivisibleBy(3)); in TEST()
4512 const Matcher<int> m = AllOf(DivisibleBy(2), DivisibleBy(3)); in TEST()
4517 const Matcher<int> m = AllOf(Ge(2), Le(3)); in TEST()
4522 const Matcher<int> m = GreaterThan(5); in TEST()
4551 const Matcher<const NotCopyable&> m = Eq(ByRef(const_value1)); in TEST()
4560 const Matcher<NotCopyable&> m = Ge(ByRef(value2)); in TEST()
4586 Matcher<vector<int> > m = IsEmpty(); in TEST()
4592 Matcher<vector<int> > m = IsEmpty(); in TEST()
4667 Matcher<const vector<int>&> m = SizeIs(1); in TEST()
4691 Matcher<vector<int> > m = SizeIs(2); in TEST()
4697 Matcher<vector<int> > m1 = SizeIs(2); in TEST()
4698 Matcher<vector<int> > m2 = SizeIs(Lt(2u)); in TEST()
4699 Matcher<vector<int> > m3 = SizeIs(AnyOf(0, 3)); in TEST()
4700 Matcher<vector<int> > m4 = SizeIs(GreaterThan(1)); in TEST()
4736 const Matcher<TypeParam> m = ContainerEq(my_set); in TYPED_TEST()
4747 const Matcher<TypeParam> m = ContainerEq(my_set); in TYPED_TEST()
4759 const Matcher<const TypeParam&> m = ContainerEq(my_set); in TYPED_TEST()
4770 const Matcher<TypeParam> m = ContainerEq(my_set); in TYPED_TEST()
4783 const Matcher<const TypeParam&> m = ContainerEq(my_set); in TYPED_TEST()
4797 const Matcher<vector<int> > m = ContainerEq(my_set); in TEST()
4810 const Matcher<const list<size_t>&> m = ContainerEq(my_set); in TEST()
4822 const Matcher<const list<size_t> > m = ContainerEq(my_set); in TEST()
4836 const Matcher<vector<int> > m = ContainerEq(my_set); in TEST()
4854 const Matcher<const map<int, std::string>&> m = ContainerEq(my_map); in TEST()
4910 const Matcher<const std::string(&)[2][3]> m = ContainerEq(a2); in TEST()
4956 const Matcher<vector<int> > m = WhenSortedBy(less<int>(), ElementsAre(1, 2)); in TEST()
5041 Matcher<const std::vector<int>&> vector_match = ElementsAre(1, 2); in TEST()
5043 Matcher<const std::vector<int>&> not_vector_match = ElementsAre(2, 1); in TEST()
5157 Matcher<vector<int> > m = BeginEndDistanceIs(2); in TEST()
5170 Matcher<vector<int> > m1 = BeginEndDistanceIs(2); in TEST()
5171 Matcher<vector<int> > m2 = BeginEndDistanceIs(Lt(2)); in TEST()
5172 Matcher<vector<int> > m3 = BeginEndDistanceIs(AnyOf(0, 3)); in TEST()
5173 Matcher<vector<int> > m4 = BeginEndDistanceIs(GreaterThan(1)); in TEST()
5211 Matcher<const std::vector<int>&> vector_match = ElementsAre(1, 2, 3, 4, 5); in TEST()
5608 EXPECT_THAT(a, UnorderedElementsAreArray<Matcher<int> >( in TEST()
5610 EXPECT_THAT(a, Not(UnorderedElementsAreArray<Matcher<int> >( in TEST()
5648 std::vector<Matcher<int> > mv; in TEST_F()
5683 std::vector<Matcher<int> > mv; in TEST_F()
5699 std::vector<Matcher<int> > mv; in TEST_F()
6116 std::make_tuple(Matcher<char>(Eq('a')), GreaterThan(5)), in TEST()
6122 std::make_tuple(GreaterThan(5), Matcher<char>(Eq('a'))), in TEST()
6132 std::make_tuple(GreaterThan(5), Matcher<char>(Eq('a'))), in TEST()
6145 Matcher<set<int> > m = Each(2); in TEST()
6148 Matcher<const int(&)[1]> n = Each(1); // NOLINT in TEST()
6168 Matcher<vector<int> > m = Each(1); in TEST()
6171 Matcher<vector<int> > m2 = Not(m); in TEST()
6265 const Matcher<const vector<int>&> m = Pointwise(IsHalfOf(), rhs); in TEST()
6281 const Matcher<const int (&)[2]> m = Pointwise(IsHalfOf(), rhs); in TEST()
6357 const Matcher<std::tuple<const double&, const int&>> m1 = IsHalfOf(); in TEST()
6363 const Matcher<std::tuple<double, int>> m2 = IsHalfOf(); in TEST()
6384 const Matcher<const vector<int>&> m = UnorderedPointwise(IsHalfOf(), rhs); in TEST()
6411 const Matcher<const int (&)[2]> m = UnorderedPointwise(IsHalfOf(), rhs); in TEST()
6482 const Matcher<std::tuple<const double&, const int&>> m1 = IsHalfOf(); in TEST()
6487 const Matcher<std::tuple<double, int>> m2 = IsHalfOf(); in TEST()
6516 const Matcher<SampleOptional<int>> m = Optional(Eq(1)); in TEST()
6521 const Matcher<SampleOptional<int>> m = Optional(Eq(1)); in TEST()
6527 const Matcher<SampleOptional<int>> m1 = Optional(1); in TEST()
6528 const Matcher<SampleOptional<int>> m2 = Optional(Eq(2)); in TEST()
6529 const Matcher<SampleOptional<int>> m3 = Optional(Lt(3)); in TEST()
6537 const Matcher<SampleOptional<int>> m = Optional(1); in TEST()
6543 Matcher<SampleOptional<std::unique_ptr<int>>> m = Optional(Eq(nullptr)); in TEST()
6572 const Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6578 const Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6588 Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6596 Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6604 Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6633 Matcher<SampleAnyType> m = AnyWith<int>(Eq(1)); in TEST()
6638 Matcher<SampleAnyType> m = AnyWith<std::string>(Eq("fail")); in TEST()
6663 const Matcher<const SampleAnyType&> m = AnyWith<int>(Eq(1)); in TEST()
6669 const Matcher<const SampleAnyType&> m = AnyWith<int>(Eq(1)); in TEST()
6741 const Matcher<Tuple3> m = Args<1, 2>(Lt()); in TEST()
6748 const Matcher<const Tuple3&> m = Args<0, 1>(Lt()); in TEST()
6768 const Matcher<std::tuple<int, bool, char> > m = Args<2, 0>(Lt()); in TEST()
6775 const Matcher<const std::tuple<int, bool, char, int>&> m = in TEST()
6783 const Matcher<std::tuple<int, char> > m = Args<1, 0>(Gt()); in TEST()
6790 const Matcher<std::tuple<bool, int, int> > m = Args<1, 2>(Eq()); in TEST()
6813 Matcher<std::tuple<char, int> > LessThan() { in LessThan()
6818 const Matcher<std::tuple<char, int, int> > m = Args<0, 2>(LessThan()); in TEST()
6870 PredicateFormatterFromMatcher<Matcher<Behavior>> predicate_formatter( in RunPredicateFormatter()