* ["LRUCache","put","put","get","put","put","get"] [[2],[2,1],[2,2],[2],[1,1],[4,1],[2]] */
(t *testing.T)
| 45 | [[2],[2,1],[2,2],[2],[1,1],[4,1],[2]] |
| 46 | */ |
| 47 | func TestLRUCache_4(t *testing.T) { |
| 48 | cache := Constructor(2) |
| 49 | cache.Put(2, 1) |
| 50 | cache.Put(2, 2) |
| 51 | assert.Equal(t, 2, cache.Get(2)) |
| 52 | } |
| 53 | |
| 54 | /* |
| 55 | ["LRUCache","put","put","put","put","get","get"] |
nothing calls this directly
no test coverage detected