In the recent CodeCov report, they flag these lines as uncoverged
|
def encode(self, buf): |
|
try: |
|
buf = np.asarray(buf) |
|
except ValueError: |
|
buf = np.asarray(buf, dtype=object) |
It is a little unclear why as those lines were introduced with corresponding tests some time ago in PR ( #417 ). AFAICT recent NumPy versions still need to use that fallback. In fact that behavior is expected and defined in NEP 34
This may need further investigation to resolve
Additionally CodeCov flags this line as uncovered.
|
@pytest.mark.parametrize("codec_class", ALL_CODECS) |
|
def test_docstring(codec_class: type[numcodecs.zarr3._NumcodecsCodec]): |
|
if codec_class.__doc__ is None: |
|
pytest.skip() |
|
assert "See :class:`numcodecs." in codec_class.__doc__ |
Just looking at it, would naively add a # pragma: no cover, but wanted to mention it here in case there is something I'm missing
In the recent CodeCov report, they flag these lines as uncoverged
numcodecs/numcodecs/json.py
Lines 68 to 72 in ad1ad67
It is a little unclear why as those lines were introduced with corresponding tests some time ago in PR ( #417 ). AFAICT recent NumPy versions still need to use that fallback. In fact that behavior is expected and defined in NEP 34
This may need further investigation to resolve
Additionally CodeCov flags this line as uncovered.
numcodecs/numcodecs/tests/test_zarr3.py
Lines 51 to 55 in ad1ad67
Just looking at it, would naively add a
# pragma: no cover, but wanted to mention it here in case there is something I'm missing