MCPcopy Index your code
hub / github.com/pydata/xarray / test_repr_lazy_data

Method test_repr_lazy_data

xarray/tests/test_variable.py:1288–1291  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1286 assert expected == repr(v)
1287
1288 def test_repr_lazy_data(self):
1289 v = Variable("x", LazilyIndexedArray(np.arange(2e5)))
1290 assert "200000 values with dtype" in repr(v)
1291 assert isinstance(v._data, LazilyIndexedArray)
1292
1293 def test_detect_indexer_type(self):
1294 """Tests indexer type was correctly detected."""

Callers

nothing calls this directly

Calls 3

VariableClass · 0.90
LazilyIndexedArrayClass · 0.90
arangeMethod · 0.80

Tested by

no test coverage detected