Lines Matching full:m1

153   Matcher<int> m1 = 5;  in TEST()  local
154 EXPECT_TRUE(m1.Matches(5)); in TEST()
155 EXPECT_FALSE(m1.Matches(6)); in TEST()
160 Matcher<int*> m1 = nullptr; in TEST() local
161 EXPECT_TRUE(m1.Matches(nullptr)); in TEST()
163 EXPECT_FALSE(m1.Matches(&n)); in TEST()
174 Matcher<int> m1 = Undefined::kInt; in TEST() local
175 EXPECT_TRUE(m1.Matches(1)); in TEST()
176 EXPECT_FALSE(m1.Matches(2)); in TEST()
185 Matcher<bool> m1 = Eq(false); in TEST() local
186 EXPECT_TRUE(m1.Matches(false)); in TEST()
187 EXPECT_FALSE(m1.Matches(true)); in TEST()
190 m1 = Eq(true); in TEST()
191 EXPECT_TRUE(m1.Matches(true)); in TEST()
192 EXPECT_FALSE(m1.Matches(false)); in TEST()
216 Matcher<std::string> m1 = "hi"; in TEST() local
217 EXPECT_TRUE(m1.Matches("hi")); in TEST()
218 EXPECT_FALSE(m1.Matches("hello")); in TEST()
228 Matcher<std::string> m1 = std::string("hi"); in TEST() local
229 EXPECT_TRUE(m1.Matches("hi")); in TEST()
230 EXPECT_FALSE(m1.Matches("hello")); in TEST()
241 Matcher<internal::StringView> m1 = "cats"; in TEST() local
242 EXPECT_TRUE(m1.Matches("cats")); in TEST()
243 EXPECT_FALSE(m1.Matches("dogs")); in TEST()
253 Matcher<internal::StringView> m1 = std::string("cats"); in TEST() local
254 EXPECT_TRUE(m1.Matches("cats")); in TEST()
255 EXPECT_FALSE(m1.Matches("dogs")); in TEST()
265 Matcher<internal::StringView> m1 = internal::StringView("cats"); in TEST() local
266 EXPECT_TRUE(m1.Matches("cats")); in TEST()
267 EXPECT_FALSE(m1.Matches("dogs")); in TEST()
280 Matcher<std::string> m1 = Eq(std::ref(value)); in TEST() local
281 EXPECT_TRUE(m1.Matches("cats")); in TEST()
282 EXPECT_FALSE(m1.Matches("dogs")); in TEST()
323 Matcher<const int&> m1 = ReferencesBarOrIsZero(); in TEST() local
324 EXPECT_TRUE(m1.Matches(0)); in TEST()
326 EXPECT_TRUE(m1.Matches(g_bar)); in TEST()
327 EXPECT_FALSE(m1.Matches(1)); in TEST()
328 EXPECT_EQ("g_bar or zero", Describe(m1)); in TEST()
364 const Matcher<int> m1 = PolymorphicIsEven(); in TEST() local
365 EXPECT_TRUE(m1.Matches(42)); in TEST()
366 EXPECT_FALSE(m1.Matches(43)); in TEST()
367 EXPECT_EQ("is even", Describe(m1)); in TEST()
369 const Matcher<int> not_m1 = Not(m1); in TEST()
372 EXPECT_EQ("% 2 == 0", Explain(m1, 42)); in TEST()
419 Matcher<double> m1 = Eq(2.0); in TEST() local
420 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
435 Matcher<const int&> m1 = Eq(0); in TEST() local
436 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
443 Matcher<int&> m1 = Eq(0); in TEST() local
444 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
451 Matcher<int> m1 = Eq(0); in TEST() local
452 Matcher<const int&> m2 = MatcherCast<const int&>(m1); in TEST()
459 Matcher<int> m1 = Eq(0); in TEST() local
460 Matcher<int&> m2 = MatcherCast<int&>(m1); in TEST()
469 Matcher<int> m1 = Eq(0); in TEST() local
470 Matcher<int> m2 = MatcherCast<int>(m1); in TEST()
509 Matcher<NonImplicitlyConstructibleTypeWithOperatorEq> m1 = in TEST() local
511 EXPECT_TRUE(m1.Matches(NonImplicitlyConstructibleTypeWithOperatorEq())); in TEST()
626 Matcher<double> m1 = DoubleEq(1.0); in TEST() local
627 Matcher<float> m2 = SafeMatcherCast<float>(m1); in TEST()
640 Matcher<Base*> m1 = Eq(&d); in TEST() local
641 Matcher<Derived*> m2 = SafeMatcherCast<Derived*>(m1); in TEST()
654 Matcher<const int&> m1 = Ref(n); in TEST() local
655 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()
663 Matcher<std::unique_ptr<int>> m1 = IsNull(); in TEST() local
665 SafeMatcherCast<const std::unique_ptr<int>&>(m1); in TEST()
672 Matcher<int> m1 = Eq(0); in TEST() local
673 Matcher<int&> m2 = SafeMatcherCast<int&>(m1); in TEST()
682 Matcher<int> m1 = Eq(0); in TEST() local
683 Matcher<int> m2 = SafeMatcherCast<int>(m1); in TEST()
732 Matcher<double> m1 = A<double>(); in TEST() local
733 EXPECT_TRUE(m1.Matches(91.43)); in TEST()
734 EXPECT_TRUE(m1.Matches(-15.32)); in TEST()
759 Matcher<int> m1 = An<int>(); in TEST() local
760 EXPECT_TRUE(m1.Matches(9143)); in TEST()
761 EXPECT_TRUE(m1.Matches(-1532)); in TEST()
778 Matcher<int> m1 = _; in TEST() local
779 EXPECT_TRUE(m1.Matches(123)); in TEST()
780 EXPECT_TRUE(m1.Matches(-242)); in TEST()
802 Matcher<const char*> m1 = Eq(a1); in TEST() local
803 EXPECT_TRUE(m1.Matches(a1)); in TEST()
804 EXPECT_FALSE(m1.Matches(a2)); in TEST()
829 Matcher<int> m1 = Eq(1); in TEST() local
830 EXPECT_TRUE(m1.Matches(1)); in TEST()
831 EXPECT_FALSE(m1.Matches(2)); in TEST()
840 Matcher<char> m1 = TypedEq<char>('a'); in TEST() local
841 EXPECT_TRUE(m1.Matches('a')); in TEST()
842 EXPECT_FALSE(m1.Matches('b')); in TEST()
875 Matcher<int> m1 = Ge(0); in TEST() local
876 EXPECT_TRUE(m1.Matches(1)); in TEST()
877 EXPECT_TRUE(m1.Matches(0)); in TEST()
878 EXPECT_FALSE(m1.Matches(-1)); in TEST()
889 Matcher<double> m1 = Gt(0); in TEST() local
890 EXPECT_TRUE(m1.Matches(1.0)); in TEST()
891 EXPECT_FALSE(m1.Matches(0.0)); in TEST()
892 EXPECT_FALSE(m1.Matches(-1.0)); in TEST()
903 Matcher<char> m1 = Le('b'); in TEST() local
904 EXPECT_TRUE(m1.Matches('a')); in TEST()
905 EXPECT_TRUE(m1.Matches('b')); in TEST()
906 EXPECT_FALSE(m1.Matches('c')); in TEST()
917 Matcher<const std::string&> m1 = Lt("Hello"); in TEST() local
918 EXPECT_TRUE(m1.Matches("Abc")); in TEST()
919 EXPECT_FALSE(m1.Matches("Hello")); in TEST()
920 EXPECT_FALSE(m1.Matches("Hello, world!")); in TEST()
931 Matcher<int> m1 = Ne(0); in TEST() local
932 EXPECT_TRUE(m1.Matches(1)); in TEST()
933 EXPECT_TRUE(m1.Matches(-1)); in TEST()
934 EXPECT_FALSE(m1.Matches(0)); in TEST()
1015 Matcher<int*> m1 = IsNull(); in TEST() local
1018 EXPECT_TRUE(m1.Matches(p1)); in TEST()
1019 EXPECT_FALSE(m1.Matches(&n)); in TEST()
1048 Matcher<int*> m1 = NotNull(); in TEST() local
1051 EXPECT_FALSE(m1.Matches(p1)); in TEST()
1052 EXPECT_TRUE(m1.Matches(&n)); in TEST()
1127 Matcher<const Base&> m1 = Ref(base); in TEST() local
1128 EXPECT_TRUE(m1.Matches(base)); in TEST()
1129 EXPECT_FALSE(m1.Matches(base2)); in TEST()
1130 EXPECT_FALSE(m1.Matches(derived)); in TEST()
1132 m1 = Ref(derived); in TEST()
1133 EXPECT_TRUE(m1.Matches(derived)); in TEST()
1134 EXPECT_FALSE(m1.Matches(base)); in TEST()
1135 EXPECT_FALSE(m1.Matches(base2)); in TEST()
1258 Matcher<const std::string&> m1 = StrCaseEq(str1); in TEST() local
1259 EXPECT_TRUE(m1.Matches(str2)); in TEST()
1309 const Matcher<std::string> m1 = HasSubstr("foo"); in TEST() local
1310 EXPECT_TRUE(m1.Matches(std::string("I love food."))); in TEST()
1311 EXPECT_FALSE(m1.Matches(std::string("tofo"))); in TEST()
1324 const Matcher<char*> m1 = HasSubstr("foo"); in TEST() local
1325 EXPECT_TRUE(m1.Matches(const_cast<char*>("I love food."))); in TEST()
1326 EXPECT_FALSE(m1.Matches(const_cast<char*>("tofo"))); in TEST()
1327 EXPECT_FALSE(m1.Matches(nullptr)); in TEST()
1343 const Matcher<internal::StringView> m1 = in TEST() local
1345 EXPECT_TRUE(m1.Matches(internal::StringView("I love food."))); in TEST()
1346 EXPECT_FALSE(m1.Matches(internal::StringView("tofo"))); in TEST()
1347 EXPECT_FALSE(m1.Matches(internal::StringView())); in TEST()
1460 Matcher<const pair<const char*, int>&> m1 = Pair("foo", 42); in TEST() local
1469 Matcher<const pair<std::string, int>&> m1 = Pair("foo", 42); in TEST() local
1473 Describe(m1)); in TEST()
1477 DescribeNegation(m1)); in TEST()
1590 Matcher<const pair<std::string, int>&> m1 = FieldsAre("foo", 42); in TEST() local
1594 Describe(m1)); in TEST()
1598 DescribeNegation(m1)); in TEST()
1746 const Matcher<const char*> m1 = StartsWith(std::string("")); in TEST() local
1747 EXPECT_TRUE(m1.Matches("Hi")); in TEST()
1748 EXPECT_TRUE(m1.Matches("")); in TEST()
1749 EXPECT_FALSE(m1.Matches(nullptr)); in TEST()
1784 const Matcher<const char*> m1 = EndsWith(""); in TEST() local
1785 EXPECT_TRUE(m1.Matches("Hi")); in TEST()
1786 EXPECT_TRUE(m1.Matches("")); in TEST()
1787 EXPECT_FALSE(m1.Matches(nullptr)); in TEST()
1814 const Matcher<const char*> m1 = WhenBase64Unescaped(EndsWith("!")); in TEST() local
1815 EXPECT_FALSE(m1.Matches("invalid base64")); in TEST()
1816 EXPECT_FALSE(m1.Matches("aGVsbG8gd29ybGQ=")); // hello world in TEST()
1817 EXPECT_TRUE(m1.Matches("aGVsbG8gd29ybGQh")); // hello world! in TEST()
1818 EXPECT_TRUE(m1.Matches("+/-_IQ")); // \xfb\xff\xbf! in TEST()
1844 const Matcher<const char*> m1 = MatchesRegex("a.*z"); in TEST() local
1845 EXPECT_TRUE(m1.Matches("az")); in TEST()
1846 EXPECT_TRUE(m1.Matches("abcz")); in TEST()
1847 EXPECT_FALSE(m1.Matches(nullptr)); in TEST()
1868 Matcher<const std::string> m1 = MatchesRegex(std::string("Hi.*")); in TEST() local
1869 EXPECT_EQ("matches regular expression \"Hi.*\"", Describe(m1)); in TEST()
1883 const Matcher<const char*> m1 = ContainsRegex(std::string("a.*z")); in TEST() local
1884 EXPECT_TRUE(m1.Matches("az")); in TEST()
1885 EXPECT_TRUE(m1.Matches("0abcz1")); in TEST()
1886 EXPECT_FALSE(m1.Matches(nullptr)); in TEST()
1907 Matcher<const std::string> m1 = ContainsRegex("Hi.*"); in TEST() local
1908 EXPECT_EQ("contains regular expression \"Hi.*\"", Describe(m1)); in TEST()
1996 Matcher<const ::std::wstring&> m1 = StrCaseEq(str1); in TEST() local
1997 EXPECT_TRUE(m1.Matches(str2)); in TEST()
2038 const Matcher<::std::wstring> m1 = HasSubstr(L"foo"); in TEST() local
2039 EXPECT_TRUE(m1.Matches(::std::wstring(L"I love food."))); in TEST()
2040 EXPECT_FALSE(m1.Matches(::std::wstring(L"tofo"))); in TEST()
2049 const Matcher<wchar_t*> m1 = HasSubstr(L"foo"); in TEST() local
2050 EXPECT_TRUE(m1.Matches(const_cast<wchar_t*>(L"I love food."))); in TEST()
2051 EXPECT_FALSE(m1.Matches(const_cast<wchar_t*>(L"tofo"))); in TEST()
2052 EXPECT_FALSE(m1.Matches(nullptr)); in TEST()
2069 const Matcher<const wchar_t*> m1 = StartsWith(::std::wstring(L"")); in TEST() local
2070 EXPECT_TRUE(m1.Matches(L"Hi")); in TEST()
2071 EXPECT_TRUE(m1.Matches(L"")); in TEST()
2072 EXPECT_FALSE(m1.Matches(nullptr)); in TEST()
2090 const Matcher<const wchar_t*> m1 = EndsWith(L""); in TEST() local
2091 EXPECT_TRUE(m1.Matches(L"Hi")); in TEST()
2092 EXPECT_TRUE(m1.Matches(L"")); in TEST()
2093 EXPECT_FALSE(m1.Matches(nullptr)); in TEST()