mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-26 22:50:07 +01:00
Add more snapshots
This commit is contained in:
parent
afdf87f6f7
commit
079ed4a992
@ -318,7 +318,7 @@ mod tests {
|
||||
.unwrap();
|
||||
results.push_str(&format!("{}\n", display_bitmap(&docids)));
|
||||
}
|
||||
milli_snap!(results, i);
|
||||
milli_snap!(results, format!("included_{i}"));
|
||||
let mut results = String::new();
|
||||
for i in 0..=255 {
|
||||
let i = i as f64;
|
||||
@ -334,7 +334,7 @@ mod tests {
|
||||
.unwrap();
|
||||
results.push_str(&format!("{}\n", display_bitmap(&docids)));
|
||||
}
|
||||
milli_snap!(results, i);
|
||||
milli_snap!(results, format!("excluded_{i}"));
|
||||
txn.commit().unwrap();
|
||||
}
|
||||
}
|
||||
@ -361,7 +361,7 @@ mod tests {
|
||||
results.push_str(&format!("{}\n", display_bitmap(&docids)));
|
||||
}
|
||||
|
||||
milli_snap!(results, i);
|
||||
milli_snap!(results, format!("included_{i}"));
|
||||
|
||||
let mut results = String::new();
|
||||
|
||||
@ -380,7 +380,7 @@ mod tests {
|
||||
results.push_str(&format!("{}\n", display_bitmap(&docids)));
|
||||
}
|
||||
|
||||
milli_snap!(results, i);
|
||||
milli_snap!(results, format!("excluded_{i}"));
|
||||
|
||||
txn.commit().unwrap();
|
||||
}
|
||||
@ -408,7 +408,7 @@ mod tests {
|
||||
results.push_str(&format!("{}\n", display_bitmap(&docids)));
|
||||
}
|
||||
|
||||
milli_snap!(results, i);
|
||||
milli_snap!(results, format!("included_{i}"));
|
||||
|
||||
let mut results = String::new();
|
||||
|
||||
@ -427,7 +427,7 @@ mod tests {
|
||||
results.push_str(&format!("{}\n", display_bitmap(&docids)));
|
||||
}
|
||||
|
||||
milli_snap!(results, i);
|
||||
milli_snap!(results, format!("excluded_{i}"));
|
||||
|
||||
txn.commit().unwrap();
|
||||
}
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
source: milli/src/search/facet/facet_range_search.rs
|
||||
---
|
||||
57d35cfa419a19a1a1f8d7c8ef096e0f
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
source: milli/src/search/facet/facet_range_search.rs
|
||||
---
|
||||
3dbe0547b42759795e9b16989df72cee
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
source: milli/src/search/facet/facet_range_search.rs
|
||||
---
|
||||
ca59f20e043a4d52c49e15b10adf96bb
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
source: milli/src/search/facet/facet_range_search.rs
|
||||
---
|
||||
cb69e0fe10fb299bafe77514204379cb
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
source: milli/src/search/facet/facet_range_search.rs
|
||||
---
|
||||
b976551ceff412bfb2ec9bfbda320bbb
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
source: milli/src/search/facet/facet_range_search.rs
|
||||
---
|
||||
7620ca1a96882c7147d3fd996570f9b3
|
@ -853,7 +853,7 @@ mod tests {
|
||||
txn.commit().unwrap();
|
||||
}
|
||||
verify_structure_validity(&index, 0);
|
||||
milli_snap!(format!("{index}"));
|
||||
milli_snap!(format!("{index}"), "before_delete");
|
||||
|
||||
for &key in keys.iter() {
|
||||
verify_structure_validity(&index, 0);
|
||||
@ -862,11 +862,11 @@ mod tests {
|
||||
txn.commit().unwrap();
|
||||
}
|
||||
verify_structure_validity(&index, 0);
|
||||
milli_snap!(format!("{index}"));
|
||||
milli_snap!(format!("{index}"), "after_delete");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn shuffle_merge_string() {
|
||||
fn shuffle_merge_string_and_delete() {
|
||||
let index = FacetIndex::<StrRefCodec>::new(4, 8);
|
||||
|
||||
let mut keys = (1000..1064).into_iter().collect::<Vec<_>>();
|
||||
@ -883,7 +883,7 @@ mod tests {
|
||||
txn.commit().unwrap();
|
||||
}
|
||||
verify_structure_validity(&index, 0);
|
||||
milli_snap!(format!("{index}"), 1);
|
||||
milli_snap!(format!("{index}"), "before_delete");
|
||||
|
||||
for &key in keys.iter() {
|
||||
verify_structure_validity(&index, 0);
|
||||
@ -892,7 +892,7 @@ mod tests {
|
||||
txn.commit().unwrap();
|
||||
}
|
||||
verify_structure_validity(&index, 0);
|
||||
milli_snap!(format!("{index}"), 2);
|
||||
milli_snap!(format!("{index}"), "after_delete");
|
||||
}
|
||||
|
||||
// fuzz tests
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
source: milli/src/update/facet/incremental.rs
|
||||
---
|
||||
b17b2c4ec87a778aae07854c96c08b48
|
Loading…
x
Reference in New Issue
Block a user