MCPcopy Create free account
hub / github.com/YuminosukeSato/ironkernel / test_empty_mean_raises

Function test_empty_mean_raises

tests/python/test_data_model.py:9–13  ·  view source on GitHub ↗

mean() on empty buffer raises ValueError.

()

Source from the content-addressed store, hash-verified

7
8
9def test_empty_mean_raises() -> None:
10 """mean() on empty buffer raises ValueError."""
11 buf = rt.asarray(np.array([], dtype=np.float64))
12 with pytest.raises(ValueError, match="empty"):
13 rt.go(kernel.mean(buf)).result()
14
15
16def test_single_element_reduce() -> None:

Callers

nothing calls this directly

Calls 4

asarrayMethod · 0.45
resultMethod · 0.45
goMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected