Lines Matching refs:key

95   int key = 100;  in TEST_F()  local
96 HashTableTy::entry_type* val = hashTable->insert(key, exist); in TEST_F()
101 HashTableTy::iterator entry = hashTable->find(key); in TEST_F()
114 for (int key = 0; key < 100; ++key) { in TEST_F() local
115 entry = hashTable->insert(key, exist); in TEST_F()
119 EXPECT_TRUE(key == entry->key()); in TEST_F()
120 entry->setValue(key + 10); in TEST_F()
136 for (unsigned int key = 0; key < 100; ++key) in TEST_F() local
137 hashTable->insert(key, exist); in TEST_F()
143 for (unsigned int key = 0; key < 100; ++key) { in TEST_F() local
144 count = hashTable->erase(key); in TEST_F()
146 iter = hashTable->find(key); in TEST_F()
161 for (unsigned int key = 0; key < 100; ++key) { in TEST_F() local
162 hashTable->insert(key, exist); in TEST_F()
168 for (unsigned int key = 0; key < 100; ++key) { in TEST_F() local
169 iter = hashTable->find(key); in TEST_F()
184 for (unsigned int key = 0; key < 100; ++key) { in TEST_F() local
185 hashTable->insert(key, exist); in TEST_F()
191 for (unsigned int key = 0; key < 20; ++key) { in TEST_F() local
192 count = hashTable->erase(key); in TEST_F()
194 iter = hashTable->find(key); in TEST_F()
199 for (unsigned int key = 20; key < 100; ++key) { in TEST_F() local
200 iter = hashTable->find(key); in TEST_F()
204 for (unsigned int key = 0; key < 20; ++key) { in TEST_F() local
205 hashTable->insert(key, exist); in TEST_F()
221 for (unsigned int key = 0; key < 400000; ++key) { in TEST_F() local
222 entry = hashTable->insert(key, exist); in TEST_F()
223 entry->setValue(key + 10); in TEST_F()
227 for (int key = 0; key < 400000; ++key) { in TEST_F() local
228 iter = hashTable->find(key); in TEST_F()
229 EXPECT_EQ((key + 10), iter.getEntry()->value()); in TEST_F()
243 for (unsigned int key = 0; key < 400000; ++key) { in TEST_F() local
244 entry = hashTable->insert(key, exist); in TEST_F()
245 entry->setValue(key + 10); in TEST_F()
251 EXPECT_EQ(iter.getEntry()->key() + 10, iter.getEntry()->value()); in TEST_F()
266 for (int key = 0; key < 16; ++key) { in TEST_F() local
267 entry = hashTable->insert(key * 37, exist); in TEST_F()
268 entry->setValue(key + 10); in TEST_F()
270 for (int key = 0; key < 16; ++key) { in TEST_F() local
272 HashTableTy::chain_iterator iter, iEnd = hashTable->end(key * 37); in TEST_F()
273 for (iter = hashTable->begin(key * 37); iter != iEnd; ++iter) { in TEST_F()
274 EXPECT_EQ(key + 10, iter.getEntry()->value()); in TEST_F()
294 for (unsigned int key = 0; key < 16; ++key) { in TEST_F() local
295 entry = hashTable->insert(key, exist); in TEST_F()
297 entry->setValue(key); in TEST_F()
302 unsigned int key = 0; in TEST_F() local
304 HashTableTy::chain_iterator iter, iEnd = hashTable->end(key); in TEST_F()
305 for (iter = hashTable->begin(key); iter != iEnd; ++iter) { in TEST_F()