use secfinding::*;
use secfinding::kind::*;
use super::*;
#[test]
fn serde_and_display_kebab_case() {
let json = serde_json::to_string(&FindingKind::TechDetect).unwrap();
assert_eq!(json, "\"tech-detect\"");
let back: FindingKind = serde_json::from_str("\"default-credentials\"").unwrap();
assert_eq!(back, FindingKind::DefaultCredentials);
let rendered = FindingKind::SecretLeak.to_string();
assert_eq!(rendered, "secret-leak");
}
#[test]
fn actionable() {
assert!(FindingKind::Vulnerability.is_actionable());
assert!(FindingKind::SecretLeak.is_actionable());
assert!(!FindingKind::TechDetect.is_actionable());
assert!(!FindingKind::InfoDisclosure.is_actionable());
}