MCPcopy
hub / github.com/dask/dask / test_reductions

Function test_reductions

dask/array/_array_expr/tests/test_collection.py:72–76  ·  view source on GitHub ↗
(arr, func)

Source from the content-addressed store, hash-verified

70
71@pytest.mark.parametrize("func", ["min", "max", "sum", "prod", "mean", "any", "all"])
72def test_reductions(arr, func):
73 # var and std need __array_function__
74 result = getattr(arr, func)(axis=0)
75 expected = getattr(arr.compute(), func)(axis=0)
76 assert_eq(result, expected)
77
78
79@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…