Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
42d97db
build(deps): add test-case as a dev-dependency
sami-daniel Aug 13, 2026
5cb2d6e
fix(side-diff): compute the column layout without signed casts
sami-daniel Aug 13, 2026
a4a386f
fix(side-diff): honour --expand-tabs in the column layout
sami-daniel Aug 13, 2026
3a0ebc4
test(fuzz): fuzz width and tabsize in the side-by-side target
sami-daniel Aug 13, 2026
e5803fd
test(side-diff): drop the comment on the expanded layout expectation
sami-daniel Aug 13, 2026
761cf03
test(side-diff): cover the carriage return padding at the widest line
sami-daniel Aug 13, 2026
50a82ee
test(fuzz): fuzz the whole tab size range in the side-by-side target
sami-daniel Aug 13, 2026
9d2cfde
style(fuzz): write the exponent in the width comment as ASCII
sami-daniel Aug 13, 2026
7fbd0ad
test(side-diff): replace test-case with plain loops
sami-daniel Oct 6, 2026
c152626
style(fuzz): shorten the width comment in the side-by-side target
sami-daniel Oct 6, 2026
2716301
style(side-diff): restore the comment on the unpadded right line
sami-daniel Oct 6, 2026
85c6026
style(side-diff): restore the left and right file notes on diff
sami-daniel Oct 6, 2026
19f3a7a
test(side-diff): drop the duplicated width 130 layout assertions
sami-daniel Oct 6, 2026
1eb4bc7
test(side-diff): assert on the rendered output
sami-daniel Oct 6, 2026
58b382b
test(side-diff): assert the output at the widest line and tab size
sami-daniel Oct 6, 2026
61c44e9
test(side-diff): adapt two tests to the gutter marker fix from main
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