MCPcopy Create free account
hub / github.com/PabloLec/RecoverPy / test_extract_range_success

Function test_extract_range_success

tests/unit/test_block_extractor.py:9–16  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

7
8
9def test_extract_range_success(tmp_path):
10 source = tmp_path / "disk.img"
11 source.write_bytes(b"0123456789abcdef")
12 output = tmp_path / "out.bin"
13
14 extract_range(str(source), 4, 6, str(output), chunk_size=2)
15
16 assert output.read_bytes() == b"456789"
17
18
19def test_extract_range_invalid_range(tmp_path):

Callers

nothing calls this directly

Calls 1

extract_rangeFunction · 0.90

Tested by

no test coverage detected