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

Commit cd6f0de

Browse files
committed
Add a fuzz test for index operations (clear, import, delete, settings)
It is very limited so far. It is meant to catch bugs with soft-deleted document ids.
1 parent a8defb5 commit cd6f0de

File tree

6 files changed

+511
-4
lines changed

6 files changed

+511
-4
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ milli/target/
1616
## ... unreviewed
1717
*.snap.new
1818

19-
# Fuzzcheck data for the facet indexing fuzz test
20-
milli/fuzz/update::facet::incremental::fuzz::fuzz/
19+
# Fuzzcheck data
20+
milli/fuzz/*

filter-parser/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
//! field = _geoRadius(12, 13, 14)
3939
//! ```
4040
//!
41+
#![feature(anonymous_lifetime_in_impl_trait)]
4142

4243
mod condition;
4344
mod error;

milli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ md5 = "0.7.0"
5757
rand = {version = "0.8.5", features = ["small_rng"] }
5858

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

6262
[features]
6363
default = [ "charabia/default" ]

milli/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(all(test, fuzzing), feature(no_coverage))]
1+
#![cfg_attr(all(test, fuzzing), feature(no_coverage, once_cell))]
22
#[macro_use]
33
pub mod documents;
44

0 commit comments

Comments
 (0)