Skip to content

Commit 336a193

Browse files
committed
Significantly rework the ledger fuzzer
* Removes global state, simplifying `executed_actions` in the process. * Remove the possibility of non-exhaustiveness. * Now accepts a logger instead of using `debug.print`. * Replace managed types with unmanaged ones. * Removes dependency on the c_allocator and fix leaks. * Parameterize the data folder instead of hardcoding it.
1 parent b00cd3e commit 336a193

File tree

2 files changed

+202
-158
lines changed

2 files changed

+202
-158
lines changed

src/fuzz.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,6 @@ pub fn main() !void {
158158
=> |run_cmd| try allocators_fuzz.run(gpa, seed, run_cmd),
159159

160160
.ledger,
161-
=> |run_cmd| try ledger_fuzz.run(seed, run_cmd),
161+
=> |run_cmd| try ledger_fuzz.run(gpa, .from(logger), seed, sub_data_dir, run_cmd),
162162
}
163163
}

0 commit comments

Comments
 (0)