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