()
| 60 | |
| 61 | |
| 62 | def test_on_evict() -> None: |
| 63 | on_evict = mock.Mock() |
| 64 | cache = LRUCache(maxsize=1, on_evict=on_evict) |
| 65 | cache["x"] = 1 |
| 66 | cache["y"] = 2 |
| 67 | on_evict.assert_called_once_with("x", 1) |
| 68 | |
| 69 | |
| 70 | def test_on_evict_trivial() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…