reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
32 EXPECT_EQ(0u, testMap.size()); 33 EXPECT_TRUE(testMap.empty()); 36 EXPECT_TRUE(testMap.begin() == testMap.end()); 36 EXPECT_TRUE(testMap.begin() == testMap.end()); 39 EXPECT_EQ(0u, testMap.count(testKey)); 40 EXPECT_EQ(0u, testMap.count(StringRef(testKeyFirst, testKeyLength))); 41 EXPECT_EQ(0u, testMap.count(testKeyStr)); 42 EXPECT_TRUE(testMap.find(testKey) == testMap.end()); 42 EXPECT_TRUE(testMap.find(testKey) == testMap.end()); 43 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == 44 testMap.end()); 45 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.end()); 45 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.end()); 50 EXPECT_EQ(1u, testMap.size()); 51 EXPECT_FALSE(testMap.begin() == testMap.end()); 51 EXPECT_FALSE(testMap.begin() == testMap.end()); 52 EXPECT_FALSE(testMap.empty()); 55 StringMap<uint32_t>::iterator it = testMap.begin(); 59 EXPECT_TRUE(it == testMap.end()); 62 EXPECT_EQ(1u, testMap.count(testKey)); 63 EXPECT_EQ(1u, testMap.count(StringRef(testKeyFirst, testKeyLength))); 64 EXPECT_EQ(1u, testMap.count(testKeyStr)); 65 EXPECT_TRUE(testMap.find(testKey) == testMap.begin()); 65 EXPECT_TRUE(testMap.find(testKey) == testMap.begin()); 66 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == 67 testMap.begin()); 68 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.begin()); 68 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.begin()); 95 const StringMap<uint32_t>& constTestMap = testMap; 116 testMap[testKey] = testValue; 122 testMap[testKey] = testValue; 123 testMap.clear(); 129 testMap[testKey] = testValue; 130 testMap.erase(testMap.begin()); 130 testMap.erase(testMap.begin()); 136 testMap[testKey] = testValue; 137 testMap.erase(testKey); 143 testMap[testKey] = testValue; 144 testMap["otherKey"] = 2; 145 testMap.erase("otherKey"); 206 testMap[ss.str()] = i; 211 for (StringMap<uint32_t>::iterator it = testMap.begin(); 212 it != testMap.end(); ++it) { 238 testMap.insert( 241 testMap.getAllocator(), 1u)); 250 testMap.insert(std::make_pair(testKeyFirst, testValue)); 251 EXPECT_EQ(1u, testMap.size()); 252 EXPECT_EQ(testValue, testMap[testKeyFirst]); 259 testMap.insert(std::make_pair(testKeyFirst, testValue + 1)); 260 EXPECT_EQ(1u, testMap.size()); 261 EXPECT_EQ(testValue, testMap[testKeyFirst]);