MCPcopy Create free account
hub / github.com/dask/dask / test_prefer_cheap_dependent

Function test_prefer_cheap_dependent

dask/tests/test_cache.py:74–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73
74def test_prefer_cheap_dependent():
75 dsk = {"x": (f, 0.01, 10), "y": (f, 0.000001, 1, "x")}
76 c = Cache(10000)
77 with c:
78 get_sync(dsk, "y")
79
80 assert c.cache.scorer.cost["x"] < c.cache.scorer.cost["y"]

Callers

nothing calls this directly

Calls 2

CacheClass · 0.90
get_syncFunction · 0.90

Tested by

no test coverage detected