()
| 262 | |
| 263 | #[test] |
| 264 | fn test_parse_author_name_only() { |
| 265 | let record = Record::new().with_author("Bob"); |
| 266 | let author = record.parse_author(); |
| 267 | assert!(author.is_some()); |
| 268 | let author = author.unwrap(); |
| 269 | assert_eq!(author.name, "Bob"); |
| 270 | assert_eq!(author.email, None); |
| 271 | } |
| 272 | |
| 273 | #[test] |
| 274 | fn test_parse_author_none() { |
nothing calls this directly
no test coverage detected