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

Function test_copy

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

Source from the content-addressed store, hash-verified

83
84
85def test_copy():
86 h1 = HighLevelGraph(
87 {"a": {"a": "b"}, "b": {"b": 1}},
88 {"a": {"b"}, "b": set()},
89 )
90 h1.get_all_dependencies()
91 assert h1.key_dependencies
92 h2 = h1.copy()
93 for k in ("layers", "dependencies", "key_dependencies"):
94 v1 = getattr(h1, k)
95 v2 = getattr(h2, k)
96 assert v1 is not v2
97 assert v1 == v2
98
99
100def test_cull():

Callers

nothing calls this directly

Calls 4

get_all_dependenciesMethod · 0.95
copyMethod · 0.95
HighLevelGraphClass · 0.90
setClass · 0.85

Tested by

no test coverage detected