mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2026-07-09 02:16:24 +00:00
15 tests covering the image identification API: - Happy path: valid V1 and V2 images via both file path and stream - Error handling: NULL stream, empty file, truncated header - Format validation: wrong magic bytes, future version, legacy DIC_MAGIC - Stream behavior: mid-position seek-to-zero before reading - File path errors: non-existent path, non-Aaru file, NULL path Uses existing V1/V2 .aif fixtures from tests/data/ plus crafted in-memory headers via tmpfile() for edge cases.
4.9 KiB
4.9 KiB