()
| 408 | |
| 409 | #[test] |
| 410 | fn test_author_new() { |
| 411 | let author = Author::new("Alice", Some("alice@example.com")); |
| 412 | assert_eq!(author.name, "Alice"); |
| 413 | assert_eq!(author.email, Some("alice@example.com".to_string())); |
| 414 | assert!(author.identity.is_none()); |
| 415 | } |
| 416 | |
| 417 | #[test] |
| 418 | fn test_author_new_no_email() { |
nothing calls this directly
no outgoing calls
no test coverage detected