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

Function test_header_summary

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

Source from the content-addressed store, hash-verified

615
616 #[test]
617 fn test_header_summary() {
618 let single_line = ChangeHeader::new("Simple message");
619 assert_eq!(single_line.summary(), "Simple message");
620
621 let multi_line = ChangeHeader::new("First line\nSecond line\nThird line");
622 assert_eq!(multi_line.summary(), "First line");
623 }
624
625 #[test]
626 fn test_header_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected