Home | History | Annotate | Download | only in ADT

Lines Matching defs:testMap

21   StringMap<uint32_t> testMap;
31 EXPECT_EQ(0u, testMap.size());
32 EXPECT_TRUE(testMap.empty());
35 EXPECT_TRUE(testMap.begin() == testMap.end());
38 EXPECT_EQ(0u, testMap.count(testKey));
39 EXPECT_EQ(0u, testMap.count(StringRef(testKeyFirst, testKeyLength)));
40 EXPECT_EQ(0u, testMap.count(testKeyStr));
41 EXPECT_TRUE(testMap.find(testKey) == testMap.end());
42 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) ==
43 testMap.end());
44 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.end());
49 EXPECT_EQ(1u, testMap.size());
50 EXPECT_FALSE(testMap.begin() == testMap.end());
51 EXPECT_FALSE(testMap.empty());
54 StringMap<uint32_t>::iterator it = testMap.begin();
58 EXPECT_TRUE(it == testMap.end());
61 EXPECT_EQ(1u, testMap.count(testKey));
62 EXPECT_EQ(1u, testMap.count(StringRef(testKeyFirst, testKeyLength)));
63 EXPECT_EQ(1u, testMap.count(testKeyStr));
64 EXPECT_TRUE(testMap.find(testKey) == testMap.begin());
65 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) ==
66 testMap.begin());
67 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.begin());
84 const StringMap<uint32_t>& constTestMap = testMap;
105 testMap[testKey] = testValue;
111 testMap[testKey] = testValue;
112 testMap.clear();
118 testMap[testKey] = testValue;
119 testMap.erase(testMap.begin());
125 testMap[testKey] = testValue;
126 testMap.erase(testKey);
132 testMap[testKey] = testValue;
133 testMap["otherKey"] = 2;
134 testMap.erase("otherKey");
168 testMap[ss.str()] = i;
173 for (StringMap<uint32_t>::iterator it = testMap.begin();
174 it != testMap.end(); ++it) {
200 testMap.insert(
203 testMap.getAllocator(), 1u));
212 testMap.insert(std::make_pair(testKeyFirst, testValue));
213 EXPECT_EQ(1u, testMap.size());
214 EXPECT_EQ(testValue, testMap[testKeyFirst]);
221 testMap.insert(std::make_pair(testKeyFirst, testValue + 1));
222 EXPECT_EQ(1u, testMap.size());
223 EXPECT_EQ(testValue, testMap[testKeyFirst]);