()
| 474 | |
| 475 | #[test] |
| 476 | fn test_author_equality() { |
| 477 | let a1 = Author::new("Alice", Some("alice@example.com")); |
| 478 | let a2 = Author::new("Alice", Some("alice@example.com")); |
| 479 | let a3 = Author::new("Alice", None::<String>); |
| 480 | |
| 481 | assert_eq!(a1, a2); |
| 482 | assert_ne!(a1, a3); |
| 483 | } |
| 484 | |
| 485 | #[test] |
| 486 | fn test_author_json_roundtrip() { |
nothing calls this directly
no outgoing calls
no test coverage detected