MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_format_short_no_authors

Function test_format_short_no_authors

atomic-cli/src/commands/change/tests.rs:830–842  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

buildMethod · 0.45
messageMethod · 0.45
format_shortMethod · 0.45

Tested by

no test coverage detected