(archive_bytes: &[u8], staging: &Path)
| 2034 | } |
| 2035 | |
| 2036 | fn unpack_into(archive_bytes: &[u8], staging: &Path) { |
| 2037 | let mut archive = tar::Archive::new(std::io::Cursor::new(archive_bytes)); |
| 2038 | archive.unpack(staging).expect("unpack archive"); |
| 2039 | } |
| 2040 | |
| 2041 | #[test] |
| 2042 | fn place_downloaded_file_writes_regular_file_at_dest() { |
no outgoing calls