| 216 | ShardingPolicy::SingleShard))); |
| 217 | |
| 218 | TEST_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 | |
| 229 | TEST_P(CacheTest, HitAndMiss) { |
| 230 | RETURN_IF_NO_NVM_CACHE(std::get<0>(GetParam())); |
nothing calls this directly
no test coverage detected