Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
4f1c66e
build(deps): add test-case as a dev-dependency
sami-daniel Aug 13, 2026
94a4d38
fix(side-diff): compute the column layout without signed casts
sami-daniel Aug 13, 2026
8a174b1
fix(side-diff): honour --expand-tabs in the column layout
sami-daniel Aug 13, 2026
6166242
test(fuzz): fuzz width and tabsize in the side-by-side target
sami-daniel Aug 13, 2026
93a7ac1
test(side-diff): drop the comment on the expanded layout expectation
sami-daniel Aug 13, 2026
ed163a4
test(side-diff): cover the carriage return padding at the widest line
sami-daniel Aug 13, 2026
12feb6a
test(fuzz): fuzz the whole tab size range in the side-by-side target
sami-daniel Aug 13, 2026
88c35c8
style(fuzz): write the exponent in the width comment as ASCII
sami-daniel Aug 13, 2026
bd0a9bc
test(side-diff): replace test-case with plain loops
sami-daniel Oct 6, 2026
3e17e59
style(fuzz): shorten the width comment in the side-by-side target
sami-daniel Oct 6, 2026
4b0350b
style(side-diff): restore the comment on the unpadded right line
sami-daniel Oct 6, 2026
25d888b
style(side-diff): restore the left and right file notes on diff
sami-daniel Oct 6, 2026
1cc188a
test(side-diff): drop the duplicated width 130 layout assertions
sami-daniel Oct 6, 2026
b538e92
test(side-diff): assert on the rendered output
sami-daniel Oct 6, 2026
aa7a802
test(side-diff): assert the output at the widest line and tab size
sami-daniel Oct 6, 2026
cafc698
test(side-diff): adapt two tests to the gutter marker fix from main
sami-daniel Oct 6, 2026
2ec7fba
fix(side-diff): lay out each row from the column the text ended at
sami-daniel Oct 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions fuzz/fuzz_targets/fuzz_side.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ use diffutilslib::params::Params;
use std::fs::{self, File};
use std::io::Write;

fuzz_target!(|x: (Vec<u8>, Vec<u8>, /* usize, usize */ bool)| {
let (original, new, /* width, tabsize, */ expand) = x;

// if width == 0 || tabsize == 0 {
// return;
// }
// The width is a u16 because the output is padded up to it. A usize
// width needs exabytes, and a u32 one took 537 MB and 57 seconds.
fuzz_target!(|x: (Vec<u8>, Vec<u8>, u16, usize, bool)| {
let (original, new, width, tabsize, expand) = x;

let params = Params {
// width,
// tabsize,
width: width as usize,
tabsize,
expand_tabs: expand,
..Default::default()
};
Expand Down
Loading
Loading