Lines Matching refs:HasSubstr

98 using testing::HasSubstr;
1271 // Tests that HasSubstr() works for matching string-typed values.
1273 const Matcher<string> m1 = HasSubstr("foo");
1277 const Matcher<const std::string&> m2 = HasSubstr("foo");
1282 // Tests that HasSubstr() works for matching C-string-typed values.
1284 const Matcher<char*> m1 = HasSubstr("foo");
1289 const Matcher<const char*> m2 = HasSubstr("foo");
1295 // Tests that HasSubstr(s) describes itself properly.
1297 Matcher<string> m = HasSubstr("foo\n\"");
1424 EXPECT_THAT(p, Pair(Ge(20), HasSubstr("o")));
1436 EXPECT_THAT(p, Not(Pair(Lt(13), HasSubstr("a"))));
1664 // Tests that HasSubstr() works for matching wstring-typed values.
1666 const Matcher< ::std::wstring> m1 = HasSubstr(L"foo");
1670 const Matcher<const ::std::wstring&> m2 = HasSubstr(L"foo");
1675 // Tests that HasSubstr() works for matching C-wide-string-typed values.
1677 const Matcher<wchar_t*> m1 = HasSubstr(L"foo");
1682 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo");
1688 // Tests that HasSubstr(s) describes itself properly.
1690 Matcher< ::std::wstring> m = HasSubstr(L"foo\n\"");
1855 // Tests that HasSubstr() works for matching wstring-typed values.
1857 const Matcher< ::wstring> m1 = HasSubstr(L"foo");
1861 const Matcher<const ::wstring&> m2 = HasSubstr(L"foo");
1866 // Tests that HasSubstr() works for matching C-wide-string-typed values.
1868 const Matcher<wchar_t*> m1 = HasSubstr(L"foo");
1873 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo");
1879 // Tests that HasSubstr(s) describes itself properly.
1881 Matcher< ::wstring> m = HasSubstr(L"foo\n\"");
3257 EXPECT_THAT(Explain(matcher, null), HasSubstr("NULL"));
3260 EXPECT_THAT(Explain(matcher, &derived), HasSubstr("which points to "));
3265 HasSubstr("which cannot be dynamic_cast"));