()
| 677 | |
| 678 | #[test] |
| 679 | fn test_identity_to_author() { |
| 680 | let identity = Identity::builder("alice") |
| 681 | .email("alice@example.com") |
| 682 | .build() |
| 683 | .unwrap(); |
| 684 | |
| 685 | let author = identity.to_author(); |
| 686 | assert_eq!(author.name, "alice"); |
| 687 | assert_eq!(author.email, Some("alice@example.com".to_string())); |
| 688 | assert!(author.identity.is_some()); |
| 689 | } |
| 690 | |
| 691 | #[test] |
| 692 | fn test_identity_verify_signature() { |