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