MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / PanicAPI

Enum PanicAPI

src/detector/panic/mod.rs:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq)]
16pub enum PanicAPI {
17 ResultUnwrap,
18 ResultExpect,
19 OptionUnwrap,
20 OptionExpect,
21 PanicFmt,
22 AssertFailed,
23 Panic,
24}
25
26static PANIC_API_REGEX: Lazy<HashMap<PanicAPI, Regex>> = Lazy::new(|| {
27 let mut m = HashMap::new();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected