()
| 98 | |
| 99 | |
| 100 | def test_cull(): |
| 101 | a = {"x": 1, "y": (inc, "x")} |
| 102 | hg = HighLevelGraph({"a": a}, {"a": set()}) |
| 103 | |
| 104 | culled_by_x = hg.cull({"x"}) |
| 105 | assert dict(culled_by_x) == {"x": 1} |
| 106 | |
| 107 | # parameter is the raw output of __dask_keys__() |
| 108 | culled_by_y = hg.cull([[["y"]]]) |
| 109 | assert dict(culled_by_y) == a |
| 110 | |
| 111 | |
| 112 | def test_cull_layers(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…