Lines Matching defs:foo
413 bool IsPositiveIntValue(const IntValue& foo) { return foo.value() > 0; }
1155 EXPECT_EQ("foo", FromStringLike("foo"));
1156 EXPECT_EQ("foo", FromStringLike(std::string("foo")));
1158 EXPECT_EQ("foo", FromStringLike(internal::StringView("foo")));
1163 EXPECT_EQ("foo", FromStringLike({'f', 'o', 'o'}));
1164 const char buf[] = "foo";
1165 EXPECT_EQ("foo", FromStringLike({buf, buf + 3}));
1308 const Matcher<std::string> m1 = HasSubstr("foo");
1312 const Matcher<const std::string&> m2 = HasSubstr("foo");
1323 const Matcher<char*> m1 = HasSubstr("foo");
1328 const Matcher<const char*> m2 = HasSubstr("foo");
1343 HasSubstr(internal::StringView("foo"));
1348 const Matcher<const internal::StringView&> m2 = HasSubstr("foo");
1354 EXPECT_TRUE(m3.Matches(internal::StringView("foo")));
1362 Matcher<std::string> m = HasSubstr("foo\n\"");
1363 EXPECT_EQ("has substring \"foo\\n\\\"\"", Describe(m));
1369 Matcher<const pair<std::string, int>&> m = Key("foo");
1370 EXPECT_EQ("has a key that is equal to \"foo\"", Describe(m));
1371 EXPECT_EQ("doesn't have a key that is equal to \"foo\"", DescribeNegation(m));
1383 pair<int, std::string> p(25, "foo");
1414 PairWithGet p{25, "foo"};
1459 Matcher<const pair<const char*, int>&> m1 = Pair("foo", 42);
1460 Matcher<const pair<const char*, int>> m2 = Pair("foo", 42);
1461 Matcher<pair<const char*, int>> m3 = Pair("foo", 42);
1468 Matcher<const pair<std::string, int>&> m1 = Pair("foo", 42);
1470 "has a first field that is equal to \"foo\""
1474 "has a first field that isn't equal to \"foo\""
1527 pair<int, std::string> p(25, "foo");
1530 EXPECT_THAT(p, Pair(25, "foo"));
1534 EXPECT_THAT(p, Not(Pair(42, "foo")));
1535 EXPECT_THAT(p, Not(Pair(Lt(25), "foo")));
1539 EXPECT_THAT(p, Not(Pair(25, Not("foo"))));
1576 std::tuple<int, std::string, double> p(25, "foo", .5);
1579 EXPECT_THAT(p, FieldsAre(25, "foo", .5));
1583 EXPECT_THAT(p, Not(FieldsAre(26, "foo", .5)));
1585 EXPECT_THAT(p, Not(FieldsAre(25, "foo", .6)));
1589 Matcher<const pair<std::string, int>&> m1 = FieldsAre("foo", 42);
1591 "has field #0 that is equal to \"foo\""
1595 "has field #0 that isn't equal to \"foo\""
1643 EXPECT_THAT((MyType{17, "foo"}), FieldsAre(Eq(17), HasSubstr("oo")));
2025 const Matcher<::std::wstring> m1 = HasSubstr(L"foo");
2029 const Matcher<const ::std::wstring&> m2 = HasSubstr(L"foo");
2036 const Matcher<wchar_t*> m1 = HasSubstr(L"foo");
2041 const Matcher<const wchar_t*> m2 = HasSubstr(L"foo");
2049 Matcher<::std::wstring> m = HasSubstr(L"foo\n\"");
2050 EXPECT_EQ("has substring L\"foo\\n\\\"\"", Describe(m));