Lines Matching refs:testMap
27 StringMap<uint32_t> testMap; member in __anon7df7ecd90111::StringMapTest
37 EXPECT_EQ(0u, testMap.size()); in assertEmptyMap()
38 EXPECT_TRUE(testMap.empty()); in assertEmptyMap()
41 EXPECT_TRUE(testMap.begin() == testMap.end()); in assertEmptyMap()
44 EXPECT_EQ(0u, testMap.count(testKey)); in assertEmptyMap()
45 EXPECT_EQ(0u, testMap.count(StringRef(testKeyFirst, testKeyLength))); in assertEmptyMap()
46 EXPECT_EQ(0u, testMap.count(testKeyStr)); in assertEmptyMap()
47 EXPECT_TRUE(testMap.find(testKey) == testMap.end()); in assertEmptyMap()
48 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == in assertEmptyMap()
49 testMap.end()); in assertEmptyMap()
50 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.end()); in assertEmptyMap()
55 EXPECT_EQ(1u, testMap.size()); in assertSingleItemMap()
56 EXPECT_FALSE(testMap.begin() == testMap.end()); in assertSingleItemMap()
57 EXPECT_FALSE(testMap.empty()); in assertSingleItemMap()
60 StringMap<uint32_t>::iterator it = testMap.begin(); in assertSingleItemMap()
64 EXPECT_TRUE(it == testMap.end()); in assertSingleItemMap()
67 EXPECT_EQ(1u, testMap.count(testKey)); in assertSingleItemMap()
68 EXPECT_EQ(1u, testMap.count(StringRef(testKeyFirst, testKeyLength))); in assertSingleItemMap()
69 EXPECT_EQ(1u, testMap.count(testKeyStr)); in assertSingleItemMap()
70 EXPECT_TRUE(testMap.find(testKey) == testMap.begin()); in assertSingleItemMap()
71 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == in assertSingleItemMap()
72 testMap.begin()); in assertSingleItemMap()
73 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.begin()); in assertSingleItemMap()
100 const StringMap<uint32_t>& constTestMap = testMap; in TEST_F()
122 testMap = StringMap<uint32_t>({{"key", 1}}); in TEST_F()
128 testMap[testKey] = testValue; in TEST_F()
134 testMap[testKey] = testValue; in TEST_F()
135 testMap.clear(); in TEST_F()
141 testMap[testKey] = testValue; in TEST_F()
142 testMap.erase(testMap.begin()); in TEST_F()
148 testMap[testKey] = testValue; in TEST_F()
149 testMap.erase(testKey); in TEST_F()
155 testMap[testKey] = testValue; in TEST_F()
156 testMap["otherKey"] = 2; in TEST_F()
157 testMap.erase("otherKey"); in TEST_F()
218 testMap[ss.str()] = i; in TEST_F()
223 for (StringMap<uint32_t>::iterator it = testMap.begin(); in TEST_F()
224 it != testMap.end(); ++it) { in TEST_F()
251 testMap.insert( in TEST_F()
254 testMap.getAllocator(), 1u)); in TEST_F()
263 testMap.insert(std::make_pair(testKeyFirst, testValue)); in TEST_F()
264 EXPECT_EQ(1u, testMap.size()); in TEST_F()
265 EXPECT_EQ(testValue, testMap[testKeyFirst]); in TEST_F()
272 testMap.insert(std::make_pair(testKeyFirst, testValue + 1)); in TEST_F()
273 EXPECT_EQ(1u, testMap.size()); in TEST_F()
274 EXPECT_EQ(testValue, testMap[testKeyFirst]); in TEST_F()