Lines Matching refs:Map
81 T Map; member in __anonb018e79a0111::DenseMapTest
113 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
114 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
117 EXPECT_TRUE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
120 EXPECT_FALSE(this->Map.count(this->getKey())); in TYPED_TEST()
121 EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.end()); in TYPED_TEST()
124 this->Map.lookup(this->getKey())); in TYPED_TEST()
131 this->Map.lookup(this->getKey())); in TYPED_TEST()
137 const TypeParam &ConstMap = this->Map; in TYPED_TEST()
145 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
148 EXPECT_EQ(1u, this->Map.size()); in TYPED_TEST()
149 EXPECT_FALSE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
150 EXPECT_FALSE(this->Map.empty()); in TYPED_TEST()
153 typename TypeParam::iterator it = this->Map.begin(); in TYPED_TEST()
157 EXPECT_TRUE(it == this->Map.end()); in TYPED_TEST()
160 EXPECT_TRUE(this->Map.count(this->getKey())); in TYPED_TEST()
161 EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.begin()); in TYPED_TEST()
162 EXPECT_EQ(this->getValue(), this->Map.lookup(this->getKey())); in TYPED_TEST()
163 EXPECT_EQ(this->getValue(), this->Map[this->getKey()]); in TYPED_TEST()
168 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
169 this->Map.clear(); in TYPED_TEST()
171 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
172 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
173 EXPECT_TRUE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
178 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
179 this->Map.erase(this->Map.begin()); in TYPED_TEST()
181 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
182 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
183 EXPECT_TRUE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
188 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
189 this->Map.erase(this->getKey()); in TYPED_TEST()
191 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
192 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
193 EXPECT_TRUE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
198 this->Map.insert(std::make_pair(this->getKey(), this->getValue())); in TYPED_TEST()
199 EXPECT_EQ(1u, this->Map.size()); in TYPED_TEST()
200 EXPECT_EQ(this->getValue(), this->Map[this->getKey()]); in TYPED_TEST()
205 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
206 TypeParam copyMap(this->Map); in TYPED_TEST()
215 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST()
216 TypeParam copyMap(this->Map); in TYPED_TEST()
225 TypeParam copyMap(this->Map); in TYPED_TEST()
233 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST()
234 this->Map.clear(); in TYPED_TEST()
235 TypeParam copyMap(this->Map); in TYPED_TEST()
242 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
243 TypeParam copyMap = this->Map; in TYPED_TEST()
251 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
254 this->Map.swap(otherMap); in TYPED_TEST()
255 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
256 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
260 this->Map.swap(otherMap); in TYPED_TEST()
263 EXPECT_EQ(1u, this->Map.size()); in TYPED_TEST()
264 EXPECT_EQ(this->getValue(), this->Map[this->getKey()]); in TYPED_TEST()
268 this->Map[this->getKey(i)] = this->getValue(i); in TYPED_TEST()
270 this->Map.swap(otherMap); in TYPED_TEST()
271 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
272 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
277 this->Map.swap(otherMap); in TYPED_TEST()
280 EXPECT_EQ(100u, this->Map.size()); in TYPED_TEST()
282 EXPECT_EQ(this->getValue(i), this->Map[this->getKey(i)]); in TYPED_TEST()
295 this->Map[this->getKey(i)] = this->getValue(i); in TYPED_TEST()
299 for (typename TypeParam::iterator it = this->Map.begin(); in TYPED_TEST()
300 it != this->Map.end(); ++it) in TYPED_TEST()
311 typename TypeParam::iterator it = this->Map.begin(); in TYPED_TEST()