Skip to content

Commit

Permalink
add hash test for full filehashes
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Mar 14, 2024
1 parent eace35b commit d12fe79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/task/file_hashes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ mod test {
Some("2c806b6ebece677c")
);

#[cfg(unix)]
{
let mut hasher = Xxh3::new();
hashes.hash(&mut hasher);
let s = format!("{:x}", hasher.finish());
assert_eq!(s, "be05bb5d7c6e8e6");
}

let hashes = FileHashes::from_files(target_dir.path(), vec!["src/"])
.await
.unwrap();
Expand Down

0 comments on commit d12fe79

Please sign in to comment.