Ir.Resource_fault_injectionTest-only fault-injection points for resource-owning seams.
Production code calls hit at boundaries where an exception must leave resource ownership honest. The default callback is a no-op and no configuration selects it. Tests install a callback with with_callback; callbacks are process-global, so scenarios must not run in parallel.
type point = | Delta_pool_allocated| Link_after_delta| Transfer_pool_allocated| From_host_before_copy| From_host_before_await| Transfer_cleanup_before_await| To_host_before_copy| Finalize_before_await| Finalize_before_free| Schedule_cache_before_lock| Schedule_cache_before_regime_commit| Schedule_cache_before_commit| Schedule_cache_before_replayval sexp_of_point : point -> Sexplib0.Sexp.tval point_of_sexp : Sexplib0.Sexp.t -> pointval hit : point -> unitval with_callback : (point -> unit) -> f:(unit -> 'a) -> 'aInstalls the callback for f and restores the prior callback even when f raises.