Probabilistic fault-injection helpers for simulation code. Reference: . Buggify is tied to a specific simulation runtime. Callers toggle it on that runtime, then ask whether a fault should be injected at a particular point.
(runtime: &Runtime)
| 7 | /// Buggify is tied to a specific simulation runtime. Callers toggle it on that |
| 8 | /// runtime, then ask whether a fault should be injected at a particular point. |
| 9 | pub fn enable(runtime: &Runtime) { |
| 10 | runtime.enable_buggify(); |
| 11 | } |
| 12 | |
| 13 | /// Disable probabilistic fault injection for the given simulation runtime. |
| 14 | pub fn disable(runtime: &Runtime) { |
searching dependent graphs…