MCPcopy Index your code
hub / github.com/dask/dask / test_inline_functions

Function test_inline_functions

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

Source from the content-addressed store, hash-verified

280
281
282def test_inline_functions():
283 x, y, i, d = "xyid"
284 dsk = {"out": (add, i, d), i: (inc, x), d: (double, y), x: 1, y: 1}
285
286 result = inline_functions(dsk, [], fast_functions={inc})
287 expected = {"out": (add, (inc, x), d), d: (double, y), x: 1, y: 1}
288 assert result == expected
289
290
291def test_inline_ignores_curries_and_partials():

Callers

nothing calls this directly

Calls 1

inline_functionsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…