Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyigumnov committed Jul 16, 2024
1 parent 10d7ca7 commit 4f14b04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added tests/fixtures/slice_from_raw_parts.zip
Binary file not shown.
7 changes: 7 additions & 0 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,3 +854,10 @@ fn iterate_archive_with_filter_path() {
"filtered file list inside the archive did not match"
);
}

#[test]
fn test_slice_from_raw_parts() {
let mut source = std::fs::File::open("tests/fixtures/slice_from_raw_parts.zip").unwrap();
let mut outfile = tempfile::NamedTempFile::new().unwrap();
uncompress_archive_file(&mut source, &mut outfile, "1/2/1.txt").unwrap();
}

0 comments on commit 4f14b04

Please sign in to comment.