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

Method test_MemoryCachedArray

xarray/tests/test_variable.py:3032–3039  ·  view source on GitHub ↗
(self, load_async)

Source from the content-addressed store, hash-verified

3030 @pytest.mark.asyncio
3031 @pytest.mark.parametrize("load_async", [True, False])
3032 async def test_MemoryCachedArray(self, load_async):
3033 v = Variable(dims=("x", "y"), data=MemoryCachedArray(self.d))
3034 await self.check_orthogonal_indexing(v, load_async)
3035 await self.check_vectorized_indexing(v, load_async)
3036 # doubly wrapping
3037 v = Variable(dims=("x", "y"), data=CopyOnWriteArray(MemoryCachedArray(self.d))) # type: ignore[arg-type]
3038 await self.check_orthogonal_indexing(v, load_async)
3039 await self.check_vectorized_indexing(v, load_async)
3040
3041 @requires_dask
3042 @pytest.mark.asyncio

Callers

nothing calls this directly

Calls 5

VariableClass · 0.90
MemoryCachedArrayClass · 0.90
CopyOnWriteArrayClass · 0.90

Tested by

no test coverage detected