add nar tests

This commit is contained in:
cy 2025-04-28 17:37:04 -04:00
parent 54d4c714af
commit 09181ae785
5 changed files with 42 additions and 9 deletions

View file

@ -15,10 +15,10 @@ use crate::store::Store;
pub struct MakeNar<'a> {
path_info: &'a PathInfo,
store: Arc<Store>,
nar_hasher: Sha256,
pub nar_hasher: Sha256,
/// hash of compressed nar file
file_hasher: Sha256,
nar_size: u64,
pub nar_size: u64,
file_size: u64,
}