Shape.For_testing
val with_closure_publication_hook : (Base.unit -> Base.unit) -> (Base.unit -> 'a) -> 'a
Runs the hook after a closure publishes capture solutions, before it commits. A raised exception leaves the closure available to rewind.