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

Function test_format_short_basic

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

Source from the content-addressed store, hash-verified

483
484 #[test]
485 fn test_format_short_basic() {
486 let cmd = ChangeCmd::new();
487 let change = create_test_change();
488 let hash = Hash::of(b"test");
489 let output = cmd.format_short(&change, &hash, Some(5));
490
491 assert!(output.contains("Test change message"));
492 assert!(output.contains("#5"));
493 assert!(output.contains("Test User"));
494 }
495
496 #[test]
497 fn test_format_short_no_sequence() {

Callers

nothing calls this directly

Calls 2

create_test_changeFunction · 0.70
format_shortMethod · 0.45

Tested by

no test coverage detected