pub fn held_snapshot_for_tests() -> Vec<(SubgraphId, u32)>Expand description
Test-only re-exports for integration tests under
crates/graphrefly-core/tests/. Gated #[cfg(any(test, debug_assertions))]
so they don’t leak into release builds. Public visibility is
required because integration tests live outside the crate.
Test-only: read the current thread’s held-partitions snapshot.
Used by post-panic regression assertions to verify the
thread-local stays clean even when the H+ check unwinds the
stack (so cargo’s thread-reuse doesn’t propagate corrupted
state to subsequent tests). pub (gated by
cfg(any(test, debug_assertions))) so integration tests
outside the crate can read it.