MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / enable

Function enable

crates/runtime/src/sim/buggify.rs:9–11  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
9pub fn enable(runtime: &Runtime) {
10 runtime.enable_buggify();
11}
12
13/// Disable probabilistic fault injection for the given simulation runtime.
14pub fn disable(runtime: &Runtime) {

Calls 1

enable_buggifyMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…