(tmp_path)
| 7 | |
| 8 | |
| 9 | def 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 | |
| 19 | def test_extract_range_invalid_range(tmp_path): |
nothing calls this directly
no test coverage detected