MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_init

Method test_init

Lib/test/test_zstd.py:1557–1579  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1555 self.FRAME_42 = compress(self.DECOMPRESSED_42)
1556
1557 def test_init(self):
1558 with ZstdFile(io.BytesIO(COMPRESSED_100_PLUS_32KB)) as f:
1559 pass
1560 with ZstdFile(io.BytesIO(), "w") as f:
1561 pass
1562 with ZstdFile(io.BytesIO(), "x") as f:
1563 pass
1564 with ZstdFile(io.BytesIO(), "a") as f:
1565 pass
1566
1567 with ZstdFile(io.BytesIO(), "w", level=12) as f:
1568 pass
1569 with ZstdFile(io.BytesIO(), "w", options={CompressionParameter.checksum_flag:1}) as f:
1570 pass
1571 with ZstdFile(io.BytesIO(), "w", options={}) as f:
1572 pass
1573 with ZstdFile(io.BytesIO(), "w", level=20, zstd_dict=TRAINED_DICT) as f:
1574 pass
1575
1576 with ZstdFile(io.BytesIO(), "r", options={DecompressionParameter.window_log_max:25}) as f:
1577 pass
1578 with ZstdFile(io.BytesIO(), "r", options={}, zstd_dict=TRAINED_DICT) as f:
1579 pass
1580
1581 def test_init_with_PathLike_filename(self):
1582 with tempfile.NamedTemporaryFile(delete=False) as tmp_f:

Callers

nothing calls this directly

Calls 1

ZstdFileClass · 0.90

Tested by

no test coverage detected