finish the test for the compatibility between v4 and v5

This commit is contained in:
Tamo 2022-10-07 13:17:23 +02:00 committed by Clément Renault
parent 47e0288747
commit efe0a5f422
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
10 changed files with 2757 additions and 10 deletions

View file

@ -19,7 +19,10 @@ use crate::{IndexMetadata, Result, Version};
use self::meta::{DumpMeta, IndexUuid};
use super::{/* compat::v4_to_v5::CompatV4ToV5, */ DumpReader, IndexReader};
use super::{
compat::v4_to_v5::CompatV4ToV5, /* compat::v4_to_v5::CompatV4ToV5, */ DumpReader,
IndexReader,
};
pub type Document = serde_json::Map<String, serde_json::Value>;
pub type Settings<T> = settings::Settings<T>;
@ -90,9 +93,9 @@ impl V4Reader {
})
}
// pub fn to_v5(self) -> CompatV4ToV5 {
// CompatV4ToV5::new(self)
// }
pub fn to_v5(self) -> CompatV4ToV5 {
CompatV4ToV5::new(self)
}
pub fn version(&self) -> Version {
Version::V4