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

Function test_header_format_display

atomic-core/src/change/header.rs:632–641  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

630
631 #[test]
632 fn test_header_format_display() {
633 let header = ChangeHeader::builder()
634 .message("Test message")
635 .author(Author::new("Alice", Some("alice@example.com")))
636 .build();
637
638 let formatted = header.format_display();
639 assert!(formatted.contains("Author: Alice <alice@example.com>"));
640 assert!(formatted.contains("Test message"));
641 }
642
643 #[test]
644 fn test_header_default() {

Callers

nothing calls this directly

Calls 4

authorMethod · 0.80
format_displayMethod · 0.80
buildMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected