MCPcopy Index your code
hub / github.com/pydata/xarray / test_del

Function test_del

xarray/tests/test_backends_lru_cache.py:54–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52
53
54def test_del() -> None:
55 cache: LRUCache[Any, Any] = LRUCache(maxsize=2)
56 cache["x"] = 1
57 cache["y"] = 2
58 del cache["x"]
59 assert dict(cache) == {"y": 2}
60
61
62def test_on_evict() -> None:

Callers

nothing calls this directly

Calls 1

LRUCacheClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…