()
| 245 | |
| 246 | #[test] |
| 247 | fn test_parse_author_name_only() { |
| 248 | let record = Record::new().with_author("Bob"); |
| 249 | let author = record.parse_author(); |
| 250 | assert!(author.is_some()); |
| 251 | let author = author.unwrap(); |
| 252 | assert_eq!(author.name, "Bob"); |
| 253 | assert_eq!(author.email, None); |
| 254 | } |
| 255 | |
| 256 | #[test] |
| 257 | fn test_parse_author_none() { |
nothing calls this directly
no test coverage detected