Lines Matching refs:matches
42 std::vector<TrieMatch> matches; in TEST() local
43 EXPECT_TRUE(trie.FindAllPrefixMatches("hello there", &matches)); in TEST()
44 EXPECT_EQ(matches.size(), 2); in TEST()
45 EXPECT_EQ(matches[0].id, 0 /*hell*/); in TEST()
46 EXPECT_EQ(matches[0].match_length, 4 /*hell*/); in TEST()
47 EXPECT_EQ(matches[1].id, 1 /*hello*/); in TEST()
48 EXPECT_EQ(matches[1].match_length, 5 /*hello*/); in TEST()
52 std::vector<TrieMatch> matches; in TEST() local
53 EXPECT_TRUE(trie.FindAllPrefixMatches("he", &matches)); in TEST()
54 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
58 std::vector<TrieMatch> matches; in TEST() local
59 EXPECT_TRUE(trie.FindAllPrefixMatches("abcd", &matches)); in TEST()
60 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
64 std::vector<TrieMatch> matches; in TEST() local
65 EXPECT_TRUE(trie.FindAllPrefixMatches("", &matches)); in TEST()
66 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
70 std::vector<TrieMatch> matches; in TEST() local
71 EXPECT_TRUE(trie.FindAllPrefixMatches("hi there", &matches)); in TEST()
72 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
76 std::vector<TrieMatch> matches; in TEST() local
77 EXPECT_TRUE(trie.FindAllPrefixMatches(StringPiece("\0", 1), &matches)); in TEST()
78 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
82 std::vector<TrieMatch> matches; in TEST() local
84 trie.FindAllPrefixMatches(StringPiece("\xff, \xfe", 2), &matches)); in TEST()
85 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()