MCPcopy
hub / github.com/dask/dask / test_is_empty_numpy_array

Function test_is_empty_numpy_array

dask/tests/test_utils.py:958–964  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

956
957
958def test_is_empty_numpy_array():
959 np = pytest.importorskip("numpy")
960
961 assert is_empty(np.array([])) is True
962 assert is_empty(np.array([1, 2])) is False
963 # len() == 3 → not empty even though one dimension is 0
964 assert is_empty(np.empty((3, 0))) is False
965
966
967def test_is_empty_fake_sparse_like_object():

Callers

nothing calls this directly

Calls 2

is_emptyFunction · 0.90
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…