MCPcopy Create free account
hub / github.com/apache/impala / TEST_P

Function TEST_P

be/src/kudu/util/cache-test.cc:218–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 ShardingPolicy::SingleShard)));
217
218TEST_P(CacheTest, TrackMemory) {
219 RETURN_IF_NO_NVM_CACHE(std::get<0>(GetParam()));
220 if (mem_tracker_) {
221 Insert(100, 100, 1);
222 ASSERT_EQ(1, mem_tracker_->consumption());
223 Erase(100);
224 ASSERT_EQ(0, mem_tracker_->consumption());
225 ASSERT_EQ(1, mem_tracker_->peak_consumption());
226 }
227}
228
229TEST_P(CacheTest, HitAndMiss) {
230 RETURN_IF_NO_NVM_CACHE(std::get<0>(GetParam()));

Callers

nothing calls this directly

Calls 11

InsertClass · 0.85
EncodeIntFunction · 0.70
DecodeIntFunction · 0.70
resetMethod · 0.65
consumptionMethod · 0.45
peak_consumptionMethod · 0.45
sizeMethod · 0.45
LookupMethod · 0.45
ValueMethod · 0.45
InvalidateMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected