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

Function test_inline_functions_protects_output_keys

dask/tests/test_optimization.py:330–333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328
329
330def test_inline_functions_protects_output_keys():
331 dsk = {"x": (inc, 1), "y": (double, "x")}
332 assert inline_functions(dsk, [], [inc]) == {"y": (double, (inc, 1))}
333 assert inline_functions(dsk, ["x"], [inc]) == {"y": (double, "x"), "x": (inc, 1)}
334
335
336def test_functions_of():

Callers

nothing calls this directly

Calls 1

inline_functionsFunction · 0.90

Tested by

no test coverage detected