Skip to content

Commit c6460b5

Browse files
committed
coverage
1 parent 2282cb9 commit c6460b5

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/test_codecs/test_nvcomp.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,21 @@ def test_compute_encoded_chunk_size() -> None:
113113
prototype=buffer_prototype,
114114
),
115115
)
116+
117+
118+
async def test_nvcomp_zstd_encode_none() -> None:
119+
codec = NvcompZstdCodec(level=0, checksum=False)
120+
chunks_and_specs = [
121+
(
122+
None,
123+
ArraySpec(
124+
shape=(10, 10),
125+
dtype=zarr.core.dtype.npy.int.Int32,
126+
fill_value=0,
127+
config=ArrayConfig(order="C", write_empty_chunks=False),
128+
prototype=buffer_prototype,
129+
),
130+
)
131+
]
132+
result = await codec.encode(chunks_and_specs)
133+
assert result == [None]

0 commit comments

Comments
 (0)