influxdb/core/mutable_batch_lp/fuzz
Trevor Hilton ff8ba631e4
chore(sync): influxdb_pro 2026-03-17 (#27285)
Source: 877ed0c2e27f0a5f16666ad13e1bc6a09035ca0d
2026-03-17 19:53:24 -07:00
..
fuzz_targets chore(sync): influxdb_pro 2026-03-17 (#27285) 2026-03-17 19:53:24 -07:00
Cargo.toml chore(sync): influxdb_pro 2026-03-17 (#27285) 2026-03-17 19:53:24 -07:00
README.md chore(sync): influxdb_pro 2026-02-26 (#27256) 2026-02-27 12:36:46 -05:00

README.md

Fuzz tests

The fuzz tests in this fuzz crate were created using cargo-fuzz version 0.11.3.

One-time setup

To install cargo-fuzz:

$ cargo install cargo-fuzz --locked

You'll also need a nightly Rust:

$ rustup install nightly

Running

To run an existing fuzz test, change to the mutable_batch_lp directory and run:

$ cargo +nightly fuzz run <TARGET>

where <TARGET> is the name of one of the files in fuzz/fuzz_targets. To list all targets, run:

$ cargo fuzz list

Adding more

To add more fuzzing targets, run:

$ cargo fuzz add <TARGET>

which will add a new file in fuzz/fuzz_targets. Edit the new file to call the code you want to fuzz; see the cargo-fuzz tutorial for examples.