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