()
| 828 | |
| 829 | #[test] |
| 830 | fn test_format_short_no_authors() { |
| 831 | let cmd = ChangeCmd::new(); |
| 832 | let change = Change::new( |
| 833 | ChangeHeader::builder().message("No author message").build(), |
| 834 | vec![], |
| 835 | vec![], |
| 836 | vec![], |
| 837 | ); |
| 838 | let hash = Hash::of(b"test"); |
| 839 | let output = cmd.format_short(&change, &hash, None); |
| 840 | |
| 841 | assert!(output.contains("(unknown)")); |
| 842 | } |
| 843 | |
| 844 | #[test] |
| 845 | fn test_format_json_with_dependencies() { |
nothing calls this directly
no test coverage detected