Lines Matching refs:Map
82 T Map; member in __anonf4a6f20c0111::DenseMapTest
114 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
115 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
118 EXPECT_TRUE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
121 EXPECT_FALSE(this->Map.count(this->getKey())); in TYPED_TEST()
122 EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.end()); in TYPED_TEST()
125 this->Map.lookup(this->getKey())); in TYPED_TEST()
132 this->Map.lookup(this->getKey())); in TYPED_TEST()
138 const TypeParam &ConstMap = this->Map; in TYPED_TEST()
146 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
149 EXPECT_EQ(1u, this->Map.size()); in TYPED_TEST()
150 EXPECT_FALSE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
151 EXPECT_FALSE(this->Map.empty()); in TYPED_TEST()
154 typename TypeParam::iterator it = this->Map.begin(); in TYPED_TEST()
158 EXPECT_TRUE(it == this->Map.end()); in TYPED_TEST()
161 EXPECT_TRUE(this->Map.count(this->getKey())); in TYPED_TEST()
162 EXPECT_TRUE(this->Map.find(this->getKey()) == this->Map.begin()); in TYPED_TEST()
163 EXPECT_EQ(this->getValue(), this->Map.lookup(this->getKey())); in TYPED_TEST()
164 EXPECT_EQ(this->getValue(), this->Map[this->getKey()]); in TYPED_TEST()
169 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
170 this->Map.clear(); in TYPED_TEST()
172 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
173 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
174 EXPECT_TRUE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
179 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
180 this->Map.erase(this->Map.begin()); in TYPED_TEST()
182 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
183 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
184 EXPECT_TRUE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
189 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
190 this->Map.erase(this->getKey()); in TYPED_TEST()
192 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
193 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
194 EXPECT_TRUE(this->Map.begin() == this->Map.end()); in TYPED_TEST()
199 this->Map.insert(std::make_pair(this->getKey(), this->getValue())); in TYPED_TEST()
200 EXPECT_EQ(1u, this->Map.size()); in TYPED_TEST()
201 EXPECT_EQ(this->getValue(), this->Map[this->getKey()]); in TYPED_TEST()
206 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
207 TypeParam copyMap(this->Map); in TYPED_TEST()
216 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST()
217 TypeParam copyMap(this->Map); in TYPED_TEST()
226 TypeParam copyMap(this->Map); in TYPED_TEST()
234 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST()
235 this->Map.clear(); in TYPED_TEST()
236 TypeParam copyMap(this->Map); in TYPED_TEST()
243 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
244 TypeParam copyMap = this->Map; in TYPED_TEST()
257 this->Map[this->getKey(Key)] = this->getValue(Key); in TYPED_TEST()
258 TypeParam copyMap = this->Map; in TYPED_TEST()
273 this->Map[this->getKey()] = this->getValue(); in TYPED_TEST()
276 this->Map.swap(otherMap); in TYPED_TEST()
277 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
278 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
282 this->Map.swap(otherMap); in TYPED_TEST()
285 EXPECT_EQ(1u, this->Map.size()); in TYPED_TEST()
286 EXPECT_EQ(this->getValue(), this->Map[this->getKey()]); in TYPED_TEST()
290 this->Map[this->getKey(i)] = this->getValue(i); in TYPED_TEST()
292 this->Map.swap(otherMap); in TYPED_TEST()
293 EXPECT_EQ(0u, this->Map.size()); in TYPED_TEST()
294 EXPECT_TRUE(this->Map.empty()); in TYPED_TEST()
299 this->Map.swap(otherMap); in TYPED_TEST()
302 EXPECT_EQ(100u, this->Map.size()); in TYPED_TEST()
304 EXPECT_EQ(this->getValue(i), this->Map[this->getKey(i)]); in TYPED_TEST()
317 this->Map[this->getKey(i)] = this->getValue(i); in TYPED_TEST()
321 for (typename TypeParam::iterator it = this->Map.begin(); in TYPED_TEST()
322 it != this->Map.end(); ++it) in TYPED_TEST()
333 typename TypeParam::iterator it = this->Map.begin(); in TYPED_TEST()
373 DenseMap<int, CountCopyAndMove> Map; in TEST() local
375 Map.reserve(1); in TEST()
376 unsigned MemorySize = Map.getMemorySize(); in TEST()
380 Map.insert(std::pair<int, CountCopyAndMove>(std::piecewise_construct, in TEST()
384 EXPECT_EQ(MemorySize, Map.getMemorySize()); in TEST()
391 Map.insert(std::pair<int, CountCopyAndMove>( in TEST()
396 EXPECT_NE(MemorySize, Map.getMemorySize()); in TEST()
413 DenseMap<int, CountCopyAndMove> Map(Size); in TEST() local
414 unsigned MemorySize = Map.getMemorySize(); in TEST()
418 Map.insert(std::pair<int, CountCopyAndMove>(std::piecewise_construct, in TEST()
422 EXPECT_EQ(MemorySize, Map.getMemorySize()); in TEST()
440 DenseMap<int, CountCopyAndMove> Map(Values.begin(), Values.end()); in TEST() local
456 DenseMap<int, CountCopyAndMove> Map; in TEST() local
457 Map.reserve(Size); in TEST()
458 unsigned MemorySize = Map.getMemorySize(); in TEST()
462 Map.insert(std::pair<int, CountCopyAndMove>(std::piecewise_construct, in TEST()
466 EXPECT_EQ(MemorySize, Map.getMemorySize()); in TEST()
525 DenseMap<CachedHashTest, int> Map; in TEST() local
527 Map[Val] = 0; in TEST()
530 Map.reserve(64); in TEST()
539 DenseMap<Cached, int> Map; in TEST() local
541 Map[Val] = 0; in TEST()
544 Map.reserve(64); in TEST()