()
| 64 | |
| 65 | #[test] |
| 66 | fn test_attack_mitre() { |
| 67 | let attack = Attack::mitre( |
| 68 | "T1550", |
| 69 | "Use Alternate Authentication Material", |
| 70 | "TA0008", |
| 71 | "Lateral Movement", |
| 72 | ); |
| 73 | let json = serde_json::to_value(&attack).unwrap(); |
| 74 | assert_eq!(json["technique"]["uid"], "T1550"); |
| 75 | assert_eq!( |
| 76 | json["technique"]["name"], |
| 77 | "Use Alternate Authentication Material" |
| 78 | ); |
| 79 | assert_eq!(json["tactic"]["uid"], "TA0008"); |
| 80 | assert_eq!(json["tactic"]["name"], "Lateral Movement"); |
| 81 | } |
| 82 | } |
nothing calls this directly
no outgoing calls
no test coverage detected