forked from proxmox-mirrors/proxmox-backup
Builds a synthetic three-chunk dynamic index with a digest collision at distinct positions and asserts lookup_dynamic_entries populates end_offset from dynamic_entry.end(). A regression that swaps in a range-relative value (size, prev_end) is caught here, before it would manifest as backwards PXAR_PAYLOAD_REF offsets downstream. It's narrow on purpose, well more due to the limitations of current test harness, anyhow: pins the identity the chunk-reuse predicate relies on, but does not exercise the predicate's call sites, the debug-mode underflow at the threshold-padding subtraction, or end-to-end PXAR_PAYLOAD_REF monotonicity. A behavioral test on the full flush path is followup work. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||