()
| 709 | |
| 710 | #[test] |
| 711 | fn test_identity_to_author() { |
| 712 | let identity = Identity::builder("alice") |
| 713 | .email("alice@example.com") |
| 714 | .build() |
| 715 | .unwrap(); |
| 716 | |
| 717 | let author = identity.to_author(); |
| 718 | assert_eq!(author.name, "alice"); |
| 719 | assert_eq!(author.email, Some("alice@example.com".to_string())); |
| 720 | assert!(author.identity.is_some()); |
| 721 | } |
| 722 | |
| 723 | #[test] |
| 724 | fn test_identity_verify_signature() { |