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:454–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

452
453 #[test]
454 fn test_format_short_basic() {
455 let cmd = ChangeCmd::new();
456 let change = create_test_change();
457 let hash = Hash::of(b"test");
458 let output = cmd.format_short(&change, &hash, Some(5));
459
460 assert!(output.contains("Test change message"));
461 assert!(output.contains("#5"));
462 assert!(output.contains("Test User"));
463 }
464
465 #[test]
466 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