()
| 235 | |
| 236 | #[test] |
| 237 | fn test_parse_author_full() { |
| 238 | let record = Record::new().with_author("Alice <alice@example.com>"); |
| 239 | let author = record.parse_author(); |
| 240 | assert!(author.is_some()); |
| 241 | let author = author.unwrap(); |
| 242 | assert_eq!(author.name, "Alice"); |
| 243 | assert_eq!(author.email, Some("alice@example.com".to_string())); |
| 244 | } |
| 245 | |
| 246 | #[test] |
| 247 | fn test_parse_author_name_only() { |
nothing calls this directly
no test coverage detected