MCPcopy
hub / github.com/dask/dask / test_reduction_names

Function test_reduction_names

dask/bag/tests/test_bag.py:381–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379
380
381def test_reduction_names():
382 assert b.sum().name.startswith("sum")
383 assert b.reduction(sum, sum).name.startswith("sum")
384 assert any(
385 isinstance(k, str) and k.startswith("max") for k in b.reduction(sum, max).dask
386 )
387 assert b.reduction(sum, sum, name="foo").name.startswith("foo")
388
389
390def test_tree_reductions():

Callers

nothing calls this directly

Calls 3

anyFunction · 0.85
sumMethod · 0.45
reductionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…