Lines Matching full:matches
43 std::vector<StringSet::Match> matches; in TEST() local
44 EXPECT_TRUE(trie.FindAllPrefixMatches("hello there", &matches)); in TEST()
45 EXPECT_EQ(matches.size(), 2); in TEST()
46 EXPECT_EQ(matches[0].id, 0 /*hell*/); in TEST()
47 EXPECT_EQ(matches[0].match_length, 4 /*hell*/); in TEST()
48 EXPECT_EQ(matches[1].id, 1 /*hello*/); in TEST()
49 EXPECT_EQ(matches[1].match_length, 5 /*hello*/); in TEST()
53 std::vector<StringSet::Match> matches; in TEST() local
54 EXPECT_TRUE(trie.FindAllPrefixMatches("he", &matches)); in TEST()
55 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
59 std::vector<StringSet::Match> matches; in TEST() local
60 EXPECT_TRUE(trie.FindAllPrefixMatches("abcd", &matches)); in TEST()
61 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
65 std::vector<StringSet::Match> matches; in TEST() local
66 EXPECT_TRUE(trie.FindAllPrefixMatches("", &matches)); in TEST()
67 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
71 std::vector<StringSet::Match> matches; in TEST() local
72 EXPECT_TRUE(trie.FindAllPrefixMatches("hi there", &matches)); in TEST()
73 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
77 std::vector<StringSet::Match> matches; in TEST() local
78 EXPECT_TRUE(trie.FindAllPrefixMatches(StringPiece("\0", 1), &matches)); in TEST()
79 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()
83 std::vector<StringSet::Match> matches; in TEST() local
85 trie.FindAllPrefixMatches(StringPiece("\xff, \xfe", 2), &matches)); in TEST()
86 EXPECT_THAT(matches, testing::IsEmpty()); in TEST()