1 Commits

Author SHA1 Message Date
Kevin Bortis
2a2db120cf test: add aaruf_identify and aaruf_identify_stream tests
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.
2026-04-02 07:55:58 +02:00