Lines Matching refs:handle

80       auto handle = sim_cache->Lookup(block);  in AssertCache()  local
81 EXPECT_NE(nullptr, handle); in AssertCache()
82 sim_cache->Release(handle); in AssertCache()
86 auto handle = in AssertCache() local
88 EXPECT_NE(nullptr, handle); in AssertCache()
89 sim_cache->Release(handle); in AssertCache()
136 auto handle = sim_cache->Lookup(access.block_key); in TEST_F() local
137 ASSERT_NE(nullptr, handle); in TEST_F()
138 sim_cache->Release(handle); in TEST_F()
139 handle = sim_cache->Lookup(compaction_access.block_key); in TEST_F()
140 ASSERT_EQ(nullptr, handle); in TEST_F()
174 auto handle = sim_cache->Lookup(access.block_key); in TEST_F() local
175 ASSERT_NE(nullptr, handle); in TEST_F()
176 sim_cache->Release(handle); in TEST_F()
232 auto handle = in TEST_F() local
235 ASSERT_NE(nullptr, handle); in TEST_F()
236 sim_cache->Release(handle); in TEST_F()
238 handle = sim_cache->Lookup(kBlockKeyPrefix + std::to_string(i)); in TEST_F()
239 ASSERT_NE(nullptr, handle); in TEST_F()
240 sim_cache->Release(handle); in TEST_F()
258 handle = in TEST_F()
261 ASSERT_NE(nullptr, handle); in TEST_F()
262 sim_cache->Release(handle); in TEST_F()
264 handle = sim_cache->Lookup(kBlockKeyPrefix + std::to_string(i)); in TEST_F()
266 ASSERT_NE(nullptr, handle) << i; in TEST_F()
267 sim_cache->Release(handle); in TEST_F()
269 ASSERT_EQ(nullptr, handle) << i; in TEST_F()
287 handle = sim_cache->Lookup(std::to_string(third_get.sst_fd_number) + "_" + in TEST_F()
289 ASSERT_EQ(nullptr, handle); in TEST_F()
292 handle = sim_cache->Lookup(kBlockKeyPrefix + std::to_string(i)); in TEST_F()
293 ASSERT_NE(nullptr, handle) << i; in TEST_F()
294 sim_cache->Release(handle); in TEST_F()
296 handle = sim_cache->Lookup(kBlockKeyPrefix + std::to_string(i)); in TEST_F()
297 ASSERT_EQ(nullptr, handle) << i; in TEST_F()
398 auto handle = sim_cache->Lookup("0_" + kRefKeyPrefix + key); in TEST_F() local
399 ASSERT_NE(nullptr, handle); in TEST_F()
400 sim_cache->Release(handle); in TEST_F()
421 auto handle = sim_cache->Lookup("0_" + kRefKeyPrefix + key); in TEST_F() local
422 ASSERT_EQ(nullptr, handle); in TEST_F()
441 auto handle = in TEST_F() local
444 ASSERT_NE(nullptr, handle); in TEST_F()
445 sim_cache->Release(handle); in TEST_F()
449 handle = sim_cache->Lookup(kBlockKeyPrefix + std::to_string(i)); in TEST_F()
450 ASSERT_EQ(nullptr, handle); in TEST_F()