| 36 | namespace { |
| 37 | |
| 38 | TEST(LRUCache, Empty) { |
| 39 | LRUCache<int, int> cache( |
| 40 | 5, [](const int key) { return std::make_shared<int>(key); }); |
| 41 | EXPECT_EQ(cache.NumElems(), 0); |
| 42 | EXPECT_EQ(cache.MaxNumElems(), 5); |
| 43 | } |
| 44 | |
| 45 | TEST(LRUCache, Get) { |
| 46 | LRUCache<int, int> cache( |
nothing calls this directly
no test coverage detected