Tests for cache system

This commit is contained in:
Artur Jamro
2019-07-29 16:43:48 -07:00
committed by Dan Gohman
parent 697fa59b55
commit c3215f4f1b
7 changed files with 355 additions and 4 deletions

View File

@@ -159,7 +159,7 @@ pub struct ModuleCacheEntry {
mod_cache_path: Option<PathBuf>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct ModuleCacheData {
compilation: Compilation,
relocations: Relocations,
@@ -505,3 +505,6 @@ impl<'de> Deserialize<'de> for JtOffsetsWrapper<'_> {
deserializer.deserialize_seq(JtOffsetsWrapperVisitor {})
}
}
#[cfg(test)]
mod tests;