Home | History | Annotate | Download | only in test

Lines Matching refs:HasSubstr

103 using testing::HasSubstr;
1276 // Tests that HasSubstr() works for matching string-typed values.
1278 const Matcher<std::string> m1 = HasSubstr("foo");
1282 const Matcher<const std::string&> m2 = HasSubstr("foo");
1287 // Tests that HasSubstr() works for matching C-string-typed values.
1289 const Matcher<char*> m1 = HasSubstr("foo");
1294 const Matcher<const char*> m2 = HasSubstr("foo");
1300 // Tests that HasSubstr(s) describes itself properly.
1302 Matcher<std::string> m = HasSubstr("foo\n\"");
1429 EXPECT_THAT(p, Pair(Ge(20), HasSubstr("o")));
1441 EXPECT_THAT(p, Not(Pair(Lt(13), HasSubstr("a"))));
1669 // Tests that HasSubstr() works for matching wstring-typed values.
1671 const Matcher< ::std::wstring> m1 = HasSubstr(L"foo");
1675 const Matcher<const ::std::wstring&> m2 = HasSubstr(L"foo");
1680 // Tests that HasSubstr() works for matching C-wide-string-typed values.
1682 const Matcher<wchar_t*> m1 = HasSubstr(L"foo");
1687 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo");
1693 // Tests that HasSubstr(s) describes itself properly.
1695 Matcher< ::std::wstring> m = HasSubstr(L"foo\n\"");
1860 // Tests that HasSubstr() works for matching wstring-typed values.
1862 const Matcher< ::wstring> m1 = HasSubstr(L"foo");
1866 const Matcher<const ::wstring&> m2 = HasSubstr(L"foo");
1871 // Tests that HasSubstr() works for matching C-wide-string-typed values.
1873 const Matcher<wchar_t*> m1 = HasSubstr(L"foo");
1878 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo");
1884 // Tests that HasSubstr(s) describes itself properly.
1886 Matcher< ::wstring> m = HasSubstr(L"foo\n\"");
3263 EXPECT_THAT(Explain(matcher, null), HasSubstr("NULL"));
3266 EXPECT_THAT(Explain(matcher, &derived), HasSubstr("which points to "));
3271 HasSubstr("which cannot be dynamic_cast"));