Skip to main content

diff_snapshots

Function diff_snapshots 

Source
pub fn diff_snapshots(old: &Snapshot, new: &Snapshot) -> Vec<DiffChunk>
Expand description

Compute a line‑level diff between the debug representations of two snapshots.

§Example

let chunks = lupa::diff::diff_snapshots(&old, &new);
assert_eq!(chunks.len(), 3); // "Hello" equal, "World" deleted, "Rust" inserted