Home | History | Annotate | Download | only in test

Lines Matching full:hassubstr

88 using testing::HasSubstr;
1095 // Tests that HasSubstr() works for matching string-typed values.
1097 const Matcher<string> m1 = HasSubstr("foo");
1101 const Matcher<const std::string&> m2 = HasSubstr("foo");
1106 HasSubstr() works for matching C-string-typed values.
1108 const Matcher<char*> m1 = HasSubstr("foo");
1113 const Matcher<const char*> m2 = HasSubstr("foo");
1119 // Tests that HasSubstr(s) describes itself properly.
1121 Matcher<string> m = HasSubstr("foo\n\"");
1248 EXPECT_THAT(p, Pair(Ge(20), HasSubstr("o")));
1260 EXPECT_THAT(p, Not(Pair(Lt(13), HasSubstr("a"))));
1488 // Tests that HasSubstr() works for matching wstring-typed values.
1490 const Matcher< ::std::wstring> m1 = HasSubstr(L"foo");
1494 const Matcher<const ::std::wstring&> m2 = HasSubstr(L"foo");
1499 // Tests that HasSubstr() works for matching C-wide-string-typed values.
1501 const Matcher<wchar_t*> m1 = HasSubstr(L"foo");
1506 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo");
1512 // Tests that HasSubstr(s) describes itself properly.
1514 Matcher< ::std::wstring> m = HasSubstr(L"foo\n\"");
1679 // Tests that HasSubstr() works for matching wstring-typed values.
1681 const Matcher< ::wstring> m1 = HasSubstr(L"foo");
1685 const Matcher<const ::wstring&> m2 = HasSubstr(L"foo");
1690 // Tests that HasSubstr() works for matching C-wide-string-typed values.
1692 const Matcher<wchar_t*> m1 = HasSubstr(L"foo");
1697 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo");
1703 // Tests that HasSubstr(s) describes itself properly.
1705 Matcher< ::wstring> m = HasSubstr(L"foo\n\"");