Lines Matching refs:testMap

22   StringMap<uint32_t> testMap;  member in __anon4fa0284b0111::StringMapTest
32 EXPECT_EQ(0u, testMap.size()); in assertEmptyMap()
33 EXPECT_TRUE(testMap.empty()); in assertEmptyMap()
36 EXPECT_TRUE(testMap.begin() == testMap.end()); in assertEmptyMap()
39 EXPECT_EQ(0u, testMap.count(testKey)); in assertEmptyMap()
40 EXPECT_EQ(0u, testMap.count(StringRef(testKeyFirst, testKeyLength))); in assertEmptyMap()
41 EXPECT_EQ(0u, testMap.count(testKeyStr)); in assertEmptyMap()
42 EXPECT_TRUE(testMap.find(testKey) == testMap.end()); in assertEmptyMap()
43 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == in assertEmptyMap()
44 testMap.end()); in assertEmptyMap()
45 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.end()); in assertEmptyMap()
50 EXPECT_EQ(1u, testMap.size()); in assertSingleItemMap()
51 EXPECT_FALSE(testMap.begin() == testMap.end()); in assertSingleItemMap()
52 EXPECT_FALSE(testMap.empty()); in assertSingleItemMap()
55 StringMap<uint32_t>::iterator it = testMap.begin(); in assertSingleItemMap()
59 EXPECT_TRUE(it == testMap.end()); in assertSingleItemMap()
62 EXPECT_EQ(1u, testMap.count(testKey)); in assertSingleItemMap()
63 EXPECT_EQ(1u, testMap.count(StringRef(testKeyFirst, testKeyLength))); in assertSingleItemMap()
64 EXPECT_EQ(1u, testMap.count(testKeyStr)); in assertSingleItemMap()
65 EXPECT_TRUE(testMap.find(testKey) == testMap.begin()); in assertSingleItemMap()
66 EXPECT_TRUE(testMap.find(StringRef(testKeyFirst, testKeyLength)) == in assertSingleItemMap()
67 testMap.begin()); in assertSingleItemMap()
68 EXPECT_TRUE(testMap.find(testKeyStr) == testMap.begin()); in assertSingleItemMap()
85 const StringMap<uint32_t>& constTestMap = testMap; in TEST_F()
106 testMap[testKey] = testValue; in TEST_F()
112 testMap[testKey] = testValue; in TEST_F()
113 testMap.clear(); in TEST_F()
119 testMap[testKey] = testValue; in TEST_F()
120 testMap.erase(testMap.begin()); in TEST_F()
126 testMap[testKey] = testValue; in TEST_F()
127 testMap.erase(testKey); in TEST_F()
133 testMap[testKey] = testValue; in TEST_F()
134 testMap["otherKey"] = 2; in TEST_F()
135 testMap.erase("otherKey"); in TEST_F()
196 testMap[ss.str()] = i; in TEST_F()
201 for (StringMap<uint32_t>::iterator it = testMap.begin(); in TEST_F()
202 it != testMap.end(); ++it) { in TEST_F()
228 testMap.insert( in TEST_F()
231 testMap.getAllocator(), 1u)); in TEST_F()
240 testMap.insert(std::make_pair(testKeyFirst, testValue)); in TEST_F()
241 EXPECT_EQ(1u, testMap.size()); in TEST_F()
242 EXPECT_EQ(testValue, testMap[testKeyFirst]); in TEST_F()
249 testMap.insert(std::make_pair(testKeyFirst, testValue + 1)); in TEST_F()
250 EXPECT_EQ(1u, testMap.size()); in TEST_F()
251 EXPECT_EQ(testValue, testMap[testKeyFirst]); in TEST_F()