Remove any installed action for the named fail point.
(name: &str)
| 46 | |
| 47 | /// Remove any installed action for the named fail point. |
| 48 | pub fn clear(name: &str) { |
| 49 | REGISTRY |
| 50 | .lock() |
| 51 | .unwrap_or_else(|p| p.into_inner()) |
| 52 | .remove(name); |
| 53 | } |
| 54 | |
| 55 | /// Look up the installed action for a fail point (None if not set). |
| 56 | pub fn lookup(name: &str) -> Option<FailAction> { |