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

Method test_CopyOnWriteArray

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

Source from the content-addressed store, hash-verified

3019 @pytest.mark.asyncio
3020 @pytest.mark.parametrize("load_async", [True, False])
3021 async def test_CopyOnWriteArray(self, load_async):
3022 v = Variable(dims=("x", "y"), data=CopyOnWriteArray(self.d))
3023 await self.check_orthogonal_indexing(v, load_async)
3024 await self.check_vectorized_indexing(v, load_async)
3025 # doubly wrapping
3026 v = Variable(dims=("x", "y"), data=CopyOnWriteArray(LazilyIndexedArray(self.d))) # type: ignore[arg-type]
3027 await self.check_orthogonal_indexing(v, load_async)
3028 await self.check_vectorized_indexing(v, load_async)
3029
3030 @pytest.mark.asyncio
3031 @pytest.mark.parametrize("load_async", [True, False])

Callers

nothing calls this directly

Calls 5

VariableClass · 0.90
CopyOnWriteArrayClass · 0.90
LazilyIndexedArrayClass · 0.90

Tested by

no test coverage detected