| 77 | const V* Find(Cache* cache, int num) { return cache->Find(MakeKey(num)); } |
| 78 | |
| 79 | bool Replace(Cache* cache, int num, int value_num) { |
| 80 | auto pair = cache->Replace(MakeKey(num), V{value_num}); |
| 81 | EXPECT_NE(pair.second, nullptr); |
| 82 | EXPECT_EQ(*pair.second, V{value_num}); |
| 83 | return pair.first; |
| 84 | } |
| 85 | }; |
| 86 | |
| 87 | TEST_F(TestLruCache, Basics) { |
nothing calls this directly
no outgoing calls
no test coverage detected