Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Add a fuzz test for index operations (clear, import, delete, settings)
Browse files Browse the repository at this point in the history
It is very limited so far. It is meant to catch bugs with soft-deleted
document ids.
  • Loading branch information
loiclec committed Dec 22, 2022
1 parent a8defb5 commit cd6f0de
Show file tree
Hide file tree
Showing 6 changed files with 511 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ milli/target/
## ... unreviewed
*.snap.new

# Fuzzcheck data for the facet indexing fuzz test
milli/fuzz/update::facet::incremental::fuzz::fuzz/
# Fuzzcheck data
milli/fuzz/*
1 change: 1 addition & 0 deletions filter-parser/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
//! field = _geoRadius(12, 13, 14)
//! ```
//!
#![feature(anonymous_lifetime_in_impl_trait)]

mod condition;
mod error;
Expand Down
2 changes: 1 addition & 1 deletion milli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ md5 = "0.7.0"
rand = {version = "0.8.5", features = ["small_rng"] }

[target.'cfg(fuzzing)'.dev-dependencies]
fuzzcheck = "0.12.1"
fuzzcheck = { path = "/Users/meilisearch/Documents/fuzzcheck-rs/fuzzcheck" }

[features]
default = [ "charabia/default" ]
Expand Down
2 changes: 1 addition & 1 deletion milli/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(all(test, fuzzing), feature(no_coverage))]
#![cfg_attr(all(test, fuzzing), feature(no_coverage, once_cell))]
#[macro_use]
pub mod documents;

Expand Down
Loading

0 comments on commit cd6f0de

Please sign in to comment.