MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / set_panic_fires

Function set_panic_fires

nodedb/src/fail_point.rs:127–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 #[test]
126 #[should_panic(expected = "fail_point fired: nodedb::test::panic_target")]
127 fn set_panic_fires() {
128 let _g = FailGuard::install("nodedb::test::panic_target", FailAction::Panic);
129 eval("nodedb::test::panic_target");
130 }
131
132 #[test]
133 fn fail_guard_clears_on_drop() {

Callers

nothing calls this directly

Calls 1

evalFunction · 0.70

Tested by

no test coverage detected