Lines Matching full:m2
220 Matcher<const std::string&> m2 = "hi"; in TEST() local
221 EXPECT_TRUE(m2.Matches("hi")); in TEST()
222 EXPECT_FALSE(m2.Matches("hello")); in TEST()
232 Matcher<const std::string&> m2 = std::string("hi"); in TEST() local
233 EXPECT_TRUE(m2.Matches("hi")); in TEST()
234 EXPECT_FALSE(m2.Matches("hello")); in TEST()
245 Matcher<const internal::StringView&> m2 = "cats"; in TEST() local
246 EXPECT_TRUE(m2.Matches("cats")); in TEST()
247 EXPECT_FALSE(m2.Matches("dogs")); in TEST()
257 Matcher<const internal::StringView&> m2 = std::string("cats"); in TEST() local
258 EXPECT_TRUE(m2.Matches("cats")); in TEST()
259 EXPECT_FALSE(m2.Matches("dogs")); in TEST()
269 Matcher<const internal::StringView&> m2 = internal::StringView("cats"); in TEST() local
270 EXPECT_TRUE(m2.Matches("cats")); in TEST()
271 EXPECT_FALSE(m2.Matches("dogs")); in TEST()
284 Matcher<const std::string&> m2 = Eq(std::ref(value)); in TEST() local
285 EXPECT_TRUE(m2.Matches("cats")); in TEST()
286 EXPECT_FALSE(m2.Matches("dogs")); in TEST()
331 Matcher<double> m2 = ReferencesBarOrIsZero(); in TEST() local
332 EXPECT_TRUE(m2.Matches(0.0)); in TEST()
333 EXPECT_FALSE(m2.Matches(0.1)); in TEST()
334 EXPECT_EQ("g_bar or zero", Describe(m2)); in TEST()
375 const Matcher<char> m2 = PolymorphicIsEven(); in TEST() local
376 EXPECT_TRUE(m2.Matches('\x42')); in TEST()
377 EXPECT_FALSE(m2.Matches('\x43')); in TEST()
378 EXPECT_EQ("is even", Describe(m2)); in TEST()
380 const Matcher<char> not_m2 = Not(m2); in TEST()
383 EXPECT_EQ("% 2 == 0", Explain(m2, '\x42')); in TEST()
420 Matcher<int> m2 = MatcherCast<int>(m1); in TEST() local
421 EXPECT_TRUE(m2.Matches(2)); in TEST()
422 EXPECT_FALSE(m2.Matches(3)); in TEST()
436 Matcher<int> m2 = MatcherCast<int>(m1); in TEST() local
437 EXPECT_TRUE(m2.Matches(0)); in TEST()
438 EXPECT_FALSE(m2.Matches(1)); in TEST()
444 Matcher<int> m2 = MatcherCast<int>(m1); in TEST() local
445 EXPECT_TRUE(m2.Matches(0)); in TEST()
446 EXPECT_FALSE(m2.Matches(1)); in TEST()
452 Matcher<const int&> m2 = MatcherCast<const int&>(m1); in TEST() local
453 EXPECT_TRUE(m2.Matches(0)); in TEST()
454 EXPECT_FALSE(m2.Matches(1)); in TEST()
460 Matcher<int&> m2 = MatcherCast<int&>(m1); in TEST() local
462 EXPECT_TRUE(m2.Matches(n)); in TEST()
464 EXPECT_FALSE(m2.Matches(n)); in TEST()
470 Matcher<int> m2 = MatcherCast<int>(m1); in TEST() local
471 EXPECT_TRUE(m2.Matches(0)); in TEST()
472 EXPECT_FALSE(m2.Matches(1)); in TEST()
513 Matcher<NonImplicitlyConstructibleTypeWithOperatorEq> m2 = in TEST() local
515 EXPECT_FALSE(m2.Matches(NonImplicitlyConstructibleTypeWithOperatorEq())); in TEST()
612 Matcher<char> m2; in TEST_P() local
614 m2 = SafeMatcherCast<char>(GtestGreaterThan(32)); in TEST_P()
616 m2 = SafeMatcherCast<char>(Gt(32)); in TEST_P()
618 EXPECT_TRUE(m2.Matches('A')); in TEST_P()
619 EXPECT_FALSE(m2.Matches('\n')); in TEST_P()
627 Matcher<float> m2 = SafeMatcherCast<float>(m1); in TEST() local
628 EXPECT_TRUE(m2.Matches(1.0f)); in TEST()
629 EXPECT_FALSE(m2.Matches(2.0f)); in TEST()
641 Matcher<Derived*> m2 = SafeMatcherCast<Derived*>(m1); in TEST() local
642 EXPECT_TRUE(m2.Matches(&d)); in TEST()
643 EXPECT_FALSE(m2.Matches(&d2)); in TEST()
655 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST() local
657 EXPECT_TRUE(m2.Matches(n)); in TEST()
658 EXPECT_FALSE(m2.Matches(n1)); in TEST()
664 Matcher<const std::unique_ptr<int>&> m2 = in TEST() local
666 EXPECT_TRUE(m2.Matches(std::unique_ptr<int>())); in TEST()
667 EXPECT_FALSE(m2.Matches(std::unique_ptr<int>(new int))); in TEST()
673 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST() local
675 EXPECT_TRUE(m2.Matches(n)); in TEST()
677 EXPECT_FALSE(m2.Matches(n)); in TEST()
683 Matcher<int> m2 = SafeMatcherCast<int>(m1); in TEST() local
684 EXPECT_TRUE(m2.Matches(0)); in TEST()
685 EXPECT_FALSE(m2.Matches(1)); in TEST()
739 Matcher<int&> m2 = A<int&>(); in TEST() local
740 EXPECT_TRUE(m2.Matches(a)); in TEST()
741 EXPECT_TRUE(m2.Matches(b)); in TEST()
766 Matcher<int&> m2 = An<int&>(); in TEST() local
767 EXPECT_TRUE(m2.Matches(a)); in TEST()
768 EXPECT_TRUE(m2.Matches(b)); in TEST()
785 Matcher<const bool&> m2 = _; in TEST() local
786 EXPECT_TRUE(m2.Matches(a)); in TEST()
787 EXPECT_TRUE(m2.Matches(b)); in TEST()
833 Matcher<char> m2 = Eq(1); in TEST() local
834 EXPECT_TRUE(m2.Matches('\1')); in TEST()
835 EXPECT_FALSE(m2.Matches('a')); in TEST()
844 Matcher<int> m2 = TypedEq<int>(6); in TEST() local
845 EXPECT_TRUE(m2.Matches(6)); in TEST()
846 EXPECT_FALSE(m2.Matches(7)); in TEST()
1021 Matcher<const char*> m2 = IsNull(); in TEST() local
1023 EXPECT_TRUE(m2.Matches(p2)); in TEST()
1024 EXPECT_FALSE(m2.Matches("hi")); in TEST()
1054 Matcher<const char*> m2 = NotNull(); in TEST() local
1056 EXPECT_FALSE(m2.Matches(p2)); in TEST()
1057 EXPECT_TRUE(m2.Matches("hi")); in TEST()
1175 Matcher<const std::string&> m2 = StrEq("Hello"); in TEST() local
1176 EXPECT_TRUE(m2.Matches("Hello")); in TEST()
1177 EXPECT_FALSE(m2.Matches("Hi")); in TEST()
1200 Matcher<std::string> m2 = StrEq(str); in TEST() local
1201 EXPECT_EQ("is equal to \"012\\04500800\"", Describe(m2)); in TEST()
1213 Matcher<std::string> m2 = StrNe(std::string("Hello")); in TEST() local
1214 EXPECT_TRUE(m2.Matches("hello")); in TEST()
1215 EXPECT_FALSE(m2.Matches("Hello")); in TEST()
1237 Matcher<const std::string&> m2 = StrCaseEq("Hello"); in TEST() local
1238 EXPECT_TRUE(m2.Matches("hello")); in TEST()
1239 EXPECT_FALSE(m2.Matches("Hi")); in TEST()
1263 Matcher<const std::string&> m2 = StrCaseEq(str1); in TEST() local
1265 EXPECT_FALSE(m2.Matches(str2)); in TEST()
1288 Matcher<std::string> m2 = StrCaseNe(std::string("Hello")); in TEST() local
1289 EXPECT_TRUE(m2.Matches("")); in TEST()
1290 EXPECT_FALSE(m2.Matches("Hello")); in TEST()
1313 const Matcher<const std::string&> m2 = HasSubstr("foo"); in TEST() local
1314 EXPECT_TRUE(m2.Matches(std::string("I love food."))); in TEST()
1315 EXPECT_FALSE(m2.Matches(std::string("tofo"))); in TEST()
1329 const Matcher<const char*> m2 = HasSubstr("foo"); in TEST() local
1330 EXPECT_TRUE(m2.Matches("I love food.")); in TEST()
1331 EXPECT_FALSE(m2.Matches("tofo")); in TEST()
1332 EXPECT_FALSE(m2.Matches(nullptr)); in TEST()
1349 const Matcher<const internal::StringView&> m2 = HasSubstr("foo"); in TEST() local
1350 EXPECT_TRUE(m2.Matches(internal::StringView("I love food."))); in TEST()
1351 EXPECT_FALSE(m2.Matches(internal::StringView("tofo"))); in TEST()
1352 EXPECT_FALSE(m2.Matches(internal::StringView())); in TEST()
1461 Matcher<const pair<const char*, int>> m2 = Pair("foo", 42); in TEST() local
1479 Matcher<const pair<int, int>&> m2 = Not(Pair(Not(13), 42)); in TEST() local
1483 DescribeNegation(m2)); in TEST()
1751 const Matcher<const std::string&> m2 = StartsWith("Hi"); in TEST() local
1752 EXPECT_TRUE(m2.Matches("Hi")); in TEST()
1753 EXPECT_TRUE(m2.Matches("Hi Hi!")); in TEST()
1754 EXPECT_TRUE(m2.Matches("High")); in TEST()
1755 EXPECT_FALSE(m2.Matches("H")); in TEST()
1756 EXPECT_FALSE(m2.Matches(" Hi")); in TEST()
1789 const Matcher<const std::string&> m2 = EndsWith(std::string("Hi")); in TEST() local
1790 EXPECT_TRUE(m2.Matches("Hi")); in TEST()
1791 EXPECT_TRUE(m2.Matches("Wow Hi Hi")); in TEST()
1792 EXPECT_TRUE(m2.Matches("Super Hi")); in TEST()
1793 EXPECT_FALSE(m2.Matches("i")); in TEST()
1794 EXPECT_FALSE(m2.Matches("Hi ")); in TEST()
1820 const Matcher<const std::string&> m2 = WhenBase64Unescaped(EndsWith("!")); in TEST() local
1821 EXPECT_FALSE(m2.Matches("invalid base64")); in TEST()
1822 EXPECT_FALSE(m2.Matches("aGVsbG8gd29ybGQ=")); // hello world in TEST()
1823 EXPECT_TRUE(m2.Matches("aGVsbG8gd29ybGQh")); // hello world! in TEST()
1824 EXPECT_TRUE(m2.Matches("+/-_IQ")); // \xfb\xff\xbf! in TEST()
1849 const Matcher<const std::string&> m2 = MatchesRegex(new RE("a.*z")); in TEST() local
1850 EXPECT_TRUE(m2.Matches("azbz")); in TEST()
1851 EXPECT_FALSE(m2.Matches("az1")); in TEST()
1852 EXPECT_FALSE(m2.Matches("1az")); in TEST()
1871 Matcher<const char*> m2 = MatchesRegex(new RE("a.*")); in TEST() local
1872 EXPECT_EQ("matches regular expression \"a.*\"", Describe(m2)); in TEST()
1888 const Matcher<const std::string&> m2 = ContainsRegex(new RE("a.*z")); in TEST() local
1889 EXPECT_TRUE(m2.Matches("azbz")); in TEST()
1890 EXPECT_TRUE(m2.Matches("az1")); in TEST()
1891 EXPECT_FALSE(m2.Matches("1a")); in TEST()
1910 Matcher<const char*> m2 = ContainsRegex(new RE("a.*")); in TEST() local
1911 EXPECT_EQ("contains regular expression \"a.*\"", Describe(m2)); in TEST()
1927 Matcher<const ::std::wstring&> m2 = StrEq(L"Hello"); in TEST() local
1928 EXPECT_TRUE(m2.Matches(L"Hello")); in TEST()
1929 EXPECT_FALSE(m2.Matches(L"Hi")); in TEST()
1949 Matcher<::std::wstring> m2 = StrEq(L"\xD3\x576\x8D3\xC74D"); in TEST() local
1950 EXPECT_EQ("is equal to L\"\\xD3\\x576\\x8D3\\xC74D\"", Describe(m2)); in TEST()
1967 Matcher<::std::wstring> m2 = StrNe(::std::wstring(L"Hello")); in TEST() local
1968 EXPECT_TRUE(m2.Matches(L"hello")); in TEST()
1969 EXPECT_FALSE(m2.Matches(L"Hello")); in TEST()
1984 Matcher<const ::std::wstring&> m2 = StrCaseEq(L"Hello"); in TEST() local
1985 EXPECT_TRUE(m2.Matches(L"hello")); in TEST()
1986 EXPECT_FALSE(m2.Matches(L"Hi")); in TEST()
2001 Matcher<const ::std::wstring&> m2 = StrCaseEq(str1); in TEST() local
2003 EXPECT_FALSE(m2.Matches(str2)); in TEST()
2026 Matcher<::std::wstring> m2 = StrCaseNe(::std::wstring(L"Hello")); in TEST() local
2027 EXPECT_TRUE(m2.Matches(L"")); in TEST()
2028 EXPECT_FALSE(m2.Matches(L"Hello")); in TEST()
2042 const Matcher<const ::std::wstring&> m2 = HasSubstr(L"foo"); in TEST() local
2043 EXPECT_TRUE(m2.Matches(::std::wstring(L"I love food."))); in TEST()
2044 EXPECT_FALSE(m2.Matches(::std::wstring(L"tofo"))); in TEST()
2054 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo"); in TEST() local
2055 EXPECT_TRUE(m2.Matches(L"I love food.")); in TEST()
2056 EXPECT_FALSE(m2.Matches(L"tofo")); in TEST()
2057 EXPECT_FALSE(m2.Matches(nullptr)); in TEST()
2074 const Matcher<const ::std::wstring&> m2 = StartsWith(L"Hi"); in TEST() local
2075 EXPECT_TRUE(m2.Matches(L"Hi")); in TEST()
2076 EXPECT_TRUE(m2.Matches(L"Hi Hi!")); in TEST()
2077 EXPECT_TRUE(m2.Matches(L"High")); in TEST()
2078 EXPECT_FALSE(m2.Matches(L"H")); in TEST()
2079 EXPECT_FALSE(m2.Matches(L" Hi")); in TEST()
2095 const Matcher<const ::std::wstring&> m2 = EndsWith(::std::wstring(L"Hi")); in TEST() local
2096 EXPECT_TRUE(m2.Matches(L"Hi")); in TEST()
2097 EXPECT_TRUE(m2.Matches(L"Wow Hi Hi")); in TEST()
2098 EXPECT_TRUE(m2.Matches(L"Super Hi")); in TEST()
2099 EXPECT_FALSE(m2.Matches(L"i")); in TEST()
2100 EXPECT_FALSE(m2.Matches(L"Hi ")); in TEST()
2142 ConstructNoArgMatcher m2; in TEST() local
2143 (void)m2; in TEST()