MCPcopy
hub / github.com/dask/dask / test_methods

Function test_methods

dask/tests/test_delayed.py:257–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255
256
257def test_methods():
258 a = delayed("a b c d e")
259 assert a.split(" ").compute() == ["a", "b", "c", "d", "e"]
260 assert a.upper().replace("B", "A").split().count("A").compute() == 2
261 assert a.split(" ", pure=True).key == a.split(" ", pure=True).key
262 o = a.split(" ", dask_key_name="test")
263 assert o.key == "test"
264
265
266def test_attributes():

Callers

nothing calls this directly

Calls 5

delayedFunction · 0.90
splitMethod · 0.80
computeMethod · 0.45
countMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…