()
| 234 | |
| 235 | #[test] |
| 236 | fn test_identity_usage_short_code() { |
| 237 | assert_eq!(IdentityUsage::Personal.short_code(), "P"); |
| 238 | assert_eq!(IdentityUsage::Work.short_code(), "W"); |
| 239 | assert_eq!(IdentityUsage::Community.short_code(), "C"); |
| 240 | assert_eq!(IdentityUsage::Bot.short_code(), "B"); |
| 241 | assert_eq!(IdentityUsage::Custom("test".to_string()).short_code(), "X"); |
| 242 | } |
| 243 | |
| 244 | #[test] |
| 245 | fn test_identity_usage_parse() { |
nothing calls this directly
no outgoing calls
no test coverage detected