()
| 198 | |
| 199 | #[test] |
| 200 | fn test_identity_usage_is_methods() { |
| 201 | assert!(IdentityUsage::Personal.is_personal()); |
| 202 | assert!(!IdentityUsage::Personal.is_work()); |
| 203 | |
| 204 | assert!(IdentityUsage::Work.is_work()); |
| 205 | assert!(!IdentityUsage::Work.is_personal()); |
| 206 | |
| 207 | assert!(IdentityUsage::Community.is_community()); |
| 208 | assert!(IdentityUsage::Bot.is_bot()); |
| 209 | |
| 210 | let custom = IdentityUsage::Custom("test".to_string()); |
| 211 | assert!(custom.is_custom()); |
| 212 | assert!(!custom.is_personal()); |
| 213 | } |
| 214 | |
| 215 | #[test] |
| 216 | fn test_identity_usage_custom_name() { |
nothing calls this directly
no outgoing calls
no test coverage detected