Module test_utils

Module test_utils 

Source
Expand description

Test utilities for archive creation and validation.

This module provides reusable helpers for creating in-memory test archives, reducing code duplication across format-specific tests.

§Panics

All functions in this module may panic on I/O errors since they are designed for test use only where panics are acceptable.

Structs§

TarTestBuilder
Builder for creating TAR test archives with various entry types.
ZipTestBuilder
Builder for creating ZIP test archives with various entry types.

Functions§

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