mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-30 05:06:48 -06:00
The workspace file guard scans test modules too when they are declared `pub(crate) mod` (it only skips a plain `mod`), so a temp file written inside pdflayers.rs' tests failed no_crate_touches_the_file_system_outside_the_checked_readers. The unit test now builds the state a relink leaves behind - layer fields on an item whose asset is an image - and asserts the refusal predicate ignores it while all three exports run. The user path (a real links.relink to a PNG) moves to tests/pdf_optional_content.rs, where the guard exempts fixtures written by test files.