MCPcopy
hub / github.com/dask/dask / test_meta_from_array_literal

Function test_meta_from_array_literal

dask/array/tests/test_array_utils.py:59–65  ·  view source on GitHub ↗
(meta, dtype)

Source from the content-addressed store, hash-verified

57@pytest.mark.parametrize("meta", ["", "str", "", "str", b"", b"str"])
58@pytest.mark.parametrize("dtype", [None, "bool", "int", "float"])
59def test_meta_from_array_literal(meta, dtype):
60 if dtype is None:
61 assert meta_from_array(meta, dtype=dtype).dtype.kind in "SU"
62 else:
63 assert (
64 meta_from_array(meta, dtype=dtype).dtype == np.array([], dtype=dtype).dtype
65 )
66
67
68def test_meta_from_array_type_inputs():

Callers

nothing calls this directly

Calls 1

meta_from_arrayFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…