Lines Matching refs:testMap
20 StringMap<uint32_t> testMap; member in __anonc95759f70111::StringMapTest
30 EXPECT_EQ(0u, testMap.size()); in assertEmptyMap()
31 EXPECT_TRUE(testMap.empty()); in assertEmptyMap()
34 EXPECT_TRUE(testMap.begin() == testMap.end()); in assertEmptyMap()
37 EXPECT_EQ(0u, testMap.count(testKey)); in assertEmptyMap()
38 EXPECT_EQ(0u, testMap.count(StringRef(testKeyFirst, testKeyLength))); in assertEmptyMap()
39 EXPECT_EQ(0u, testMap.count(testKeyStr)); in assertEmptyMap()
40 EXPECT_TRUE(testMap.find(testKey) == testMap.end()); in assertEmptyMap()
41 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == in assertEmptyMap()
42 testMap.end()); in assertEmptyMap()
43 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.end()); in assertEmptyMap()
48 EXPECT_EQ(1u, testMap.size()); in assertSingleItemMap()
49 EXPECT_FALSE(testMap.begin() == testMap.end()); in assertSingleItemMap()
50 EXPECT_FALSE(testMap.empty()); in assertSingleItemMap()
53 StringMap<uint32_t>::iterator it = testMap.begin(); in assertSingleItemMap()
57 EXPECT_TRUE(it == testMap.end()); in assertSingleItemMap()
60 EXPECT_EQ(1u, testMap.count(testKey)); in assertSingleItemMap()
61 EXPECT_EQ(1u, testMap.count(StringRef(testKeyFirst, testKeyLength))); in assertSingleItemMap()
62 EXPECT_EQ(1u, testMap.count(testKeyStr)); in assertSingleItemMap()
63 EXPECT_TRUE(testMap.find(testKey) == testMap.begin()); in assertSingleItemMap()
64 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == in assertSingleItemMap()
65 testMap.begin()); in assertSingleItemMap()
66 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.begin()); in assertSingleItemMap()
84 const StringMap<uint32_t>& constTestMap = testMap; in TEST_F()
106 testMap[testKey] = testValue; in TEST_F()
113 testMap[testKey] = testValue; in TEST_F()
114 testMap.clear(); in TEST_F()
121 testMap[testKey] = testValue; in TEST_F()
122 testMap.erase(testMap.begin()); in TEST_F()
129 testMap[testKey] = testValue; in TEST_F()
130 testMap.erase(testKey); in TEST_F()
137 testMap[testKey] = testValue; in TEST_F()
138 testMap["otherKey"] = 2; in TEST_F()
139 testMap.erase("otherKey"); in TEST_F()
151 testMap[ss.str()] = i; in TEST_F()
156 for (StringMap<uint32_t>::iterator it = testMap.begin(); in TEST_F()
157 it != testMap.end(); ++it) { in TEST_F()
200 testMap.insert( in TEST_F()
203 testMap.getAllocator(), 1u)); in TEST_F()