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

Function test_extract_range_invalid_range

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

Source from the content-addressed store, hash-verified

17
18
19def test_extract_range_invalid_range(tmp_path):
20 source = tmp_path / "disk.img"
21 source.write_bytes(b"abc")
22 output = tmp_path / "out.bin"
23
24 with pytest.raises(BlockExtractionError):
25 extract_range(str(source), -1, 1, str(output))
26
27 with pytest.raises(BlockExtractionError):
28 extract_range(str(source), 0, 0, str(output))
29
30
31def test_extract_range_permission_error(mocker, tmp_path):

Callers

nothing calls this directly

Calls 1

extract_rangeFunction · 0.90

Tested by

no test coverage detected