MCPcopy
hub / github.com/borgbackup/borg / test_specified_compression_level

Function test_specified_compression_level

src/borg/testsuite/compress_test.py:204–208  ·  view source on GitHub ↗
(c_type, c_name, c_levels)

Source from the content-addressed store, hash-verified

202 "c_type, c_name, c_levels", [(ZLIB, "zlib", [0, 9]), (LZMA, "lzma", [0, 9]), (ZSTD, "zstd", [1, 22])]
203)
204def test_specified_compression_level(c_type, c_name, c_levels):
205 for level in c_levels:
206 cs = CompressionSpec(f"{c_name},{level}").compressor
207 assert isinstance(cs, c_type)
208 assert cs.level == level
209
210
211@pytest.mark.parametrize("invalid_spec", ["", "lzma,9,invalid", "invalid"])

Callers

nothing calls this directly

Calls 1

CompressionSpecClass · 0.85

Tested by

no test coverage detected