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

Function test_repr

dask/array/tests/test_array_core.py:1964–1970  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1962
1963
1964def test_repr():
1965 d = da.ones((4, 4), chunks=(2, 2))
1966 assert key_split(d.name) in repr(d)
1967 assert str(d.shape) in repr(d)
1968 assert str(d.dtype) in repr(d)
1969 d = da.ones((4000, 4), chunks=(4, 2))
1970 assert len(str(d)) < 1000
1971
1972
1973def test_repr_meta():

Callers

nothing calls this directly

Calls 2

key_splitFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected