Lines Matching refs:NameMatch
15 EXPECT_TRUE(NameMatches("foo", NameMatch::Ignore, "bar")); in TEST()
19 EXPECT_TRUE(NameMatches("foo", NameMatch::Equals, "foo")); in TEST()
20 EXPECT_FALSE(NameMatches("foo", NameMatch::Equals, "bar")); in TEST()
24 EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "foo")); in TEST()
25 EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "oob")); in TEST()
26 EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "bar")); in TEST()
27 EXPECT_TRUE(NameMatches("foobar", NameMatch::Contains, "foobar")); in TEST()
28 EXPECT_TRUE(NameMatches("", NameMatch::Contains, "")); in TEST()
29 EXPECT_FALSE(NameMatches("", NameMatch::Contains, "foo")); in TEST()
30 EXPECT_FALSE(NameMatches("foobar", NameMatch::Contains, "baz")); in TEST()
34 EXPECT_TRUE(NameMatches("foo", NameMatch::StartsWith, "f")); in TEST()
35 EXPECT_TRUE(NameMatches("foo", NameMatch::StartsWith, "")); in TEST()
36 EXPECT_TRUE(NameMatches("", NameMatch::StartsWith, "")); in TEST()
37 EXPECT_FALSE(NameMatches("foo", NameMatch::StartsWith, "b")); in TEST()
38 EXPECT_FALSE(NameMatches("", NameMatch::StartsWith, "b")); in TEST()
42 EXPECT_TRUE(NameMatches("foo", NameMatch::EndsWith, "o")); in TEST()
43 EXPECT_TRUE(NameMatches("foo", NameMatch::EndsWith, "")); in TEST()
44 EXPECT_TRUE(NameMatches("", NameMatch::EndsWith, "")); in TEST()
45 EXPECT_FALSE(NameMatches("foo", NameMatch::EndsWith, "b")); in TEST()
46 EXPECT_FALSE(NameMatches("", NameMatch::EndsWith, "b")); in TEST()
50 EXPECT_TRUE(NameMatches("foobar", NameMatch::RegularExpression, "foo")); in TEST()
51 EXPECT_TRUE(NameMatches("foobar", NameMatch::RegularExpression, "f[oa]o")); in TEST()
52 EXPECT_FALSE(NameMatches("foo", NameMatch::RegularExpression, "")); in TEST()
53 EXPECT_FALSE(NameMatches("", NameMatch::RegularExpression, "")); in TEST()
54 EXPECT_FALSE(NameMatches("foo", NameMatch::RegularExpression, "b")); in TEST()
55 EXPECT_FALSE(NameMatches("", NameMatch::RegularExpression, "b")); in TEST()
56 EXPECT_FALSE(NameMatches("^a", NameMatch::RegularExpression, "^a")); in TEST()