(path, expected_compression)
| 1757 | (pathlib.Path("path/to/file.zst"), "zstd"), |
| 1758 | ]) |
| 1759 | def test_compression_detection(path, expected_compression): |
| 1760 | if not Codec.is_available(expected_compression): |
| 1761 | with pytest.raises(pa.lib.ArrowNotImplementedError): |
| 1762 | Codec.detect(path) |
| 1763 | else: |
| 1764 | codec = Codec.detect(path) |
| 1765 | assert isinstance(codec, Codec) |
| 1766 | assert codec.name == expected_compression |
| 1767 | |
| 1768 | |
| 1769 | def test_unknown_compression_raises(): |
nothing calls this directly
no outgoing calls
no test coverage detected