write and test the compat layer from v3 to v4

This commit is contained in:
Tamo
2022-10-09 02:49:42 +02:00
committed by Clément Renault
parent 089106a970
commit 22ffbf3676
17 changed files with 1791 additions and 39 deletions

View File

@ -45,8 +45,8 @@ pub fn open(dump: impl Read) -> Result<Compat> {
// Version::V1 => Ok(Box::new(v1::Reader::open(path)?)),
Version::V1 => todo!(),
Version::V2 => todo!(),
Version::V3 => todo!(),
Version::V4 => todo!(),
Version::V3 => Ok(v3::V3Reader::open(path)?.to_v4().to_v5().to_v6().into()),
Version::V4 => Ok(v4::V4Reader::open(path)?.to_v5().to_v6().into()),
Version::V5 => Ok(v5::V5Reader::open(path)?.to_v6().into()),
Version::V6 => Ok(v6::V6Reader::open(path)?.into()),
}