()
| 838 | |
| 839 | #[test] |
| 840 | fn test_credit_author_display() { |
| 841 | let with_email = Credit::human( |
| 842 | "alice", |
| 843 | Some("alice@example.com"), |
| 844 | test_hash(), |
| 845 | test_timestamp(), |
| 846 | ); |
| 847 | assert_eq!(with_email.author_display(), "alice <alice@example.com>"); |
| 848 | |
| 849 | let without_email = Credit::human("bob", None::<String>, test_hash(), test_timestamp()); |
| 850 | assert_eq!(without_email.author_display(), "bob"); |
| 851 | } |
| 852 | |
| 853 | #[test] |
| 854 | fn test_credit_short_attribution() { |
nothing calls this directly
no test coverage detected