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

Function test_materializedlayer_cull_preserves_annotations

dask/tests/test_highgraph.py:203–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201
202
203def test_materializedlayer_cull_preserves_annotations():
204 layer = MaterializedLayer(
205 {"a": 42, "b": 3.14},
206 annotations={"foo": "bar"},
207 )
208
209 culled_layer, _ = layer.cull({"a"}, [])
210 assert len(culled_layer) == 1
211 assert culled_layer.annotations == {"foo": "bar"}
212
213
214def test_annotations_leak():

Callers

nothing calls this directly

Calls 2

MaterializedLayerClass · 0.90
cullMethod · 0.45

Tested by

no test coverage detected