()
| 252 | |
| 253 | #[test] |
| 254 | fn test_parse_author_full() { |
| 255 | let record = Record::new().with_author("Alice <alice@example.com>"); |
| 256 | let author = record.parse_author(); |
| 257 | assert!(author.is_some()); |
| 258 | let author = author.unwrap(); |
| 259 | assert_eq!(author.name, "Alice"); |
| 260 | assert_eq!(author.email, Some("alice@example.com".to_string())); |
| 261 | } |
| 262 | |
| 263 | #[test] |
| 264 | fn test_parse_author_name_only() { |
nothing calls this directly
no test coverage detected