(
technique_uid: &str,
technique_name: &str,
tactic_uid: &str,
tactic_name: &str,
)
| 40 | /// Create a MITRE ATT&CK mapping with technique and tactic. |
| 41 | #[must_use] |
| 42 | pub fn mitre( |
| 43 | technique_uid: &str, |
| 44 | technique_name: &str, |
| 45 | tactic_uid: &str, |
| 46 | tactic_name: &str, |
| 47 | ) -> Self { |
| 48 | Self { |
| 49 | technique: Technique { |
| 50 | uid: technique_uid.to_string(), |
| 51 | name: technique_name.to_string(), |
| 52 | }, |
| 53 | tactic: Some(Tactic { |
| 54 | uid: tactic_uid.to_string(), |
| 55 | name: tactic_name.to_string(), |
| 56 | }), |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | #[cfg(test)] |
nothing calls this directly
no outgoing calls
no test coverage detected