Lines Matching refs:Matches
27 SmallVector<StringRef, 1> Matches; in TEST_F() local
29 EXPECT_TRUE(r2.match("aa216b", &Matches)); in TEST_F()
30 EXPECT_EQ(1u, Matches.size()); in TEST_F()
31 EXPECT_EQ("216", Matches[0].str()); in TEST_F()
34 EXPECT_TRUE(r3.match("9a:513b", &Matches)); in TEST_F()
35 EXPECT_EQ(3u, Matches.size()); in TEST_F()
36 EXPECT_EQ("9a:513", Matches[0].str()); in TEST_F()
37 EXPECT_EQ("a", Matches[1].str()); in TEST_F()
38 EXPECT_EQ("513", Matches[2].str()); in TEST_F()
40 EXPECT_TRUE(r3.match("9:513b", &Matches)); in TEST_F()
41 EXPECT_EQ(3u, Matches.size()); in TEST_F()
42 EXPECT_EQ("9:513", Matches[0].str()); in TEST_F()
43 EXPECT_EQ("", Matches[1].str()); in TEST_F()
44 EXPECT_EQ("513", Matches[2].str()); in TEST_F()
50 EXPECT_TRUE(r4.match(String, &Matches)); in TEST_F()
51 EXPECT_EQ(1u, Matches.size()); in TEST_F()
52 EXPECT_EQ(String, Matches[0].str()); in TEST_F()
66 SmallVector<StringRef, 4> Matches; in TEST_F() local
67 EXPECT_TRUE(r1.match("abc_abc", &Matches)); in TEST_F()
68 EXPECT_EQ(2u, Matches.size()); in TEST_F()
69 EXPECT_FALSE(r1.match("abc_ab", &Matches)); in TEST_F()
72 EXPECT_TRUE(r2.match("a4b4c4", &Matches)); in TEST_F()
73 EXPECT_EQ(2u, Matches.size()); in TEST_F()
74 EXPECT_EQ("4", Matches[1].str()); in TEST_F()
78 EXPECT_TRUE(r3.match("a6zb6z", &Matches)); in TEST_F()
79 EXPECT_EQ(3u, Matches.size()); in TEST_F()
80 EXPECT_EQ("6", Matches[1].str()); in TEST_F()
81 EXPECT_EQ("z", Matches[2].str()); in TEST_F()