Lines Matching refs:hash_set
65 HashSet<std::string, IsEmptyFnString> hash_set; in TEST_F() local
67 ASSERT_TRUE(hash_set.Empty()); in TEST_F()
68 ASSERT_EQ(hash_set.Size(), 0U); in TEST_F()
69 hash_set.Insert(test_string); in TEST_F()
70 auto it = hash_set.Find(test_string); in TEST_F()
72 auto after_it = hash_set.Erase(it); in TEST_F()
73 ASSERT_TRUE(after_it == hash_set.end()); in TEST_F()
74 ASSERT_TRUE(hash_set.Empty()); in TEST_F()
75 ASSERT_EQ(hash_set.Size(), 0U); in TEST_F()
76 it = hash_set.Find(test_string); in TEST_F()
77 ASSERT_TRUE(it == hash_set.end()); in TEST_F()
81 HashSet<std::string, IsEmptyFnString> hash_set; in TEST_F() local
87 hash_set.Insert(strings[i]); in TEST_F()
88 auto it = hash_set.Find(strings[i]); in TEST_F()
89 ASSERT_TRUE(it != hash_set.end()); in TEST_F()
92 ASSERT_EQ(strings.size(), hash_set.Size()); in TEST_F()
95 auto it = hash_set.Find(strings[i]); in TEST_F()
96 ASSERT_TRUE(it != hash_set.end()); in TEST_F()
98 hash_set.Erase(it); in TEST_F()
102 auto it = hash_set.Find(strings[i]); in TEST_F()
103 ASSERT_TRUE(it == hash_set.end()); in TEST_F()
106 auto it = hash_set.Find(strings[i]); in TEST_F()
107 ASSERT_TRUE(it != hash_set.end()); in TEST_F()
113 HashSet<std::string, IsEmptyFnString> hash_set; in TEST_F() local
114 ASSERT_TRUE(hash_set.begin() == hash_set.end()); in TEST_F()
120 hash_set.Insert(strings[i]); in TEST_F()
124 for (const std::string& s : hash_set) { in TEST_F()
132 for (auto it = hash_set.begin(); it != hash_set.end();) { in TEST_F()
134 it = hash_set.Erase(it); in TEST_F()
135 ASSERT_EQ(hash_set.Verify(), 0U); in TEST_F()
160 HashSet<std::string, IsEmptyFnString> hash_set; in TEST_F() local
173 ASSERT_EQ(hash_set.Size(), std_set.size()); in TEST_F()
175 static_cast<ssize_t>(hash_set.Size())); in TEST_F()
178 hash_set.Clear(); in TEST_F()
180 ASSERT_TRUE(hash_set.Empty()); in TEST_F()
185 hash_set.Insert(s); in TEST_F()
187 ASSERT_EQ(*hash_set.Find(s), *std_set.find(s)); in TEST_F()
190 auto it1 = hash_set.Find(s); in TEST_F()
192 ASSERT_EQ(it1 == hash_set.end(), it2 == std_set.end()); in TEST_F()
193 if (it1 != hash_set.end()) { in TEST_F()
195 hash_set.Erase(it1); in TEST_F()