()
| 241 | |
| 242 | #[test] |
| 243 | fn test_identity_to_author() { |
| 244 | let identity = Identity::builder("alice") |
| 245 | .email("alice@example.com") |
| 246 | .build() |
| 247 | .unwrap(); |
| 248 | |
| 249 | let author = identity.to_author(); |
| 250 | assert_eq!(author.name, "alice"); |
| 251 | assert_eq!(author.email, Some("alice@example.com".to_string())); |
| 252 | assert!(author.identity.is_some()); |
| 253 | } |
| 254 | |
| 255 | #[test] |
| 256 | fn test_delegation() { |