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

Function test_default_compression_level

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

Source from the content-addressed store, hash-verified

190 "c_type, c_name", [(CNONE, "none"), (LZ4, "lz4"), (ZLIB, "zlib"), (LZMA, "lzma"), (ZSTD, "zstd")]
191)
192def test_default_compression_level(c_type, c_name):
193 cs = CompressionSpec(c_name).compressor
194 assert isinstance(cs, c_type)
195 if c_type in (ZLIB, LZMA):
196 assert cs.level == 6
197 elif c_type is ZSTD:
198 assert cs.level == 3
199
200
201@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

CompressionSpecClass · 0.85

Tested by

no test coverage detected