MCPcopy Create free account
hub / github.com/dask/dask / test_is_empty_object_with_shape_only

Function test_is_empty_object_with_shape_only

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

Source from the content-addressed store, hash-verified

989
990
991def test_is_empty_object_with_shape_only():
992 class FakeShape:
993 def __init__(self, shape):
994 self.shape = shape
995
996 assert is_empty(FakeShape((0, 5))) is True
997 assert is_empty(FakeShape((3, 5))) is False
998
999
1000def test_is_empty_fallback_object():

Callers

nothing calls this directly

Calls 2

is_emptyFunction · 0.90
FakeShapeClass · 0.85

Tested by

no test coverage detected