()
| 264 | |
| 265 | #[test] |
| 266 | fn test_identity_usage_display() { |
| 267 | assert_eq!(format!("{}", IdentityUsage::Personal), "personal"); |
| 268 | assert_eq!(format!("{}", IdentityUsage::Work), "work"); |
| 269 | assert_eq!(format!("{}", IdentityUsage::Community), "community"); |
| 270 | assert_eq!(format!("{}", IdentityUsage::Bot), "bot"); |
| 271 | assert_eq!( |
| 272 | format!("{}", IdentityUsage::Custom("consulting".to_string())), |
| 273 | "consulting" |
| 274 | ); |
| 275 | } |
| 276 | |
| 277 | #[test] |
| 278 | fn test_identity_usage_from_str() { |
nothing calls this directly
no outgoing calls
no test coverage detected