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

Function test_clone_key

dask/tests/test_base.py:949–958  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

947
948
949def test_clone_key():
950 for key, seed in [("x", 123), (("x", 1), 456), (("sum-1-2-3", h1, 1), 123)]:
951 validate_key(clone_key(key, seed))
952 assert clone_key(key, seed) != key
953 assert clone_key(key, seed) == clone_key(key, seed)
954 assert clone_key(key, seed) != clone_key(key, seed + 1)
955 assert key_split(clone_key(key, seed)) == key_split(key)
956
957 with pytest.raises(TypeError):
958 clone_key(1, 2)
959
960
961def test_compute_as_if_collection_low_level_task_graph():

Callers

nothing calls this directly

Calls 3

validate_keyFunction · 0.90
clone_keyFunction · 0.90
key_splitFunction · 0.90

Tested by

no test coverage detected