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

Function test_functions_of

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

Source from the content-addressed store, hash-verified

334
335
336def test_functions_of():
337 a = lambda x: x
338 b = lambda x: x
339 assert functions_of((a, 1)) == {a}
340 assert functions_of((a, (b, 1))) == {a, b}
341 assert functions_of((a, [(b, 1)])) == {a, b}
342 assert functions_of((a, [[[(b, 1)]]])) == {a, b}
343 assert functions_of(1) == set()
344 assert functions_of(a) == set()
345 assert functions_of((a,)) == {a}
346
347
348def test_inline_cull_dependencies():

Callers

nothing calls this directly

Calls 2

functions_ofFunction · 0.90
setClass · 0.85

Tested by

no test coverage detected