()
| 276 | |
| 277 | #[test] |
| 278 | fn test_identity_usage_from_str() { |
| 279 | let usage: IdentityUsage = "work".into(); |
| 280 | assert!(usage.is_work()); |
| 281 | |
| 282 | let custom: IdentityUsage = "my-custom".into(); |
| 283 | assert!(custom.is_custom()); |
| 284 | assert_eq!(custom.custom_name(), Some("my-custom")); |
| 285 | } |
| 286 | |
| 287 | #[test] |
| 288 | fn test_identity_usage_custom_constructor() { |
nothing calls this directly
no outgoing calls
no test coverage detected