create_test_zip

Function create_test_zip 

Source
pub fn create_test_zip(entries: Vec<(&str, &[u8])>) -> Vec<u8> 
Expand description

Creates an in-memory ZIP archive from a list of entries.

Each entry is a tuple of (path, content). Files are stored uncompressed with mode 0o644.

§Examples

use exarch_core::test_utils::create_test_zip;

let zip_data = create_test_zip(vec![("file.txt", b"hello"), ("dir/nested.txt", b"world")]);