mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
test_regions matched only the exact `#[cfg(test)]`, so helpers in a module under `#[cfg(all(test, windows))]` or `#[cfg(all(test, not(target_arch = "wasm32")))]` (as in apps/vectorcraft-web/src/file_drops.rs) were not test code: a sleep in such a helper passed the check, and its asserting helpers were not found. A cfg predicate now counts when it is `test` or an `all(...)` with such a predicate among its arguments, at any depth and with any spacing. `any(test, ...)`, `not(test)` and `feature = "test"` do not count.