Lines Matching defs:testMap

27   StringMap<uint32_t> testMap;
37 EXPECT_EQ(0u, testMap.size());
38 EXPECT_TRUE(testMap.empty());
41 EXPECT_TRUE(testMap.begin() == testMap.end());
44 EXPECT_FALSE(testMap.contains(testKey));
45 EXPECT_EQ(0u, testMap.count(testKey));
46 EXPECT_EQ(0u, testMap.count(StringRef(testKeyFirst, testKeyLength)));
47 EXPECT_EQ(0u, testMap.count(testKeyStr));
48 EXPECT_TRUE(testMap.find(testKey) == testMap.end());
49 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) ==
50 testMap.end());
51 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.end());
56 EXPECT_EQ(1u, testMap.size());
57 EXPECT_FALSE(testMap.begin() == testMap.end());
58 EXPECT_FALSE(testMap.empty());
61 StringMap<uint32_t>::iterator it = testMap.begin();
65 EXPECT_TRUE(it == testMap.end());
68 EXPECT_TRUE(testMap.contains(testKey));
69 EXPECT_EQ(1u, testMap.count(testKey));
70 EXPECT_EQ(1u, testMap.count(StringRef(testKeyFirst, testKeyLength)));
71 EXPECT_EQ(1u, testMap.count(testKeyStr));
72 EXPECT_TRUE(testMap.find(testKey) == testMap.begin());
73 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) ==
74 testMap.begin());
75 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.begin());
100 const StringMap<uint32_t> &constTestMap = testMap;
122 testMap = StringMap<uint32_t>({{"key", 1}});
128 testMap[testKey] = testValue;
134 testMap[testKey] = testValue;
135 testMap.clear();
141 testMap[testKey] = testValue;
142 testMap.erase(testMap.begin());
148 testMap[testKey] = testValue;
149 testMap.erase(testKey);
155 testMap[testKey] = testValue;
156 testMap["otherKey"] = 2;
157 testMap.erase("otherKey");
230 testMap[ss.str()] = i;
235 for (StringMap<uint32_t>::iterator it = testMap.begin(); it != testMap.end();
263 testMap.insert(StringMap<uint32_t>::value_type::create(
264 StringRef(testKeyFirst, testKeyLength), testMap.getAllocator(), 1u));
273 testMap.insert(std::make_pair(testKeyFirst, testValue));
274 EXPECT_EQ(1u, testMap.size());
275 EXPECT_EQ(testValue, testMap[testKeyFirst]);
282 testMap.insert(std::make_pair(testKeyFirst, testValue + 1));
283 EXPECT_EQ(1u, testMap.size());
284 EXPECT_EQ(testValue, testMap[testKeyFirst]);