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

Function test_clone_key

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

Source from the content-addressed store, hash-verified

936
937
938def test_clone_key():
939 for key, seed in [("x", 123), (("x", 1), 456), (("sum-1-2-3", h1, 1), 123)]:
940 validate_key(clone_key(key, seed))
941 assert clone_key(key, seed) != key
942 assert clone_key(key, seed) == clone_key(key, seed)
943 assert clone_key(key, seed) != clone_key(key, seed + 1)
944 assert key_split(clone_key(key, seed)) == key_split(key)
945
946 with pytest.raises(TypeError):
947 clone_key(1, 2)
948
949
950def 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