fix the addition + deletion bug

This commit is contained in:
Tamo 2023-05-17 18:19:43 +02:00
parent d7ddf4925e
commit 4391cba6ca
No known key found for this signature in database
GPG key ID: 20CD8020AFA88D69
14 changed files with 518 additions and 18 deletions

View file

@ -111,7 +111,6 @@ pub enum Error {
Io(#[from] io::Error),
}
#[cfg(test)]
pub fn objects_from_json_value(json: serde_json::Value) -> Vec<crate::Object> {
let documents = match json {
object @ serde_json::Value::Object(_) => vec![object],
@ -141,7 +140,6 @@ macro_rules! documents {
}};
}
#[cfg(test)]
pub fn documents_batch_reader_from_objects(
objects: impl IntoIterator<Item = Object>,
) -> DocumentsBatchReader<std::io::Cursor<Vec<u8>>> {